I want to create a function call "GetMoreRec s()" on the fly and insert 3 variables as parameters. The values of the variables are stored in an array "p"
The above code does not render the right format. This is the result of what I get.
I think I am escaping the double quotes like this \"
but as you can see the result is not correct. This is for fireFox only. not interested in any other browser.
Code:
td.innerHTML += '<input type="button" style="visibility:'+(( p['cEof'] ) ? 'hidden': 'visible')+'" class="MenuButtonText" name="Next" value="Next >>" onClick="GetMoreRecs(\"'+p['TableName']+'\", \"'+p['Key']+'\", \"'+p['searchValue']+'\");">';
Code:
<input type="button" );="" clas0011king_s01="" ,="" contactkey="" contact="" onclick="GetMoreRecs(" value="<< Prev" name="Prev" class="MenuButtonText" style="visibility: visible;">
but as you can see the result is not correct. This is for fireFox only. not interested in any other browser.
Comment