Results 1 to 5 of 5

Thread: Please Help Redirect page

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141

    Unhappy

    I have command in one page for exeample command exit i want that when the user
    Click on this command 2 things will happend
    1)Run SP
    2)Redirect to the Previous page
    Please help
    thanks
    efrat

  2. #2
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    Use the OnClick Event of the Button.

    I don't Get What SP is...
    Redirection is by changing the location.href property.
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141

    Unhappy How please ?

    objCn.Execute "Insert_Event '" & Request.QueryString("PackageMark") & "'" & _
    ", '" & session("Operator") & "'" & _
    ", " & intProcID & _
    ", '" & Request.QueryString("Comment") & "'" & _
    ", '" & Request.QueryString("Result") & "'" & _
    ", '" & Request.QueryString("Status") & "'"
    'Here iwant the Redirect to the Previous page

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Location
    y
    Posts
    141

    Unhappy

    But How please ??

  5. #5
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Create javascript in the new page's window_onload event that contains this:

    Code:
    window.history.back();
    The history object is not available to you on the server side, so you will have to run your server side code, then let the page load on the client side and once the </HTML> tag is hit, it will redirect to the previous URL.
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

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



Click Here to Expand Forum to Full Width