Bonjour,
I had my first tutorial/tests on Google All Engine, successfully
OK :=)
Now, my first concern is to check that I can upload html / xhtml pages
with light Ajax invocation. My first test, o my local Google app
server was negative. Then I remebered I read somewhere that Google
Engine couldn't serve Ajax. But today googling on the Web seems to
lead to examples of Ajax Working.
Is there some doc on the limitations, if any?
Thanks on forward.
PY Delens
==============================
Please find below the code I mean to upload:
. Included_CUT.xhtml (a small table)
. index.html (the calling container) with
<body onload="loadXML()">
------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-
strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<table class="forTable">
<tr class="color_one">
<td align="left">Row One - Cell One</td>
<td align="left">Row One - Cell Two</td>
<td align="left">Row One - Cell Three</td>
<td align="left">Row One - Cell Four</td>
</tr>
<tr class="color_two">
<td align="left">Row Two - Cell One</td>
<td align="left">Row Two - Cell Two</td>
<td align="left">Row Two - Cell Three</td>
<td align="left">Row Two - Cell Four</td>
</tr>
<tr class="color_one">
<td align="left">Row Three - Cell One</td>
<td align="left">Row Three - Cell Two</td>
<td align="left">Row Three - Cell Three</td>
<td align="left">Row Three - Cell Four</td>
</tr>
<tr class="color_two">
<td align="left">Row Four - Cell One</td>
<td align="left">Row Four - Cell Two</td>
<td align="left">Row Four - Cell Three</td>
<td align="left">Row Four - Cell Four</td>
</tr>
</table>
</body>
</html>
------------------------------------------------------------
<html>
<head>
<link type="text/css" rel="stylesheet" href="/stylesheets/
main.css" />
<script type="text/javascript">
//<![CDATA[
// SCRIPT ICI
// Included_CUT.xhtml
var xmlDoc;
alert('start');
function loadXML() {
//load xml file
// code for IE
if (window.ActiveXObject) {
alert('Your browser IE');
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.load("Included_CUT.xhtml");
getmessage();
}
// code for Mozilla, Firefox, Opera, etc.
// if and document.implementation.createDocument
else if (document.implementation &&
document.implementation.createDocument ) {
alert('Your browser FsFX');
xmlDoc = document.implementation.createDocument
("", "", null);
xmlDoc.load("Included_CUT.xhtml");
xmlDoc.onload = getmessage;
}
else {
alert('Your browser cannot handle this script');
}
alert('getmessage');
}
/* */
function getmessage()
{
// see how for IE
document.getElementById
("message").innerHTML=xmlDoc.getElementsByTagName("body")
[0].innerHTML;
}
// ]]>
</script>
</head>
<body onload="loadXML()">
<b>greeting.author.nickname</b> wrote:
<br>
An anonymous person wrote:<br>
<blockquote>greeting.content|escape</blockquote>
<form action="/sign" method="post">
<div><textarea name="content" rows="3" cols="60">textarea
textarea textarea</textarea></div>
<div><input type="submit" value="Sign Guestbook"></div>
</form>
<a href="url">url_linktext</a>
<br>
<p>
<b>To:</b>
<div id="to">qsd</div>
<br/>
<b>From:</b>
<div id="from"/>
<br/>
<b>Message:</b>
<div id="message"/>
</p>
</body>
</html>
---------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---