Im just checking over the code which i wrote to do this in production.  Its a
little hard as i dont work at that company any more, but looking at the html
source for the page the syntax i used there was

Event.observe('formId', 'submit', function(event){ Event.stop(event);
submitSearchForm(); });;}

which should technically do the same as the version i have on my blog, from
looking at the prototype api, but maybe there is a bug in prototype?

the page is www.zoomf.com/map if you want to see it for yourself.





venuko wrote:
> 
> Richard,
> 
> That's exactly how I tried to debug what's working and what's not :) I've
> added a few alerts to your getScript() method, and this is how Wicket
> rendered it on the page:
> 
> <script type="text/javascript" ><!--/*--><![CDATA[/*><!--*/
> Wicket.Event.add(window, "domready", function() { alert('at least the DOM
> is ready'); $('peopleLocatorFormf').observe('submit',
> function(e){alert('success!!!');Event.stop(e);
> $('submitLink10').onclick(null);});;});
> /*-->]]>*/</script>
> 
> The first alert is working, the second is not.... Do you see anything
> abnormal here?
> 
> --Victor
> 
> 
> richardwilko wrote:
>> 
>> im not sure, try putting an alert in the code to make sure that the
>> submit event is being observed, and dont bother with the wicket version
>> at until you know the javascript on its own is working.
>> 
> 
> 


-----
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-tp20363183p20517765.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]

Reply via email to