"#" on script URL line

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

"#" on script URL line

Antonio
Hi Chris,
can you tell me what does it mean the "#" chacacter on the following line?
s.src='http%3A//www.supergenpass.com/js/sgp2_0r.js#0,0,0,0,0,0'
Is it a way to pass parameters to the script? Can you link me a page that explain such syntax? I've found nothing.
Thanks,
Antonio
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: "#" on script URL line

Antonio
I answer by myself: yes, it is a method to pass parameters to the script. No formal syntax, only an hack, I suppose.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: "#" on script URL line

ChrisSGP
Administrator
I wouldn't call it a "hack" but, yes, it is used to pass parameters. The nice thing about using "#" -- as opposed to the traditional "?" -- is that the browser does not transmit anything trailing the hash mark, so the request sent out over the web will not include your parameters.
Loading...