Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 02-14-2004, 09:35 AM Help with php
wvmlt's Avatar
Experienced Talker

Posts: 46
Trades: 0
Take a look at this click is there an easy way to make the text size, color and font dropdown menus with the choices already filled in so users can just select 20px, blue, verdana without needing to type the choice in?
wvmlt is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-14-2004, 01:39 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Just make them select's instead of inputs

Code:
<select name="color">
<option value="blue">Blue</option>
<option value="red">Red</option>
<option value="#EEEEEE">Light Gray</option>
</select>
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 02-14-2004, 04:59 PM
wvmlt's Avatar
Experienced Talker

Posts: 46
Trades: 0
I tried the suggestion and it looks good but it doesn't seem to work. No matter which values are selected, the text stays the same.
wvmlt is offline
Reply With Quote
View Public Profile
 
Old 02-14-2004, 05:25 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Are you sure the name is correct? Does your script use color to access the value?

How about sharing some code, maybe there's something wrong there. It should work, unless I'm missing something dreadfully simple.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 02-14-2004, 08:14 PM
Christopher's Avatar
Iced Cap

Latest Blog Post:
Cross-domain AJAX with JSONP
Posts: 3,110
Location: Toronto, Ontario
Trades: 0
Got your PM,

The problem seems to be your name. Change the names of the dropdowns to these (ie. <select name="myname">):
  • font size -> titleSize
  • color -> titleColor
  • font -> titleFont

If you are replacing other items of the form in the same manner, be sure to name the dropdowns with the same name as the fields you are replacing.
__________________

Please login or register to view this content. Registration is FREE
- Latest Articles:
Please login or register to view this content. Registration is FREE
,
Please login or register to view this content. Registration is FREE

--
Please login or register to view this content. Registration is FREE

Christopher is offline
Reply With Quote
View Public Profile
 
Old 02-15-2004, 12:09 AM
wvmlt's Avatar
Experienced Talker

Posts: 46
Trades: 0
Thank you so much. That was it, like you said, something simple.
wvmlt is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Help with php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39998 seconds with 12 queries