function productview(view)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("product_view").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("GET","product_ajax.php?result="+view,true);
xmlhttp.send();
}
chira9na9pal
0
Newbie Poster
Recommended Answers
Jump to PostAre you trying to ask a question? Can you elaborate on what you are trying to accomplish?
Jump to PostSo, I assume that your product_ajax.php page will produce the image based on the result query string, correct?
If so, then just add the following javascript code to either the javascript block in the head element, or at the bottom of your body element before the closing tag..
All 6 Replies

stbuchok
chira9na9pal
0
Newbie Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
chira9na9pal
0
Newbie Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
chira9na9pal
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.