Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Help needed from web gurus

Thread Tools
 
Search this Thread
 
Old 17 October 2007, 03:01 PM
  #1  
GazTheHat
Scooby Regular
Thread Starter
 
GazTheHat's Avatar
 
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes on 0 Posts
Default Help needed from web gurus

I'm trying to create a html page, that has a base figure, then a series of dropdown boxes or radio buttons, that the user selects and the base figure changes accordingly.

There is the option of 3 base figures too.

Are there any scripts out there that match that?

Haven't found any yet.
Old 17 October 2007, 04:13 PM
  #2  
spectrum48k
Scooby Regular
 
spectrum48k's Avatar
 
Join Date: Feb 2006
Posts: 2,519
Likes: 0
Received 0 Likes on 0 Posts
Default

to see an immediate change you'll need to employ javascript or similar extension to html.

Javascript Tutorials and Lessons: Javascript and Radio Buttons on a HTLM Form
Old 17 October 2007, 04:23 PM
  #3  
GazTheHat
Scooby Regular
Thread Starter
 
GazTheHat's Avatar
 
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes on 0 Posts
Default

Was just looking at that example as it happens. It doesn't do quite what i'm after, but i'm stuck on what to google for.

Because i would have about 15 drop down boxes, all effect the final price.

I'm after something similar to this:
Custom Poker Tables by DK Poker Tables

but without having to hit the "calculate" button, just for the price to be changed automatically.
Old 17 October 2007, 04:48 PM
  #4  
Iain Young
Scooby Regular
 
Iain Young's Avatar
 
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes on 0 Posts
Default

What I'd do...

Hold the price in a global Javascript variable

Create a javascript function to display the value of that variable on the page (just replace the contents of a div).

Put listeners on the drop down boxes (onchange, onclick etc) which call Javascript functions which in turn update the global price variable, and then call the aforementioned display function.

Jobs a goodun
Old 18 October 2007, 02:40 PM
  #5  
GazTheHat
Scooby Regular
Thread Starter
 
GazTheHat's Avatar
 
Join Date: Aug 2005
Location: 392/361 MY04 STi
Posts: 7,638
Likes: 0
Received 0 Likes on 0 Posts
Default

Originally Posted by Iain Young
What I'd do...

Hold the price in a global Javascript variable

Create a javascript function to display the value of that variable on the page (just replace the contents of a div).

Put listeners on the drop down boxes (onchange, onclick etc) which call Javascript functions which in turn update the global price variable, and then call the aforementioned display function.

Jobs a goodun
That's pretty much how i thought it would be done.

The only problem is, my javascript is minimal, so i could waste forever trying, testing these functions.

Anyone have/know of some similar functions or could provide code snippets??

Would be greatly appreciated.
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Scott@ScoobySpares
Full Cars Breaking For Spares
61
11 January 2021 03:08 PM
taylor85
Wanted
2
13 September 2015 04:57 PM
AzzDSM
Engine Management and ECU Remapping
4
13 September 2015 03:59 PM
robbie1988
Wanted
2
13 September 2015 09:25 AM
Scooby-Doo 2
Wheels And Tyres For Sale
1
09 September 2015 06:51 PM



Quick Reply: Help needed from web gurus



All times are GMT +1. The time now is 06:45 PM.