145 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
  • Exclusive Author
LovelessDesign
says

Yes, I have wp_head() and wp_footer().

I tried

jQuery.noConflict();
$(window).load(function () {
    alert("s");
}

and

jQuery.noConflict();
jQuery(window).load(function () {
    alert("s");
}

I also tried deleting every unnecessary code in functions.php or in the head tag

145 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
  • Exclusive Author
LovelessDesign
says

It worked with

jQuery(document).ready(function($) {

hm I still don’t know when to use a $, when to use jquery and when to use a $ in function($).

Another Question: Can’t I use jQuery(window).load(function($) { ? I’ve got problems with Google Chrome when reloading with F5 if I use document-ready instead of window-load

743 posts
  • Elite Author
  • Weekly Top Seller
  • Featured Item
  • Most Wanted Winner
+5 more
Orbital_Themes
says

Have you checked the footer of your page with code inspector or firebug to see if the script is outputted correctly? Because right now you don’t really know if it’s something wrong with outputting scripts or with script syntax itself.

EDIT : Also, what browser are you using to test this?

145 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
  • Exclusive Author
LovelessDesign
says
Everything works now. I use
jQuery(window).load(function() {    

thanks a lot to everyone

3804 posts
  • Elite Author
  • Author Level 11
  • Trendsetter
  • 7 Years of Membership
+12 more
KrownThemes
says

Everything works now. I use
jQuery(window).load(function() {    
thanks a lot to everyone

Adding:

$ = jQuery.noConflict();

at the top of the scripts file will solve all your problems(if the problem is js like yours). Then you’ll be able to use the $ variable without any problems..

145 posts
  • 3 Years of Membership
  • Austria
  • Collector Level 1
  • Exclusive Author
LovelessDesign
says


Everything works now. I use
jQuery(window).load(function() {    
thanks a lot to everyone

Adding:

$ = jQuery.noConflict(); at the top of the scripts file will solve all your problems(if the problem is js like yours). Then you’ll be able to use the $ variable without any problems..

thank you. you were absolutely right

by
by
by
by
by
by