[jQuery] Anyone seen toggleClass is not defined
I keep receiving an error with this bit of code on click $(document).ready(function() { $('div.example').click( function() { $(this).toggleClass(activated); }); }); It works, but I keep receiving an error stating that toggleClass is not defined How would I define this?
[jQuery] Re: AJAX and javascript?
Hey, thanks for the reply... I found a couple of other people out there that have had the same issue (maybe), but not many The IE page returns the following code when it attempts to retrieve the ajax content script id=__ie_init defer=true src=//:/script There are some hacks out there, but I do not believe I am implementing them properly Basically, the problem occurs every single time I call JS function on the AJAX page Anyone seen this before and fixed it? script id=__ie_init defer=true src=//:/script
[jQuery] Re: AJAX and javascript?
Fixed! I have implemented the outstanding fix for this problem: It was referenced in the uncompressed version of jquery's latest version The fix is located on this site: http://javascript.nwbox.com/IEContentLoaded/ If any other noobs, such as myself, ever have this problem and not sure how to fix, just take the iecontentloaded.js from the site mentioned in the above line and implement it on the offending page that you are retrieving content from. You can do this on the page or calling from another .js file. I'm glad there are smart people in this world you understand things that I have no clue what's going on :)
[jQuery] AJAX and javascript?
Has anyone ever had incompatibility when getting an external file via the simple function function loadContent(id) { $(#ajaxContent).load(externalFile.aspx?program=+id+); } The external file I'm getting uses the contains multiple Cases which function fine when called. However, in one of the Cases I am attempting to utilize jQuery accordion, which doesn't work at all when pulled into the mother page. It does work on its own if you're on just the externalFile.aspx page. Furthermore, if I call the Case containing the accordion script, it produces a blank page in IE (go figure) Does this sound familiar to anyone? Having issues with loading external file elements that contain JS?