could it be a "same origin policy" issue? It used to be the case that hosted mode was more relaxed on this restriction and this could catch you out when you moved to web mode where browsers strictly enforce the same origin policy.
Simply put, the call to your PHP file must go to the same origin that the application has been served from - even the port numbers must be the same too, so "localhost" and "localhost:8080" are different in the eyes of singe origin policy. If you're 100% sure that the application is being served from "localhost" and your PHP call is only being made to "localhost" then maybe you could add some more logging code to your catch statement of the try/catch block surrounding the request builder to see what is happening. //Adam On 10 Apr, 18:43, "scottland.yo...@googlemail.com" <scottland.yo...@googlemail.com> wrote: > Hi, my applciation works fine in hosted mode, but not in web mode. It > compiles with no errors. > > When I click a label in my app, it does this requestbuilder call to a > php file on a wamp distro at //localhost/: > > public void onClick(Widget sender) { > urlString = ((Element)descripNode).getAttribute("href"); > descripString = > ((Element)descripNode).getAttribute("description"); > CALL TO METHOD--->phpRequest(urlString); > } > public void phpRequest(String myurlString){ > > String url = "http://localhost/term_php_extraction.php?url=" + > myurlString; > RequestBuilder builder = new RequestBuilder(RequestBuilder.POST, > URL.encode(url)); > // etc etc etc.......... > > This works in hosted mode, but in web mode, it does nothing, > > Can anyone please help? > > Thanks, > > Scott. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to Google-Web-Toolkit@googlegroups.com To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---