Solved

JQuery  funtionality

Posted on 2014-02-21
6
130 Views
Last Modified: 2014-02-21
Is     $()   equivalent to   $(window) ?
0
Comment
Question by:metro156
  • 3
  • 3
6 Comments
 
LVL 58

Expert Comment

by:Gary
ID: 39877595
No
$() does nothing as you are trying to attach it to nothing.
0
 

Author Comment

by:metro156
ID: 39877626
Isn't there an  jQuery  statement  that defaults to $(window) or $(document) or something like that. I am trying to remember what I read somewhere that it was an equivalent.
0
 
LVL 58

Expert Comment

by:Gary
ID: 39877636
If you are trying to set something to happen on document load then the shortcut is

$(function(){
...
})
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:metro156
ID: 39877686
I am very new to jQuery - so what is the long way ?

$( document ).ready()
0
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39877695
That's the long way and the above is the shorthand way
0
 

Author Closing Comment

by:metro156
ID: 39877718
www.jQuery.com  -------- shows it.
0

Featured Post

ScreenConnect 6.0 Free Trial

At ScreenConnect, partner feedback doesn't fall on deaf ears. We collected partner suggestions off of their virtual wish list and transformed them into one game-changing release: ScreenConnect 6.0. Explore all of the extras and enhancements for yourself!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...))The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
If I have to fix slow responding website my first thoughts are server side optimizations: the database may not be optimized or caching is not enabled, or things like that. We often overlook another major part of our web application: the client. We o…
This video teaches users how to migrate an existing Wordpress website to a new domain.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question