For all my questions

C++, C#, Java, PHP, ect...
Post Reply
Mokey
Posts: 8
Joined: Wed May 06, 2015 9:37 pm

For all my questions

Post by Mokey »

So I am making this post for all of my questions that I will have so I don't have to make several different posts..

Anyways my first one is an error.

I get this error when I refresh my page http://oi60.tinypic.com/16ll17a.jpg I posted a link cause the image is a bit large.. Anways I'm not sure what to do about this.


Also I can't copy and paste the code that it is showing for some reason. I can only scroll and click ok.


Edit: Ok so I found the issue.

It had to do with:

Code: Select all

<script type="application/javascript">
$.ajax({
    
    url : 'scripts/php/TestCall.php',
    type : 'POST',
    data : {
    },
    datatype:'json',
    success : function(data) {
        alert('Data: '+data);
    }
});
    
</script>

I guess I have to make that it's own file?
User avatar
a_bertrand
Posts: 1537
Joined: Mon Feb 25, 2013 1:46 pm

Re: For all my questions

Post by a_bertrand »

Seems you get a full HTML page. I don't really see the error.
Creator of Dot World Maker
Mad programmer and annoying composer
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: For all my questions

Post by hallsofvallhalla »

Glad you found the answer. Please make separate posts. This way others who have the same issue can learn from it and get answers easily by searching title and not one long post.
Post Reply

Return to “Coding”