04-15-2009 01:26 PM
04-15-2009 05:12 PM
BBDeveloper, I've been trying to do the same thing and your sample code works great. Thanks.
Is it possible to link from one local HTML file to another? If in foo.html I have a link like <a href="bar.html">bar</a>, the browser interprets that as "data://text/bar.html" and gives this error when you click on it: "A problem occurred while trying to render the page."
Any thoughts?
04-16-2009 06:10 AM
I tried, providing the Absolute path of other local html file from first local html file and it worked.
Example:
<a href="cod:///[Module Name]/BBDeveloper.html">Next page To COD</a>
<a href="file:///store/home/user/BBDeveloper.html">Ne
PS: Tried using JDE 4.6on 9000 Simulator.
04-16-2009 10:12 AM - edited 04-16-2009 10:13 AM
The cod://... link works perfectly. Also, it eliminates the need to deal with InputStreams, DataBuffers, byte arrays, etc. I can now just load a local page directly in a BrowserSession:
Browser.getDefaultSession().displayPage("cod://<mo
dule>/<file>");
Thank you very much, BBDeveloper. This was a huge help.
06-17-2010 08:49 AM
Absolutely works fine !
I had a problem with OS 5.0 with previous code was giving out of memory error
This single line has solved the problem