[jQuery] Re: Code Simplifying Help

2009-03-01 Thread ramonmaruko
a){ > $('.Comaker' + idx).html(data); > // remove loading image > ajax_remove_loading_image('.ajax_loading_image'); > } > }); > }); > > > extra note: no need to ".clear" befo

[jQuery] Code Simplifying Help

2009-02-28 Thread ramonmaruko
Is there a 'better' way of doing this? I think that the code is dirty since a lot of things are being repeated elsewhere. Tips, hints, links, etc would be appreciated. Thank you. JQuery code: http://pastebin.com/m3b0c63fb HTML form code: http://pastebin.com/m664f5de6

[jQuery] Code Simplifying Help

2009-02-28 Thread ramonmaruko
Is there a better way to do this? I think that it's possible to shorten this code, but I just don't know how. A little help would be appreciated. :) HTML form code: http://pastebin.com/m664f5de6 JQuery code: http://pastebin.com/m60b285b0 Maybe something like the following pseudo-code: