我正在使用lightbox jquery。
<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>我正在使用下面的东西加载页面
$("#fade").show();
$("#player").load("../Html/mypagename.html");
}
$("#light").show();我有2页:1名客户,2名产品
如何将一些价值从客户页面传递到产品页面?
- 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.
发布于 2013-02-28 15:55:24
HTML通常是无状态的。也就是说,除非您维护会话或cookie,否则不能在不同的页面之间传递值。
要使用javascript设置cookie,您可以遵循本教程:
http://www.thonky.com/javascript-and-css-guide/set-cookie/
如果您更喜欢使用jQuery来设置cookie,您可以这样做:
使用会话传递数据要复杂一些。这需要一些关于如何使用服务器端编程(如Java、PHP、RoR等)的知识。
https://stackoverflow.com/questions/15139790
复制相似问题