<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I was looking at that page, but it isn't very clear to me how to use it
since I come from PHP not javascript.<br>
<br>
I suppose I'd include some jquery file in the page head and I saw the
example:<br>
<pre><code class="example">$.ajax({
type: "POST",
url: "some.php",
data: "name=John&location=Boston",
success: function(msg){
alert( "Data Saved: " + msg );
}
});</code><code class="example"></code></pre>
<code class="example"></code>I really don't know how to integrate that
in a game to send the score, name of the game, and the user's ID or
email address over. I suppose if that were PHP I'd understand, but it
isn't. :-) <br>
I'd like to have a simple form included for the student to add their id
and email and when they click a button it would send the info including
the score. Yes, I could do a normal HTML form and have it "post" to my
PHP page, but again I don't know how to get the score from javascript
to go with it so it doesn't really make a difference. Without having
the score, I could only report it as a completed activity.<br>
<br>
<br>
<code class="example"></code>
<blockquote
cite="mid:1271601332.2156.21.camel@rivalry.c7.campus.utcluj.ro"
type="cite">
<pre wrap="">
A bit offtopic maybe,
but I would suggest taking a look at jQuery and it's .ajax() method.
It's not that rocket science like it seems, and jQuery makes it even
easier to use.
api.jquery.com/jQuery.ajax/
</pre>
</blockquote>
<br>
</body>
</html>