How Do I Get Past The Jquery Error "$ Not Found Error"?
Solution 1:
I would suggest that perhaps you're not linking to the jQuery library properly or have it linked in the wrong order. Could you provide more details as to what you're asking? Do you want the code to do this, or are you just asking about the jQuery object not being found?
Solution 2:
get firebug plugin for firefox. load your page .. go to firebug console .. type $ and if it doesnt say 'function()' you haven't included the jQuery library properly
Solution 3:
I'm trying to understand your question; it's very unclear what you're describing. Is the code you're showing coming from your web browser once you've loaded it (by viewing the source) or is it prior to being evaluated on the server?
What happens if you change this line in the popup:
var parent_status='<? echo $_GET[parent_status];?>';
to this:
var parent_status=1;
Solution 4:
According to what I have understood here is the code below and check it if this works for you:
Paste this code inside main window:
<?phpif(isset($_GET['parent_status'])): ?>
$(document).ready(function(){
selectFn(<?phpecho$_GET['parent_status'] ?>);
})
<?phpendif?>
Below this code:
functionpopitup(url) {
newwindow=window.open(url+'?parent_status='+visible_status,'name');
if (window.focus) {newwindow.focus();}
returnfalse;
}
And, replace the closePopup
function inside popup window with this code:
functionclosePopup() {
var href = window.opener.location.href;
if((pos = href.lastIndexOf('parent_status=')) >= 0)
{
var patt = newRegExp('parent_status=' + parent_status);
href = href.replace(patt, 'parent_status='+parent_status);
} else {
href = window.opener.location.href + '?parent_status=' + parent_status
}
window.opener.location.href = href;
self.close();
}
Hope this helps.
Post a Comment for "How Do I Get Past The Jquery Error "$ Not Found Error"?"