Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 560723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:22:25+00:00 2026-05-13T12:22:25+00:00

If you paste these codes http://paste.plurk.com/show/152772 in http://htmledit.squarefree.com/ You will see the codes run

  • 0

If you paste these codes http://paste.plurk.com/show/152772 in http://htmledit.squarefree.com/

You will see the codes run without any problem. The images altogether will turn into a slideshow.

However, if you paste the following codes:

http://paste.plurk.com/show/152773

The codes will fail to run, no slideshow.

These two pieces of codes only differ in whether the codes are wrapped inside a jquery anonymous function.

I just have no idea why the second piece of codes doesn’t work.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:22:25+00:00Added an answer on May 13, 2026 at 12:22 pm

    Interesting. You might want to place the function in:

     $(document).ready(function() {
         //stuff to do on document.ready()
     });
    

    It appears that the first example does that for you, which is why it works. The second example is probably performing those actions before the elements appear in the dom, which would make the javascript pointless.

    Resource: About $(document).ready()

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

code link: http://jsbin.com/ozoma3/edit codes (can copy/paste to a .html file, and run it) :
Here's the code: http://paste.pocoo.org/show/238093/ My main questions right now are: Is Line 37 mainly
Basically, the codes I have is from here : http://ranafaisal.wordpress.com/2009/02/17/dynamically-adding-removing-textboxes-in-aspnet-repeater/ However, the thing is
I want to know if there is any way by which I can paste
Right, hi guys, I recently followed a tutorial http://xnadevelopment.com/tutorials/thestateofthings/thestateofthings.shtml where I wanted to create
I have a bunch of textarea's on a page with copy and paste codes
I have written the following codes, the purpose of these codes is to generate
Possible Duplicate: What good is JSLint if jQuery fails the validation http://code.jquery.com/jquery-1.4.4.js Go to
I really need help on reading the JSON data on this URL: http://www.cloudspokes.com/members/ferbie12/past_challenges.json I
Are there tools out there which could automatically find copy-and-paste code among a set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.