Skip to Content
0
Former Member
May 20, 2010 at 09:30 AM

problem between htmlb and javascript

27 Views

Hi I am developing a page that has several input fields to help with research. The problem is that when function is called getCustomer always comes first and if not diversified parameters that step.

in my example, always opens the window

document.open('h_kunnr.htm', 'custlist', "height=350 width=400 left=300 top=300 status=no")

// chiamata all'help di ricerca

function getCustomer(tipo)

{

if(tipo="kunnr")

{

document.open('h_kunnr.htm', 'custlist', "height=350 width=400 left=300 top=300 status=no")

}

else if(tipo="bukrs")

{

document.open('h_bukrs.htm', 'custlist', "height=350 width=400 left=300 top=300 status=no")

}

}

// valorizzazione campo a video con valore dell'help

function transf(fval,tipo)

{

if (tipo="bukrs")

{

document.getElementById("societa").value = fval;

}

else if (tipo = "kunnr")

{

document.getElementById("cliente").value = fval;

}

}

Edited by: francesco aiello on May 20, 2010 11:31 AM