Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > Web Development
You last visited: Today at 08:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Combobox einstellen

Discussion on Combobox einstellen within the Web Development forum part of the Coders Den category.

Reply
 
Old   #1
 
animus7's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 219
Received Thanks: 103
Combobox einstellen

Hallo Leute,

Ich hab seit einiger Zeit ein Problem, undzwar soll Combobox folgenden Zeile
verändern:

<form action="1...../........./........php"method="post" onSubmit="return updateLocation(this);" class="form">
<input type="text" name="u" id="input" size="40" class="textbox"> <input type="submit" value="Go" class="button">
<br style="clear: both;">
</form>
</div>

z.b. wenn ich dann in der Combobox diesen Wert auswähle:

<option value="2...../........./........php">Script 1</option>[/HTML]

Soll es so aussehen:

<form action="2...../......../........php" method="post" onSubmit="return updateLocation(this);" class="form">
<input type="text" name="u" id="input" size="40" class="textbox"> <input type="submit" value="Go" class="button">
<br style="clear: both;">
</form>
</div>[/HTML]


<select>
<option value="1...../........./........php">Script 1</option>
<option value="2...../........./........php">Script 1</option>
<option value="3...../........./........php">Script 2</option>
</select>

Wo die Punkte sind in der Combobox sollen diese dementsprechend mit dem Punkten im Script geändert werden.

Danke im Vorraus
animus7 is offline  
Old 08/25/2012, 18:56   #2
 
kissein's Avatar
 
elite*gold: 0
Join Date: Sep 2005
Posts: 427
Received Thanks: 87
Quote:
function updater()
{
document.testform.action = document.getElementById("selectfield").value;
}
hierfür muss dein form den name "testform" erhalten sowie das select element die id "selectfield" und einen onchange Eventhandler für die "updater()" funktion
Quote:
<form action="" method="post" name="testform"
Quote:
<select id="selectfield" onchange="updater();">
kissein is offline  
Thanks
1 User
Old 08/25/2012, 20:04   #3
 
animus7's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 219
Received Thanks: 103
thanks
animus7 is offline  
Reply


Similar Threads Similar Threads
combobox-CLR
03/11/2012 - C/C++ - 11 Replies
Me and friend wanna make a project.So we wanna a button read a combobox,which that combo,will have slots like slot1,slot2 etc. slots will be values like slot1 = 12345 slot2 = 123456 and we want a button read the slot and write to memory with value,a slot of combo list. Sorry for fails english D;
Accountdaten aus Ini in Combobox
12/05/2011 - AutoIt - 3 Replies
Hey ! Ich habe ein "kleines" Problem. Ich wollte mir einen einloggbot für ein spiel schreiben, wo ich mehrere Accounts habe. Die daten sollten in einer Ini gespeichert werden. Das klappt auch alles super, mit einem Account. Wie bekomme ich es jetzt hin, dass ich auslesen kann, wieviele Accounts in der ini sind ? Ich möchte, das die Anzahl der Felder in der Combobox indentisch mit der ist, die es wirklich gibt. Immoment wird per IniRead die erste id ausgeslesen und dann in die Combobox...
hilfe mit ComboBox
09/07/2010 - AutoIt - 1 Replies
hey ich bin relativ neu mit dem AutoIt und Koda und hab gleich ma ne frage^^ wenn ich ne combomach machen will (Koda) möchte ich das per klick mehrere sachen untereinander stehen wie eine tabelle halt aber auf klick steht da halt nur 1 wäre nett wenn man mir sagen kann wie ich neue zeilen hinzufüge^^ thx :D
[problem] mit der combobox
06/10/2010 - AutoIt - 10 Replies
hey leuts ich hab ein problem mit der combobox und ich finde keine lösungen dazu und will halt euch mal dazu fragen mein problem liegt darin das ich eine combobox gemacht habe und der inhalt dann bei imagesearch verwendet werden soll..aber das geht einfach nciht und um zu zeigen was ich meine hier ein ausschnitt meines scripts: GUICtrlCreateCombo("", 152, 88, 145, 25) $combo1 = GUICtrlSetData(-1,...
Combobox Problem
11/05/2009 - AutoIt - 7 Replies
Huhu ich bins wieder ^^ hab ein kleines Prob mit der combobox ich möchte gern nen script machn der wenn man bei combobox zb "1" dann des fenster öffnetn wo zb "1" button hatt und dann bei combobox "2" dann die nächste seite aufmacht wo dann 2 buttons sind. Das Problem ist wenn ich bei Koda ne Combobox mach und dann Combo1 nnim und buttons mach und dann auf Combo2 geh sind die buttons auch da aber ich will das wenn man halt das changed auch andere bzw neue buttons machn kann falls ihr...



All times are GMT +1. The time now is 08:44.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.