Request.QueryString w/o ASP?
Request.QueryString w/o ASP?
am 05.01.2008 23:49:49 von jp2express
Does Request.QueryString need to be carried out using ASP, or can JavaScript
handle this?
I know it is simple, but I've never done it and I don't know what to search
for.
Say I wanted my default web page to display my projects. I want to be able
to pass a link like this:
www.joeswelding.biz/index.htm?page=projects
Do I need to change my index page to ASP to do this? I know it isn't hard to
change, but I hate not knowing another way (like JavaScript) to do things
(like QueryString).
Regards!
Joe
Re: Request.QueryString w/o ASP?
am 06.01.2008 00:34:37 von exjxw.hannivoort
jp2express wrote on 05 jan 2008 in
microsoft.public.inetserver.asp.general:
> Does Request.QueryString need to be carried out using ASP, or can
> JavaScript handle this?
Your Q is impossible to anwer directly,
since you presume things that are not true:
On topic:
Yes, Request.QueryString needs to be carried out using ASP.
But:
ASP is not a language, but a serverside platform,
having the Request object.
Yes, Javascript can be used serverside on the ASP platform,
and so can use the Request object.
Off topic:
No, clientside Javascript does not have access to a Request object.
Yes, clientside Javascript can get the querystring,
not using a request object,
but using window.location.search.
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Re: Request.QueryString w/o ASP?
am 06.01.2008 03:23:59 von McKirahan
"jp2express" wrote in message
news:hQTfj.28308$4V6.14823@newssvr14.news.prodigy.net...
> Does Request.QueryString need to be carried out using ASP, or can
JavaScript
> handle this?
Yes.
> I know it is simple, but I've never done it and I don't know what to
search
> for.
>
> Say I wanted my default web page to display my projects. I want to be able
> to pass a link like this:
>
> www.joeswelding.biz/index.htm?page=projects
>
> Do I need to change my index page to ASP to do this? I know it isn't hard
to
> change, but I hate not knowing another way (like JavaScript) to do things
> (like QueryString).
Will this help?
index.htm
Re: Request.QueryString w/o ASP?
am 07.01.2008 02:28:04 von jp2express
Thanks! That's what I was looking for. I guess JavaScript doesn't have a
neat client side version.
Evertjan, if you are reading this, sorry to have upset you, but how do you
ask a question if you don't know the proper way to phrase it? I didn't know
if a JavaScript technique was client side or server side, but the fact that
I did not want to turn my HTML page into an ASP page should have answered
your question.
Thanks for the help!
"McKirahan" wrote in message
news:EqKdnSO0lLD_ph3anZ2dnUVZ_tyknZ2d@comcast.com...
> "jp2express" wrote in message
> news:hQTfj.28308$4V6.14823@newssvr14.news.prodigy.net...
>> Does Request.QueryString need to be carried out using ASP, or can
> JavaScript
>> handle this?
>
> Yes.
>
>> I know it is simple, but I've never done it and I don't know what to
> search
>> for.
>>
>> Say I wanted my default web page to display my projects. I want to be
>> able
>> to pass a link like this:
>>
>> www.joeswelding.biz/index.htm?page=projects
>>
>> Do I need to change my index page to ASP to do this? I know it isn't hard
> to
>> change, but I hate not knowing another way (like JavaScript) to do things
>> (like QueryString).
>
>
> Will this help?
>
>
>
> index.htm
>
>
>
>
>
>
>
Re: Request.QueryString w/o ASP?
am 07.01.2008 02:47:20 von reb01501
jp2express wrote:
> Thanks! That's what I was looking for. I guess JavaScript doesn't
> have a neat client side version.
>
> Evertjan, if you are reading this, sorry to have upset you,
Given that he answered your question, I'm not sure how you can say he was
upset. Beware of trying to read emotion into text messages, especially those
from people whose first language is not English.
> but how
> do you ask a question if you don't know the proper way to phrase it?
The phrasing was not the issue.
> I didn't know if a JavaScript technique was client side or server
> side,
It can be either. Javascript is a scripting language that can be used in
either server-side or client-side code.
> but the fact that I did not want to turn my HTML page into an
> ASP page should have answered your question.
>
As well as your own. If it's not a .asp page, then it's not an "asp"
question, now is it? It pretty much HAS to involve client-side code, which
is better handled in a client-side scripting group like
microsoft.public.scripting.jscript or comp.lang.javascript.
Again, do not read this as a rebuke: it is intended to help you get help
more efficiently in the future.
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"