2011-01-15 14 views
0

Ich habe ein unerwartetes Problem beim Senden einer von. Die Aktion des Formulars ist eine andere Domäne. Und die Methode ist zu bekommen. Hier, um den Code des von:Cross-Domain-Formular einreichen funktioniert nicht in Chrome und IE

<div style="width: 100%; background-color: #09334D; margin: 0 0 15px 0; padding: 10px; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;" 
<form action="http://www.flipkart.com/search-book" method="get"> 
    <a href="http://www.flipkart.com/?affid=debiprasad"> 
     <img alt="Flipkart.com" style="vertical-align:middle" src="http://static.fkcdn.com/www/270/images/flipkart_india.png" /> 
    </a> 
    <input type="hidden" name="affid" value="debiprasad"> 
    <input type="text" name="query" style="height:25px; width: 400px; font-size: 16px;"> 
    <select onchange="$(this).closest('form').attr('action', 'http://www.flipkart.com/search-' + $(this).val());" style="height:25px; width: 150px; font-size: 16px;"> 
     <option value='book' selected>Books</option> 
     <option value='music'>Music</option> 
     <option value='movie'>Movies & TV</option> 
     <option value='game'>Games</option> 
     <option value='mobile'>Mobiles</option> 
    </select> 
    <input type="submit" value="Search" style="height:25px; width: 100px; font-size: 16px; background: url('http://static.fkcdn.com/www/270/images/fkart/search_button_bg.png') repeat-x scroll 0 0 transparent; border: 1px solid #915A13; color: #3C2911; cursor: pointer; font-family: 'lucida grande',tahoma,verdana,arial,sans-serif; font-weight: bold; padding: 0 17px 0 15px; margin: 0; -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px;"> 
</form> 

Das Formular befindet sich unter: http://wheretobuyonline.in/

Wenn ich auf die Schaltfläche „Suchen“ (abschicken) Taste, es nicht vor. Dieses Problem tritt in Chrome und IE auf (8). Aber funktioniert bei Firefox problemlos.

Antwort

2

Sie haben einen Fehler in Ihrem Markup, das Div-Tag vor dem Formular-Tag, hat die ">" schließen fehlt. Ich denke, das ist das Problem.

+0

Oh ja. Dummer Typfehler. Und ich wurde wütend. Danke, dass du auf diesen Fehler hingewiesen hast. Also die Frage ist nutzlos, soll ich diese Frage löschen? – Debiprasad

Verwandte Themen