[jQuery] Is trigger workable in Safari!?
I tried, but not work! Here is my code snip: jQuery(#hello).blur(function() { //... some form validation code }); jQuery(#form).submit(function() { jQuery(#hello).trigger(blur); ... }); -- Best regards, 沈志川 (Benx) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Is trigger workable in Safari!?
Thank you. But, is there no better way!? The compatibilities of browsers are really troublesome On 1/16/07, Jörn Zaefferer [EMAIL PROTECTED] wrote: 沈志川 (Benx) schrieb: I tried, but not work! Here is my code snip: jQuery(#hello).blur(function() { //... some form validation code }); jQuery(#form).submit(function() { jQuery(#hello).trigger(blur); ... }); As a workaround, you could refactor your code a bit: function validateHello() { //... some form validation code } jQuery(#hello).blur(validateHello); jQuery(#form).submit(function() { validateHello(); ... }); -- Jörn Zaefferer http://bassistance.de ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Best regards, 沈志川 (Benx) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] getScript error
If so, you can not override jQuery.getScript function. But my test result is, IE6 and FF2 would wait to finish downloading the script and continue the program. jQuery.getScript = function (src, callback) { var js = document.createElement('SCRIPT'); js.type = 'text/javascript'; js.src = src; js.defer = true; document.body.appendChild(js); // IE6 and FF2 would wait to finish downloading the script (NOT async) if(callback) callback(js.text || js.textContent || js.innerHTML || ); // call the callback function } On 11/24/06, Andrea Ercolino [EMAIL PROTECTED] wrote: 沈志川 (Benx) wrote: Why not use document.createElement(script) !? Because we want jQuery to wait until the script is loaded and evaluated, so it's possible to do something upon completion, like continuing the normal flow of the program. This is necessary for example for writing a require like the one in PHP. -- View this message in context: http://www.nabble.com/getScript-error-tf2652417.html#a7514393 Sent from the JQuery mailing list archive at Nabble.com. ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/ -- Best regards, 沈志川 (Benx) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/
Re: [jQuery] Interface Elements uncompressed version
I would like to get the uncompressed version of the interface elements plugin, too!On 8/29/06, Joerg Zwirner [EMAIL PROTECTED] wrote: Does anyone have an uncompressed version of the interface elements plugin or could you repair the link on the http://interface.eyecon.ro/downloadsite? Thank you and best regards Jörg ___jQuery mailing listdiscuss@ jquery.comhttp://jquery .com/discuss/-- Best regards,沈志川 (Benx) ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/