RE: [jQuery] passing variables to JQuery

2009-12-22 Thread Scott Stewart
wwood Sent: Tuesday, December 22, 2009 2:28 PM To: jquery-en@googlegroups.com Subject: Re: [jQuery] passing variables to JQuery (function($){ var defaults = { button: '#buttonId', form: '#formId', target: &#

Re: [jQuery] passing variables to JQuery

2009-12-22 Thread John Arrowwood
(function($){ var defaults = { button: '#buttonId', form: '#formId', target: '#targetId', url:'/change/me', page: '/change/me/too', }; clickToLoad = function( options ) { var o = $.extend({},defaults,optio

[jQuery] passing variables to JQuery

2009-12-22 Thread Scott Stewart
I've got a lot of hard coded values in JQuery functions like the one below $("#getTOByWeek").live("click", function(){ $.ajax({ type:"post", url:"webapps/hr/admin/actions/act_adminHR_Handler.cfm", data:$("#toByWeek").serialize(), cache:"false",

[jQuery] Passing variables to jQuery?

2009-10-08 Thread Simon
Hi, I'm using this code: jQuery('#sendemail').click(function() { // update the block message jQuery.blockUI({ message: "Remote call in progress..." }); jQuery.ajax({ type: 'POST', url: 'emaildocument.php',