Hi there,
Though the <span> trick managed to solve some of the problems,
it didn't work in all. In the end, I found that if I preload
the images prior to load the content into the layer, all the
images appear correctly (Richard: just like you told me to do
with the loadpanel, because of that IE bug!).
I'm trying to code a loader now, so that I call a function and
it preloads the images for that content, and then (and only then)
after all are completely loaded, it loads up the new content
into the layer.
Thanks for the help, I'll let you know when I put this Netscape
"aware" version online.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
Bennett
Sent: segunda-feira, 21 de Maio de 2001 15:54
To: [EMAIL PROTECTED]
Subject: Re: [Dynapi-Help] Problems with Netscape and setHTML
If you extract just that part out of the code , does this still happen?
Like this it's pretty hard to see what's going on.
Always worth a try in NS4, is using a setTimeout, to delay the setHTML, or
the animation a little.
Often to much happening at the same time causes problems in NS4.
Otherwise you could try using <span></span> with the background image set
instead of <img>
Or <div> with absolute positioning.
Or separate child DynLayers, with setBgImage(), or setHTML(<img>)
..
Richard.
----- Original Message -----
From: "Nuno Ferreira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 21 May, 2001 15:18
Subject: [Dynapi-Help] Problems with Netscape and setHTML
>
> Hi people,
>
> I'm trying to clean up the site of my company (the one you guys
> generously praised!) so it works on Netscape 4+.
>
> I cleaned the obvious bugs but now I have a problem that I don't
> know why it happens, and I can't seem to be able to solve it.
>
> go to: http://www.wiz.pt/users/nf/wiztest/index.html
>
> If you click on any option of the sub-menu (ex: Interactive Design)
> sometimes, some of the images load ok, sometimes it just shows the
> broken image link). It's random, as long as I can tell, which is
> driving me nuts!!
>
> I've tried preloading the images, but to no avail, I've even tried
> to put the images as <IMG> tags inside the body, with 1x1 size, so
> they load before the DynAPI.onLoad fires up, but the problem remains.
>
> When you do a reload, or close and open the same menu the images load
> correctly or at least some of them.
>
> I'm using the setHTML method to change the content of a layer, and I'm
> using an array to store the content for each menu.
>
> detailText.setHTML(subnavcode["interactive"]);
>
> Is there any thing I'm doing wrong??
> Is this a Netscape bug?(IE seems happy with it)
> Is this a DynAPI thing?
>
> I really really need some help on this!
>
> best,
>
> NunoF
>
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help