[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, success:

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 =

RE: [jQuery] passing variables to JQuery

2009-12-22 Thread Scott Stewart
@googlegroups.com Subject: Re: [jQuery] passing variables to JQuery (function($){ var defaults = { button: '#buttonId', form: '#formId', target: '#targetId', url:'/change/me', page: '/change/me/too

[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: h1Remote call in progress.../ h1 }); jQuery.ajax({ type: 'POST', url: 'emaildocument.php',