I am trying to take an open source javascript slider and place it on another site but its not working for some reason. What is a good tool to figure what is going on and if anyone can specifically how I can use that tool to pin point the error?
Click the insect at bottom right and then click console. Load the page and any errors will appear in the console. You might need to interact with the slider to trigger the errors, which will appear in real time in the console. Alternatively, use console.log(someVar) to spit out the valued of variables - often a lot better than using alert().
You should of course read the documentation for Firebug as well.
With the inline styles it’s not easy to read, but if you turn off CSS the images show OK. Turn CSS back on, the “grey box” returns. Load the page with javascript disabled, and the “grey box” is there.
So the javascript could have something to do with it, but it would be worth the effort to check the CSS too.
The built in developer tools in IE8, Opera, Firefox, Safari, and Chrome provide a full featured JavaScript debugger. The Venkman extension provides an identical option for Firefox.
That will allow you to run similar debugging tests in all five browsers using debuggers that function the same way.
it was conflict between two scripts. I had a script for the tabs to slide down and the slider itself. Both were fighting so I just put them into one script and ran that.
I don’t really know how that happened. It isn’t quite identical across all browsers yet though since Firefox have yet to build the functionality into the browser itself so you still need to install the extension (the same as you need to install the developer toolbar plugin to get the same functionality in IE6 and IE7)
Thank you for sharing that. There is some progress towards using namespaces in various scripts to prevent such conflicts, but as it is now conflicts sure can be troublesome, as you have experienced first-hand.
Is anyone currently having problems with their Google chrome browser crashing, from the shockwave flash plug in currently not working? I’m having serious issues over here…