Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    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
    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....

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #4
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •