0

I am using lightbox jquery.

HTML

<div id="light" class="white_content">
            <img id="closelightbox" src="Images/ExitButton.png" />
            <div id="player"></div>
        </div>
        <div id="fade" class="black_overlay">
        </div>

I am using following thing to load page

 $("#fade").show();
 $("#player").load("../Html/mypagename.html");
}
$("#light").show();

I have 2 pages : 1 Customer , 2 Product

How can I pass some value from the customer page to product page?

  • Usercome to customer page, - -Customer Details With Product grid will be showed then

    • Clicking on something will Load Product Page, do something at Product page, again back to customer page and previously showed details on customer should be visible at that time.
Gaʀʀʏ
  • 4,372
  • 3
  • 39
  • 59

1 Answers1

-1

HTML is stateless in general. Meaning, you cannot pass values across different pages unless you maintain a session or a cookie.

To set a cookie using javascript, you can follow this tutorial:

http://www.thonky.com/javascript-and-css-guide/set-cookie/

If you prefer using jQuery to set the cookie, you may do so doing this:

How do I set/unset cookie with jQuery?

To use sessions to pass around data is a little more complicated. This would require some knowledge on how to work with server side programming like Java, PHP, RoR, etc.

Community
  • 1
  • 1
Jay Q.
  • 4,979
  • 3
  • 33
  • 36