Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » A couple JavaScript questions...
Closed Thread
Old 11-14-2006, 01:23 PM   #1 (permalink)
sayaprayer's Avatar
 
Super Techie

Join Date: Oct 2004

Posts: 273

sayaprayer

Default A couple JavaScript questions...

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.
__________________
Laptop:
Dell E1705
Intel Core 2 Duo 2.0GHz T7200
2GB DDR2 667MHz
80GB 5400RPM HDD
256MB nVidia 7900 GeForce Go

sayaprayer is offline  
Old 11-14-2006, 05:47 PM   #2 (permalink)
office politics's Avatar
 
It's all just 1s and 0s

Join Date: Jan 2004

Location: in the lab

Posts: 4,425

office politics will become famous soon enough

Default

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.
office politics is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On