From: Robert R. <rra...@ya...> - 2000-11-14 21:36:40
|
Try setting the img src to 'javascript:null' in IE 5. \\Robert -- rra...@ya... > Please suspend the hunt <g>! The Netscape problem I saw turned out to be a > red herring, and the problem I'm seeing in IE looks exactly like a known IE > bug :http://support.microsoft.com/support/kb/articles/Q269/8/02.ASP (BUG: > Internet Explorer Stops Responding When You Download Images) in which IE has > trouble when IMG tags are added to a page dynamically after it loads. I'll > pursue the remedies suggested for that problem - in the meantime, I'm going > to assume that that's the trouble. > > Thanks for all the help I got - it's great to know it's out there when it's > needed! > > - Ed > > Ed McNierney > Executive Vice President and Chief Mapmaker > TopoZone.com / Maps a la carte, Inc. > 73 Princeton Street, Suite 305 > North Chelmsford, MA 01863 > (978) 251-4242 > ed...@to... > www.topozone.com > > > -----Original Message----- > From: Richard :o) [mailto:ma...@ri...] > Sent: Monday, November 13, 2000 12:25 PM > To: dyn...@li... > Subject: Re: [Dynapi-Help] Newbie help with broken IMGs > > > hi, > It seems to be working ok, I would recommend pre-loading the images from the > main square before showing it, > and preload the images for east/west etc before showing them, so people > don't see the pictures loading, > and if you use different variable names for all the images, it will be much > faster if you go back to a map you > have seen before. > There is a pre-load object in DynAPI afaik, but I have not used it yet, I do > something like this: > > var mycount=0; > DynAPI.onLoad=function() {preLoad()} > > function preLoad() { > Load=new DynLayer(null,100,100,200,200) > DynAPI.document.addChild(Load) //this is used to write > "please wait" message > > pic1 = new Image(); > pic1.onload = (is.ns4b) ? loadCheck() : loadCheck; > pic1.src = "images/pic1.gif"; > pic2 = new Image(); > pic2.onload = (is.ns4b) ? loadCheck() : loadCheck; > pic2.src = "images/pic2.gif"; > //add first 9 images or so. > } > function loadCheck() { > mycount++; > if(mycount == 2) { > DynAPI.document.deleteChild(Load) > showPage() > } else { > if(mycount < 2) { > Load.setHTML('<h4>Loading the Image '+(mycount)+' of 2 > images...</h4>') > } > } > } > reference the images like this: > picOne.setHTML('<img src="'+pic1.src+'" >') > cheers, > Richard:o) > > > ----- Original Message ----- > From: "Ed McNierney" <Ed...@to...> > To: <dyn...@li...> > Sent: Tuesday, November 14, 2000 4:22 PM > Subject: [Dynapi-Help] Newbie help with broken IMGs > > >> Hi! I'm building an update to my site with DynAPI and it's working very >> nicely to start - nice job! I'm running into a weird behavior with IMG > tags >> in my DynLayers. >> >> I'm doing something very simple. I'm creating a set of DynLayers, and one >> of them is a mosaic of IMG tiles. In the simplest case, it's just a 3x3 >> grid with 9 IMG tags in it, broken into lines with <BR> tags. I'm > creating >> the layer, then using .setHTML once to set the HTML in that layer to a >> string of "<IMG><IMG><IMG><BR><IMG><IMG><IMG><BR><IMG><IMG><IMG>". >> >> In IE 5.0, I frequently get "broken image" symbols showing up instead of > the >> images. I've seen this behavior in NS 4.7, too, but it seems much less >> frequent (but still a serious problem). This behavior is erratic; >> refreshing the page will either fix the problem OR cause different images > to >> be broken. >> >> You can see a sample page at >> > http://140.239.165.86/maptools/dynamap.asp?lat=43.443&lon=-72.3796&s=50&size >> =s - please let me know if you have any trouble with it. >> >> Help is very much appreciated, as I'm about to go deeply down the DynAPI >> path but I need to know if I'm running into a fatal obstacle first - > thanks! >> >> - Ed >> >> Ed McNierney >> Executive Vice President and Chief Mapmaker >> TopoZone.com / Maps a la carte, Inc. >> 73 Princeton Street, Suite 305 >> North Chelmsford, MA 01863 >> (978) 251-4242 >> ed...@to... >> www.topozone.com >> >> _______________________________________________ >> Dynapi-Help mailing list >> Dyn...@li... >> http://lists.sourceforge.net/mailman/listinfo/dynapi-help >> ____________________________________________________________ >> Get your FREE personal .com domain name and >> NAMEzero Personal Portal at: http://www.namezero.com. >> For customer service, mailto:cus...@na.... >> >> > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help |