From: Ed M. <Ed...@to...> - 2000-11-14 15:22:17
|
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 |
From: Brandon M. <tr...@us...> - 2000-11-14 16:13:01
|
With the URL below, I haven't been able to re-create the probelm you describe. I navigated about 20-30 times. No problems. I used IE5 w/ Windows 2k Pro. ----- Original Message ----- From: "Ed McNierney" <Ed...@to...> To: <dyn...@li...> Sent: Tuesday, November 14, 2000 10:22 AM 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 > |
From: Richard :o\) <ma...@ri...> - 2000-11-14 17:24:07
|
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.... > > |