I use PHP+GWT all the time, it works great together.
The two important things I found I needed to know where
a) Communicating to/from php silently while the app is running. As Ian
says, this is done with RequestBuilder..
b) Passing variables to the gwt app before its run. (ie, its start-up
variables, or those specific to the page).
This can be done by using variables in javascript.
eg;
In the HTML before the GWT stuff:
<script type="text/javascript">
var Data = {
Username: "Anonymous",
FieldA: "data one",
FieldB: "data two"
};
</script>
Then you can access that with just;
static Dictionary theme = Dictionary.getDictionary("Data");
Then theme.get() to retrieve each field.
Thus you can use php to echo data you want into the html in the form
of javascript variables, and gwt can read it in as a dictionary
object.
On Jun 1, 8:26 am, Peter <[email protected]> wrote:
> Hello, I searched through most of the threads that have anything to do
> with PHP and GWT but I haven't really come across any good information
> about the two. I wanted to create a AJAX / interactive front end but
> at the same time I want to run PHP in the back end on the server. Does
> anyone know of any good documentation on this or example code of this?
>
> Thanks for your time!
>
> Peter
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---