SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help in debugging jquery applications

    Hello,
    I am new to jquery and i know a bit about javascript.
    I am having a tough time trying to debug jquery applications using the Firebug. I just don't understand it once the SCRIPT tab opens up. It opens the jquery.js file but all i want to do is to debug my little portion i have written in jquery. Any video tut that is really lucid or a clear article would help or any other advice
    Thanks in advance

  2. #2
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by meera_kibe View Post
    Hello,
    I am new to jquery and i know a bit about javascript.
    I am having a tough time trying to debug jquery applications using the Firebug. I just don't understand it once the SCRIPT tab opens up. It opens the jquery.js file but all i want to do is to debug my little portion i have written in jquery. Any video tut that is really lucid or a clear article would help or any other advice
    Thanks in advance
    Try something like jslint.com
    You paste in your script and it will be really hard and nasty on you and find syntax and basic logic flaws. Once all that is good, you can start looking at the logic.

    As to the Script tab, did you mean your custom script was actually named "jquery.js"? You could copy paste your script into here and we could look at it. If you're new to jquery, Firebug might not be right avenue to take right now.

    One thing I've learned is to put alerts in the script at certain times to make sure values and such are what you are thinking they should be. So if you have a function when a user clicks on some work or element, put an alert.. alert("they clicked"); as the first line in that function to make sure the function is getting called. For instance.

    If you can paste it here, someone might be able to help out.

  3. #3
    SitePoint Member
    Join Date
    Oct 2011
    Posts
    16
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help in fading out a img

    Hi
    I want to fade out a simple img but it will not budge till i first fadeIn () the img.
    Is that true. if so why is this

    code
    $('#image').fadeIn()
    .fadeOut(400);

    $('#image').fadeOut(400); will not work


    If not can someone pls forward a simple piece of working code
    Thanks
    Meera


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •