Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

reload page when combi is changed 3

Status
Not open for further replies.

mych

Programmer
May 20, 2004
248
GB
Hi

I have the following which is triggered with an onChange on a combi box (id= aloc) in a form.

Code:
function AlocChange()
{
	window.navigate(location.href & "&A=" & getElementById('aloc').value)
}

I'm expecting the page to be reloaded but the URL to have an additional QueryString of &A= and then the new value of the changed combi box.

For some reason its not working.

Also... would I get several (e.g. &A=valuea&A=valueb&A=valuec) if the combi box is changed several times. Would the Request.QueryString take the first or last value of A?

Is there a better way... should I use session?

Any help aperetiated.
 
good job!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
hmm just a heads up, i'm doing some similar stuff myself and I was right the first time , it needs to be square brackets, round brackets work ok in IE but not FireFox!

"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you."

"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!
 
Thanks for that.... MS have to be different when it comes to standards!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top