Ok thanks dave, I'll give it a shot.

On Fri, Feb 20, 2009 at 10:49 PM, davidroe <roe.da...@gmail.com> wrote:

>
> it is a technique that Yahoo were one of the first to use and promote.
> essentially, the return value of the script is a function callback
> that wraps the data. as long as you have the function defined on your
> side, everything is straight forward.
>
> http://www.google.com/search?q=yahoo+dynamic+script+element
>
> /dave
>
> On Feb 20, 1:12 pm, "scottland.yo...@googlemail.com"
> <scottland.yo...@googlemail.com> wrote:
> > I'll have a search on how to do that, is it simple enough to do?  I
> > tried downgrading to 1.5.2 but it didn't change anything.
> >
> > On Feb 20, 9:08 pm, davidroe <roe.da...@gmail.com> wrote:
> >
> > > perform the request by dynamically adding a <script> tag?
> >
> > > On Feb 20, 12:36 pm, scott young <scottland.yo...@googlemail.com>
> > > wrote:
> >
> > > > OK thanks, I'll try both suggestions, if anyone else has any other
> ideas,
> > > > it'd be appreciated, thanks.
> >
> > > > On Fri, Feb 20, 2009 at 6:31 PM, Vish <visheshs...@gmail.com> wrote:
> >
> > > > > Try searching older posts for the problem with "Same-origin policy"
> > > > > You can either degrade to use version 1.5.2 or use a proxy server
> to
> > > > > forward your request to other domain. The call to the proxy server
> > > > > will be as a RPC.
> >
> > > > > On Feb 20, 12:09 pm, "scottland.yo...@googlemail.com"
> > > > > <scottland.yo...@googlemail.com> wrote:
> > > > > > Hi, I'm working on a project for univeristy which involves
> sending a
> > > > > > post request to the yahoo term extractor service to recieve an
> XML
> > > > > > file of terms.
> >
> > > > > > I'm using this code for the request as an example:
> >
> > > > > > RequestBuilder yahooRequest = new
> RequestBuilder(RequestBuilder.POST,
> > > > > > "
> http://api.search.yahoo.com/ContentAnalysisService/V1/termExtraction?
> > > > > >
> appid=YahooDemo&query=madonna&context=Italian+sculptors+and+painters+of
> > > > > > +the+renaissance+favored+the+Virgin+Mary+for+inspiration");
> >
> > > > > >             try {
> > > > > >                 yahooRequest.sendRequest(null, new
> RequestCallback() {
> > > > > >                         public void onError(Request request,
> Throwable
> > > > > exception1) {
> > > > > >                           requestFailed(exception1);
> > > > > >                         }
> >
> > > > > >                         public void onResponseReceived(Request
> request1,
> > > > > Response
> > > > > > response1) {
> > > > > >                           renderXML(response1.getText());
> > > > > >                         }
> > > > > >                       });
> > > > > >                     } catch (RequestException ex1) {
> > > > > >                       requestFailed(ex1);
> > > > > >                     }
> > > > > >           }
> >
> > > > > > However I am recieving and error message stating: "http://
> > > > > > api.search.yahoo.com/ContentAnalysisService/V1/termExtraction?
> > > > > >
> appid=YahooDemo&query=madonna&context=Italian+sculptors+and+painters+of
> > > > > > +the+renaissance+favored+the+Virgin+Mary+for+inspiration" is
> invalid
> > > > > > or violates the same origin policy.
> >
> > > > > > How can I request this URL using google web toolkit, it's
> important I
> > > > > > intergrate it into my toolkti program, rather than use pHp or
> HTML to
> > > > > > do the same thing.
> >
> > > > > > Any help would me much appreciated guys!
> >
> > > > > > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to