Im at a loss then, the only other thing i could suggest is that you put the code directly into the page, rather than in the domready event.
<form> ..form code.. <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/ Event.observe('peopleLocatorForm18', 'submit', function(event){ Event.stop(event); alert('success!!!'); }); /*-->]]>*/</script> </form> Or maybe it has something to do with the modal window javascript code? Richard venuko wrote: > > Richard, > > I looked at the zoomf.com, the search worked in my browser, so I modified > my JavaScript accordingly. Here is what you got on that page: > > <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/ > Wicket.Event.add(window, "domready", function() { > Event.observe('searchForm74', 'submit', function(event){ > Event.stop(event); submitSearchForm(); });;}); > /*-->]]>*/</script> > > Here is what I got: > > <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/ > Wicket.Event.add(window, "domready", function() { > Event.observe('peopleLocatorForm18', 'submit', function(event){ > Event.stop(event); alert('success!!!'); });;}); > /*-->]]>*/</script> > > I really can't see a difference. However mine still submits the form > normally. And I am pretty sure it is the right form that I am attaching > the observer to. As my son says, it just not fair :) > > --Victor > > > richardwilko wrote: >> >> the page is www.zoomf.com/map if you want to see it for yourself. >> > > ----- http://richard-wilkinson.co.uk My blog: http://richard-wilkinson.co.uk -- View this message in context: http://www.nabble.com/TextField-inside-a-ModalWindow-problems-tp20363183p20524625.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]