i have a problem with the jq_link_to_remote tag, when i add the loading and completed options, the ajax would fail. Here's the code i have:
- Code: Select all
<?php echo jq_link_to_remote('link here', array('update' => 'contentdiv','url' => 'urlgoeshere', 'loading' => 'Element.show("loading-div")' , 'completed'=> 'Element.hide("loading-div")' ));
can anyone tell me what i'm doing wrong? is there an alternative to this?
thanks, your suggestions and advices would be greatly appreciated.