•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 402,805 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,019 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 373 | Replies: 3 | Solved
![]() |
•
•
Join Date: Jul 2008
Posts: 8
Reputation:
Rep Power: 0
Solved Threads: 0
hi it me again.
right now i had a problem with this code. when i open with ie6, it worked but if i use ie7,safari and firefox, the result didn't show up.here i provide the code. the error is where i mark it with the red color. please someone help me?
php code.....
javascript code..
right now i had a problem with this code. when i open with ie6, it worked but if i use ie7,safari and firefox, the result didn't show up.here i provide the code. the error is where i mark it with the red color. please someone help me?
php code.....
<BODY onLoad="init_table();" style=" background-repeat:repeat; background-image:url('images/bg_b.gif');">javascript code..
<script type="text\javascript" >
function requestUrl(url,id,redirectPage) {
var temp=new Array();
http.open("GET", url, true);
http.onreadystatechange = function() {
if (http.readyState == 4) {
if(http.status==200) {
var results=http.responseText;
if(redirectPage=="" || results!="1") {
var temp=id.split("~"); // To display on multiple div
//alert(temp.length);
var r=results.split("~"); // To display multiple data into the div
//alert(temp.length);
if(temp.length>1) {
for(i=0;i<temp.length;i++) {
//alert(temp[i]);
document.getElementById(temp[i]).innerHTML=r[i];
}
} else {
document.getElementById(id).innerHTML = results;
}
} else {
//alert(results);
window.location.href=redirectPage;
}
}
}
};
http.send(null);
}
function init_table() {
requestUrl('showTable.php?mode=list','showTable','');
}
</script>•
•
Join Date: Feb 2008
Location: Gurgaon India
Posts: 103
Reputation:
Rep Power: 1
Solved Threads: 10
please check,
r u include?or not
in which the init_table() function is defined
r u include?or not
<script src="jsfile.js"> </script>
![]() |
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- media player object (Visual Basic 4 / 5 / 6)
- Javascript - Expected J and Expected Object errors (JavaScript / DHTML / AJAX)
- New object initialization error (C++)
- Trying to create a C++ object oriented game (Game Development)
- Excel Warning - Responsing through the Excel Object (VB.NET)
- <Body onload= > question (HTML and CSS)
- an "(" expected?? (C++)
- run time errors when using IE (Web Browsers)
- Page Cannot Be Displayed & javascript:doNetDetect() Errors (Viruses, Spyware and other Nasties)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: rating for the site
- Next Thread: Clear contents of element with DOM


Linear Mode