The data has to be displayed as echo, not return. So he is right. JS is not part of PHP, JS is a client side language while PHP is a server side. There are several ways though for you to...
Yes, you lost the event cause the original element it was attached to was replaced when you did the html call so you'll have to re-register the event with that element. There is no to physically see...
Easy enough to fix lol, add this.class !== undefined to the beginning of the if statement as the first condition, if that one fails it shouldn't go on to the next one. It should look like
You should look carefully at your code, you attached your event to allnav which is inside navpane, when you do $("#navpane").html you basically emptied out the contents of the tag, events included...
Well I'll need an exact error from the debugger to help here, try to remove this as a parameter to toggle cause you maybe overwriting the object. When a function is triggered by event like on click,...
That doesn't really matter if it's the same or not, think of it this way, easy tag is unique and when you attach an event, you attach it to the tag, you remove that tag you remove everything...
The reason that's happening is because you're removing the link which you had the event attached to. when you remove that anchor link, you remove the event as well and you have to reattach it.
try just using toggle() instead of toggle(this) and then at the toggle function add an alert to see if it triggers. You can use Chrome's web developer tools to debug your code to see whether or not...
What you might be able to do is wrap the iframe in a div, set the style to position: relative; then inside the div, set the style position to absolute and the width and height to the site of your...
Have you tried using a JS debugger like web developer tools in Google Chrome to debug your script to see what exactly is happening? I use it all the time to debug my own code and its really useful....
Hey guys, just wanted to get some opinions on the topic and what people think on my little library. Some background on this is, I'm a Software Engineer working for a company who develops web apps...