Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-14-2003, 02:37 PM   PM User | #1
alexlee
New to the CF scene

 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
alexlee is an unknown quantity at this point
Query String / Path info ?

Hi All,

This forum is full of info. I like it.

I have a default.htm set as the default page.
When user surf www.mysite.com, will goto default page.

Now, if the user surf www.mysite.com/abc, (abc is an invalid page), I would like to use JavaScript to capture it (the "abc") and redirect to another page. In fact "abc" is an parameter to generate a dynamic page. Is this possible ?

I tried quesry string, seems doesn't works.


Thanks
Alex
alexlee is offline   Reply With Quote
Old 10-14-2003, 02:44 PM   PM User | #2
A1ien51
Senior Coder

 
A1ien51's Avatar
 
Join Date: Jun 2002
Location: Between DC and Baltimore In a Cave
Posts: 2,717
Thanks: 1
Thanked 94 Times in 88 Posts
A1ien51 will become famous soon enough
If the page does not exsist then you are not going to be able to capture the abc is someone types it in with javascript....
A1ien51 is offline   Reply With Quote
Old 10-14-2003, 03:21 PM   PM User | #3
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
Doing this requires interfacing with the Web Server software itself. How you would do it depends on what web server software you're using. In any case you wouldn't be doing this with javascript but you should be aware that it is not only possible but there are web sites using that technique right now.

I'm unable to find the right keywords to look up the example I remember but I know it's possible.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Old 10-14-2003, 03:51 PM   PM User | #4
alexlee
New to the CF scene

 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
alexlee is an unknown quantity at this point
Dear all

I'm trying to develop one ISAPI app with delphi, when i installed the ISAPI, i can capture the "abc", the invalid pathinfo. Example : http://www.mysite.com/isapi.dll/abc

When i set the isapi.dll as default page, i can't capture the "abc" again.
Example : http://www.mysite.com/abc

So i am trying to use one dummy page, will be the default page, with some JavaScript (something like location.href...) to redirect to the http://www.mysite.com/isapi.dll/abc. But the challenge is to capture the "abc" in the dummy page.

Any idea ?


Thanks
Alex
alexlee is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:17 AM.


Advertisement
Log in to turn off these ads.