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!

Jquery function calls in page html header

RDFeb 18 2010 — edited Feb 18 2010
Hi ,

I have included the Jquery Js files in my page template as follows :
 <script type="text/javascript" src="#IMAGE_PREFIX#js/jquery-1.3.2.min.js"></script> 
Now If I use a function like below in my template, it works perfectly well
<script>
$(document).ready(function(){

$("#dialog2").dialog({
bgiframe: true,
autoOpen: false,
height: 300,
modal: true

});

});
</script>

{code}


However if I call the above script in my Page html header it throws an error 
 <b> $ is not defined </b>  
but works well if I add in the tempalte.
If I look at the page source , i notice that the page html header is displayed and then the page template header section and seems like that is the reason why the error comes when I call Jquery functions in my page html header....

Now I do not want to add individual functions to the template since they are page specific.
How do I handle this issue ? Should I include the call to the Jquery JS in my Page html header ?


Appreciate any pointers/suggestions.

Thanks,
Dippy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 18 2010
Added on Feb 18 2010
1 comment
873 views