Results 1 to 3 of 3

Thread: html to html

  1. #1
    Join Date
    Aug 2009
    Posts
    74
    Thanks
    7
    Thanked 1 Time in 1 Post

    Default html to html

    hi,

    how to pass the values or any messages from html page to another html page with javascript that value shoul be printed in that another page
    plz help me out if any one knows

  2. #2
    Join Date
    Apr 2009
    Location
    Cognac, France
    Posts
    400
    Thanks
    2
    Thanked 57 Times in 57 Posts

    Default

    Have a look at using cookies for this

  3. #3
    Join Date
    Sep 2005
    Location
    India
    Posts
    1,627
    Thanks
    6
    Thanked 107 Times in 107 Posts

    Default

    You can use:

    1. Cookies as forum_amnesiac suggested. But this has an issue. The user may disabled cookie in his or her browser. In such a case the whole thing fails. The target page will never get the values from the source page.

    2. You can pass the values as a part of the url. For eg: assume that you have placed the link to the target page in the following manner:

    <a href="target.htm?value1=1000&value2=Test">Target Page</a>

    So Whenever you click on this link two values will be transferred to the target page. From that page using JS you can extract the value.

    3. Client-side storage like the one provided by YUI can be used.

    Hope this helps

Bookmarks

Posting Permissions

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