Skip to main content
Post Closed as "Duplicate" by T.J. Crowder javascript
edited tags
Link
Starx
  • 79.3k
  • 50
  • 187
  • 266
Rollback to Revision 4
Source Link
Starx
  • 79.3k
  • 50
  • 187
  • 266

Hi IveI've been getting undefined error and I dont know how to fix it.

Here's my code:

function returnBlurayDisc(member_id){ var xmlhttp; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); }else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){document.getElementById("popup_container").innerHTML=xmlhttp.responseText; $("#GrayBackground").css({'height':'1900px','display':'inline'}); } } xmlhttp.open("GET","ajax/returnAjax.php?member_id="+member_id+"&name="+name); xmlhttp.send(); }
<script type="text/javascript">
    function returnBlurayDisc(member_id){
         var xmlhttp;

         if (window.XMLHttpRequest){
              xmlhttp=new XMLHttpRequest();
     }else{
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
     }

     xmlhttp.onreadystatechange=function(){
          if (xmlhttp.readyState==4 && xmlhttp.status==200){
         document.getElementById("popup_container").innerHTML=xmlhttp.responseText;
         $("#GrayBackground").css({'height':'1900px','display':'inline'});
                        
           }
     }

     xmlhttp.open("GET","ajax/returnAjax.php?member_id="+member_id+"&name="+name);
     xmlhttp.send();    
     }
</script>

The error is Uncaught ReferenceError: $ is not defined  .Kindly Kindly help me...

Hi Ive been getting undefined error and I dont know how to fix it.

Here's my code:

function returnBlurayDisc(member_id){ var xmlhttp; if (window.XMLHttpRequest){ xmlhttp=new XMLHttpRequest(); }else{ xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function(){ if (xmlhttp.readyState==4 && xmlhttp.status==200){document.getElementById("popup_container").innerHTML=xmlhttp.responseText; $("#GrayBackground").css({'height':'1900px','display':'inline'}); } } xmlhttp.open("GET","ajax/returnAjax.php?member_id="+member_id+"&name="+name); xmlhttp.send(); }

The error is Uncaught ReferenceError: $ is not defined  .Kindly help me...

I've been getting undefined error and I dont know how to fix it.

Here's my code:

<script type="text/javascript">
    function returnBlurayDisc(member_id){
         var xmlhttp;

         if (window.XMLHttpRequest){
              xmlhttp=new XMLHttpRequest();
     }else{
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
     }

     xmlhttp.onreadystatechange=function(){
          if (xmlhttp.readyState==4 && xmlhttp.status==200){
         document.getElementById("popup_container").innerHTML=xmlhttp.responseText;
         $("#GrayBackground").css({'height':'1900px','display':'inline'});
                        
           }
     }

     xmlhttp.open("GET","ajax/returnAjax.php?member_id="+member_id+"&name="+name);
     xmlhttp.send();    
     }
</script>

The error is Uncaught ReferenceError: $ is not defined. Kindly help me.

edited tags
Link
bogatyrjov
  • 5.4k
  • 9
  • 39
  • 61
deleted 109 characters in body
Source Link
user1670671
  • 49
  • 1
  • 1
  • 5
Loading
deleted 4 characters in body
Source Link
Starx
  • 79.3k
  • 50
  • 187
  • 266
Loading
improved formatting
Source Link
Ayman Safadi
  • 11.6k
  • 1
  • 30
  • 42
Loading
added 90 characters in body
Source Link
Ben Zotto
  • 71.2k
  • 23
  • 145
  • 207
Loading
Source Link
user1670671
  • 49
  • 1
  • 1
  • 5
Loading