Hi David- This is an interesting problem. I can see how browsers would have different policies about how they access files on the local filesystem. I would guess that what you're trying to do most browsers wouldn't allow and/or support.
I think you're going to need to rethink how your help documents are organized. I don't think you should rely on RequestBuilder to access a local filesystem (i.e., without a remote server). The RequestBuilder is to make a GET or POST request to a web server, not read a file from the filesystem. Do you really need your entire help system to use GWT? On Feb 8, 11:02 am, vanfleet <[email protected]> wrote: > Hi, I'm trying to use RequestBuilder to pull html files off my local > system and I'm getting the "...file.html is invalid or violates the > same-origin security restriction" error in IE 7, but in Firefox 3.5.7 > it works fine. When I setup the call I'm using: > > String url=GWT.getHostPageBaseURL() + "file.html"; > RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,url); > > Since I'm not working off a server the url looks something like: > > file:///D:/some/dir/MyGWTApp/file.html > > Since the file I'm trying to get is in the same space as the GWT > application I don't understand why it would be violating the same- > origin security restriction. I know that Ajax can do this, I've done > it before using Dojo. > > My problem here is that I have a requirement that documentation be > shipped to customers on a CD rather than being accessed on the web. > What can I do to fix this, any help would be greatly appreciated. > > Thanks, > David -- 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.
