ID:151011
 
I'm working on a really basic tutorial about dithered transparencies. I whipped up a little HTML page to display the concepts that I couldn't put to words. The trouble is, when I use browse('dither.html'), it displays only the opening text and none of my tables or graphics. Is there a way to make it display my html page as regular browser would?
On 6/5/01 4:33 pm Shadowdarke wrote:
I'm working on a really basic tutorial about dithered transparencies. I whipped up a little HTML page to display the concepts that I couldn't put to words. The trouble is, when I use browse('dither.html'), it displays only the opening text and none of my tables or graphics. Is there a way to make it display my html page as regular browser would?

You'll have to upload the graphics to the user with browse_rsc (yes, I want to change the name .. blame Dan). Hopefully we will be able to automate this functionality in the future. Example:

browse_rsc('dither_example.jpg')
browse('dither.html')

I don't know why the tables aren't working, though. I'll probably need more information.
In response to Tom
On 6/5/01 4:42 pm Tom wrote:

I don't know why the tables aren't working, though. I'll probably need more information.

*Embarassed grin* Well, it helps if I save the current version of the page in the directory I'm working in. This one was all my fault.
In response to Tom
On 6/5/01 4:42 pm Tom wrote:

You'll have to upload the graphics to the user with browse_rsc (yes, I want to change the name .. blame Dan). Hopefully we will be able to automate this functionality in the future. Example:

browse_rsc('dither_example.jpg')
browse('dither.html')

It works great if I upload 1 pic with browse_rsc(), but I have 5 separate gifs I want to embed. If I use more than 1 browse_rsc(), the browser never opens when it gets to the browse() proc.

Here is my code:
client
New()
. = ..()
src << browse_rsc('mouse.gif')
src << browse_rsc('25.gif')
src << browse_rsc('50.gif')
src << browse_rsc('75.gif')
src << browse_rsc('50stripe.gif')
src << browse('dither.html')
In response to Shadowdarke
On 6/5/01 8:48 pm Shadowdarke wrote:

It works great if I upload 1 pic with browse_rsc(), but I have 5 separate gifs I want to embed. If I use more than 1 browse_rsc(), the browser never opens when it gets to the browse() proc.

You are right. There seems to be a problem with the browse() function once resources are cached. Working on it...