A couple JavaScript questions...

Status
Not open for further replies.

sayaprayer

In Runtime
Messages
273
Hi, I'm quite new to programming. I'm trying to create a mock shopping cart system. I want to add items to a "cart" and for the checkout it will basically just email all the form data to myself. I'd like this to be done over multiple pages. How would I get a variable from one page to another? Do I use an external javascript file? Any insight for a beginner would be much appriciated.


Also I'm trying to do remote roll over images. Like when you roll over a thumbnail the larger image on the page changes. I pretty much have a general idea how to do this but I wanted to add remote rollover text that went with it as well. What would I use to make the text show up and hide when another rollover activates?


If any of this isn't understandable let me know I'll try to rephrase.
 
you can carry variables from page to page by writing the post data on the next page in a hidden field

Code:
//asp
<input type=hidden name=asp value='<%= request.form("savedfield") %>'>

//php
<input type=hidden name=asp value='<? echo $_POST["savedfield"]; ?>'>

for rollover text, it prolly could be done with client side javascript. find one of those pointer follow animations, like magic wand, and that shoudl give you a good idea of how to implement.
 
Status
Not open for further replies.
Back
Top Bottom