WebFx Combo Box in HTML Table



  • Auf der Seite WebFx gibt es ein schönes ComboBox Control:
    http://webfx.eae.net/dhtml/combobox/combobox.htm

    ich wollte dieses Control nutzen - etwa so:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    
    <html>
    <head>
    	<title>ComboBox Demo</title>
    
    	<style>
    	body          {font-size:9pt;font-family:verdana;}
    	button        {cursor:hand;border:1px solid black;font-family:arial;font-size:9pt;}
    	a             {color:red;}
    	a:hover       {color:blue}
    	</style>
    
    	<script type="text/javascript" src="ComboBox.js"></script>
    </head>
    
    <body>
    
    	<table>
    		<tr>
    			<td>
    
    				<script type="text/javascript">dm=new ComboBox("dm")
    
    					dm.add(
    			       new ComboBoxItem("barge",1),
    			       new ComboBoxItem("benluc",2),
    			       new ComboBoxItem("benlieeeeck",3),
    			       new ComboBoxItem("taco",4)
    			       )
    
    				</script>
    
    			</td>
    
    			<td>
    					Foobar
    			</td>
    
    			<td>
    				looolll	
    			</td>
    		</tr>
    	</table>
    
    </body>
    </html>
    

    Wenn ich versuche die Seite mit dem Internet Explorer zu öffnen kommt immer eine Fehlermeldung, dass die Seite nicht angezeigt werden kann. Nimm ich die Combobox aus der Tabelle heraus, so wie im Demoprojekt auf der Seite von WebFx funktioniert alles ohne Probleme… was mach ich falsch?


Anmelden zum Antworten