[Javascript] global vars prob?!
Michael Borchers
list at tridemail.de
Mon Feb 13 02:47:50 CST 2006
first of all thanks to everybody for finding a solution.
@steven:
>
inputProductsDescription.xIndex = numRow;
inputProductsDescription.onfocus=function() {
products_price_return(this.xIndex); }
<
i didn't know that it is "allowed" to create any new attribute to a tag,
cool!
@nick:
>
function assignFocusHandler(element, rowNumber) {
element.onfocus = function() {
products_price_return(rowNumber);
};
}
<
i added your function and changed it since i need more focus functions in
the script:
function assignFocusHandler(element, functionName, rowNumber)
{
if(functionName == 'products_price_return')
{
element.onfocus = function()
{
products_price_return(rowNumber);
};
}
if(functionName == 'products_final_price')
{
element.onfocus = function()
{
products_final_price(rowNumber);
};
}
}
this works fine, finally:)
thanks again!
More information about the Javascript
mailing list