By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,654 Members | 1,513 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,654 IT Pros & Developers. It's quick & easy.

Retrieve Data from Mysql

P: 1
hi i have dynamically created textboxes using javascript in table format. actually what i want is if enter id of a student in one text box then remaining details of that student should be retrieve in other textboxes on onkeyup. for this i have used a simple ajax function. but it shows Runtime error in IE7.
This is that code:

function showUser(str)
if (str=="")
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
if (xmlhttp.readyState == 4 && xmlhttp.status == 200)
document.getElementById("dis").innerHTML = xmlhttp.responseText;

Can any one help me.......
Sep 27 '11 #1
Share this Question
Share on Google+
1 Reply

P: 1,059
how about using jquery??

it will be simpler to use
Sep 27 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.