On Thursday, April 7, 2011 8:55:17 AM UTC+2, Sekhar Ravinutala wrote:
>
> Not sure what you mean. Say you have a file foo.html referencing bar1.jpg 
> and bar2.jpg all in the same directory. If you just use <img src="bar1.jpg> 
> foo.html will load with RequestBuilder, but the image won't. Doesn't that 
> suck? My current workaround is to use full paths for the images - that 
> works, but it hard-codes the path.
>
> My question is: is it possible to continue to use relative paths and still 
> load the HTML with RequestBuilder?
>

As long as the paths are relative to where you load the HTML snippet from 
(your GWT app), rather than where it lives, yes.

Or you could try to rewrite all paths yourself (using a regexp to extract 
every href and src attribute values and rewrite them by prepending the path 
to the HTML snippet).

(note that it has little to do with RequestBuilder or GWT actually, it's an 
"AJAX" issue).

-- 
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