Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 01-09-2006, 08:52 PM   #1
jerryj
Senior Member
 
jerryj's Avatar
 
Join Date: Oct 2004
Location: Amsterdam, Netherlands
Posts: 289
Default combobox initial item combobox

Hi,

I have this code on a submitbutton.
'droptext' is a combobox. It works fine, except for the initial state of it all. I mean, I have to select one of the items in the combobox, before I can make it work. Sending the default item (getValue == 1) only works when it is selected after another item has been selected.

Code:
on (release) {
	       var result_lv = new LoadVars();
		if (droptext.getValue() == 1) {
			result_lv.mytitle1 = field.text;
		}
		if (droptext.getValue() == 2) {
			result_lv.mytext1 = field.text;
		}
		if (droptext.getValue() == 3) {
			result_lv.mytitle2 = field.text;
		}
		if (droptext.getValue() == 4) {
			result_lv.mytext2 = field.text;
		}
		result_lv.sendAndLoad("write2.php", result_lv, "POST");
}
What should i change or add?

Thanks,

Jerryj.
__________________
registro ergo sum
jerryj is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do you select a specific item in a combobox cis4life Components 8 04-17-2009 08:03 PM
Changing the selected item in a combobox mcmcom Components 3 07-28-2006 11:42 AM
Setting selected item for combobox AS1 Paul Ferrie Components 2 05-15-2005 05:44 PM
cellRenderer (movieClip as comboBox item) skovalyov Components 5 03-30-2005 02:14 PM
How do you make a comboBox item sticky? allenshorter Components 3 02-02-2005 06:21 PM


All times are GMT. The time now is 12:28 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.