Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Actually javascript used in asp...
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 13 March 2007 :  04:28:02  Show Profile
Change your onclick event to:
onClick="call_server('01');"
Change your callserver() function to:
var z;
function call_server(page){
 z=escape(page);
 var x=document.getElementById("selector");
 request.open("GET","PluginPage"+z+".asp");
 request.onreadystatechange=sever_interaction;
 request.send("url="+x.options[x.selectedIndex].value);
}
Change your sever_interaction() function to:
function sever_interaction(){
 if(request.readyState==1)document.getElementById("div"+z).innerHTML="loading...";
 else if(request.readyState==4)document.getElementById("div"+z).innerHTML=request.responseText;
}
Finally, give all your divisions ids such as div01, div02, etc.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

ILLHILL
Junior Member

Netherlands
341 Posts

Posted - 13 March 2007 :  18:04:06  Show Profile
Shaggy...





YOU ARE THE MAN

Thanks!

D

CLPPR.com - All The News Only Seconds Away
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 14 March 2007 :  04:24:15  Show Profile
You're welcome, Dom'


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.19 seconds. Powered By: Snitz Forums 2000 Version 3.4.07