Results 1 to 3 of 3

Thread: JS and session?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    JS and session?

    Is it possible to write a session varible from JS instead of writing an URL?
    Code:
    function data6()
    {location.href = "gf2004.aspx?seg=data6";}
    The disadvantage of the code above is that the page is loaded again. Using a session the page will not have to reload.

    The function is activated when clicking my menubar which is written in JS.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: JS and session?

    Short answer: no.

    Long answer: it's possible to make requests in the background without reloading the page.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

  3. #3
    Addicted Member
    Join Date
    Jul 2004
    Location
    Mumbai
    Posts
    236

    Re: JS and session?

    yup,

    i agree with cornedbee. it is possible for you to process a page without submitting with techniques like xmlhttp. i am not able to guess what you are going to write from javascript to a session variable.. if you clear it then suggesstions can be given.
    --Kishore...

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