Probleem met Form post in asp

Pagina: 1
Acties:

  • mark_gl
  • Registratie: September 2001
  • Laatst online: 23:18
Dit gebruik ik om te posten, maar wanneer ik een naam in het username veld invul en dan op enter druk wordt de pagina herladen, wanneer ik op de image click dan wordt het venster herladen, hoe zorg ik ervoor wanneer ik op enter druk de pagina niet herladen wordt maar het window geopend wordt

<form name="frmChat">
<input type="text" name="username" size="12"><br>
<input type="image" src="/images/chat.gif" onClick="window.open('/chat.asp?username=' + document.frmChat.username.value, 'chatwindow', 'width=790,height=540');">
</form>

  • Basszje
  • Registratie: Augustus 2000
  • Laatst online: 17-09 12:17

Basszje

Reisvaap!]

Dat plaatje niet in een form zetten :?

m.a.w. wat is de diepere nut van dit formulier?

Beware of listening to the imposter; you are undone if you once forget that the fruits of the earth belong to us all, and the earth itself to nobody.


  • MrBrown
  • Registratie: Augustus 2000
  • Laatst online: 11-06 15:51

MrBrown

Reservoir Dog

Doet een input type=image niet altijd een submit? Misschien kan je ipv

<input type="image" src="/images/chat.gif" onClick="window.open('/chat.asp?username=' + document.frmChat.username.value, 'chatwindow', 'width=790,height=540');">

wel proberen:

[img]src="/images/chat.gif"[/img]

Powered by Manetti (compiled by Jura)


  • mark_gl
  • Registratie: September 2001
  • Laatst online: 23:18
Het plaatje werkt als submit alleen wanneer ik op enter druk wordt er geen venster geladen !!!

  • RupS
  • Registratie: Februari 2001
  • Laatst online: 30-08 20:49
Moet je geen action="bla.asp" opgeven in je form ??

  • Greyfox
  • Registratie: Januari 2001
  • Laatst online: 16-09 21:53

Greyfox

MSX rulez

<Enter> is impliciet een submit, dus als de die code nou ook aan het on_submit-event hangt?

MSX 2 rulez more


Verwijderd

[onzin stond er]

  • Gert
  • Registratie: Juni 1999
  • Laatst online: 05-12-2025
In het <form> onSubmit = "return false", dan submit ie niet.
Pagina: 1