Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

apex.jQuery(document).ready vs the ones without the word apex

lakeJan 7 2011 — edited Jan 20 2011
I was blundering along cluelessly trying to bind event handlers using jquery, wherein I was missing a step (the ready function doh!) , and in researching that I found out that there were examples floating around using a different construct than the jquery book would use:

jquery book:
$(function() 
  {$('#MYELEMENT')
       .bind('click',function(event) 
           {
            alert ('hey I caught one');
            }
      )
  }
  );
some examples here and there:
[http://www.danielmcghan.us/2010/05/new-region-events-in-apex-4-this-is.html]

which is doing something akin to this:
apex.jQuery(document).ready(function(){
 etc 
ok so what is the significance of using "apex.jQuery(document).ready"
versus the other way? should I be converting all my ready functions that I've already stuck in there to this other
format? Am I risking some kind of disaster? (If so this should be in the faq).
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2011
Added on Jan 7 2011
4 comments
1,430 views