[jQuery] Re: calling a function before a form is submitted

2008-04-28 Thread gregarious
posting a link to a test page that demonstrates the problem? -Mike From: gregarious Hi, I'm trying to perform an action before a form is submitted using the following snippet: $('form').submit(function() { updateMapFromFields(); return true; }); but for some

[jQuery] Re: calling a function before a form is submitted

2008-04-28 Thread gregarious
Hi, with your code above you trigger the submit event, but what you want is to listen to it.. so you should use $(form).bind(submit, ); is there really a difference between $('form').bind('submit', fn); and $('form').submit(fn); The way I understood so far they should behave equally.

[jQuery] calling a function before a form is submitted

2008-04-27 Thread gregarious
Hi, I'm trying to perform an action before a form is submitted using the following snippet: $('form').submit(function() { updateMapFromFields(); return true; }); but for some reasons the updateMapFromFields seems not to be executed. If, instead, I execute the following code (with

[jQuery] deferring script loading

2008-04-19 Thread gregarious
Hi, I have some javascript code (which makes use of jquery), that is placed before the jquery library itself as in the following. script type=text/javascript javascript code which makes use of jquery /script script type=text/javascript src=path/to/jquery/script For reasons that it would be

[jQuery] Re: deferring script loading

2008-04-19 Thread gregarious
Thanks, it seems to have worked:-) I suppose it doesn't harm to set the time interval to a value greater than 10, right? Thanks again Francesco On Apr 19, 8:56 pm, Christof Donat [EMAIL PROTECTED] wrote: Hi, Is it possible, somehow, to defer the execution of the first script to after the

[jQuery] Accordion setting height: 0px and overflow-y: hidden

2007-10-18 Thread gregarious
Hi, I'm using the accordion widget that came with the recent release of jQuery UI and I'm having trouble getting the right height of the second content of the accordion. The code is as follow: $(function(){ $(#side-content).accordion(); }); $(function(){ // Load the tags and

[jQuery] accordion setting height: 0px, overflow-y: hidden

2007-10-17 Thread gregarious
Hi, I'm using the accordion plugin that came with the first release of jQuery UI and I'm having some troubles getting the right height of the second content of the accordion. The code is as follow: $(function(){ $(#side-content).accordion(); }); $(function(){ function

[jQuery] accordion setting height: 0px, overflow-y: hidden

2007-10-17 Thread gregarious
Hi, I'm using the accordion widget that came with the recent release of jQuery UI and I'm having trouble getting the right height of the second content of the accordion. The code is as follow: $(function(){ $(#side-content).accordion(); }); $(function(){ // Load the tags