From: Michael P. <mp...@ph...> - 2001-01-18 05:33:12
|
<!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> I've found a way of getting NS and IE to capture errors and allow me to display them in a more meaningful fashion. <p>I've added the following method to my dynapi.js: <p><tt> errors : [],</tt> <br><tt> displayerrors : true,</tt> <p><tt> errorHandler : function (msg, url, lno) {</tt> <br><tt> DynAPI.errors[DynAPI.errors.length] = [url,lno,msg];</tt> <br><tt> if (DynAPI.loaded&&DynAPI.displayerrors) alert("Error in '"+url+"'.\nLine number: "+lno+".\nMessage: "+msg);</tt> <br><tt> return true;</tt> <br><tt> },</tt> <br><tt> errorOutput : function () {</tt> <br><tt> errWindow=window.open('','','left=50,top=50,width=560,height=430');</tt> <br><tt> errWindow.document.writeln('<html><title>Have made an error!!!</title><B>Error Report</B><P>');</tt> <br><tt> errWindow.document.writeln('<table width=95%>');</tt> <br><tt> for (var i=0; i < DynAPI.errors.length; i++) {</tt> <br><tt> errWindow.document.write('<tr><td>');</tt> <br><tt> if (DynAPI.errors[i][0]) errWindow.document.write("<B>Error in file:</B> <a href='"+DynAPI.errors[i][0]+ "'>" DynAPI.errors[i][0] + "</a><br>");</tt> <br><tt> if (DynAPI.errors[i][1]) errWindow.document.write("<B>Line number:</B> " + DynAPI.errors[i][1] + "<br>");</tt> <br><tt> if (DynAPI.errors[i][2]) errWindow.document.write("<B>Message:</B> <pre>" + DynAPI.errors[i][2] + "</pre>");</tt> <br><tt> errWindow.document.writeln('</td></tr>');</tt> <br><tt> };</tt> <br><tt> errWindow.document.writeln('</table>');</tt> <br><tt> errWindow.document.close();</tt> <br><tt> },</tt> <p>the following line has been added to the end of the loadhandler: <p><tt> if (DynAPI.errors.length&&DynAPI.displayerrors) DynAPI.errorOutput();</tt> <p>the following line has been added to the end of dynapi.js: <p>onerror = DynAPI.errorHandler; <p>this means that all the lines in the API that previosly used alerts to display errors can now use: <br><tt> DynAPI.errorHandler(null,null,"The following package could not be loaded: <b>"+src+"</b> \nMake sure you specified the correct path.");</tt> <p>-- <br>Michael Pemberton <br>mp...@ph... <br>ICQ: 12107010 <br> </html> |
From: Morten S. <ms...@in...> - 2001-01-18 09:32:51
|
Hello I have to get Dynapi2 running on macIE AND macNS. I tried the new Dynwindow.html and the result was desapointing. I have used Dynapi1 for a while now and I dont have the same problems with mac. Is there allready a solution for my problem? If not I will try to find a solution and post it as soon as possible. Sorry if Im repeating an old question (and for my spelling). - ------------------------------------------ vh. Morten Sabro InCorp A/S Middelfartvej 9-11 5000 Odense C ------------------------------------------ |
From: Raymond S. <dst...@or...> - 2001-01-18 09:48:24
|
I've had good luck with NS4+ Mac. Anything "really" dynamic is gonna be a problem in IE5 Mac do to getHeight, getWidth bug. I've been telling clints that support for IE5 on Mac means significant reduction in dynamic functionality. Unless somebody has solved for this. IE4 Mac, is a 'buggermuck' don't even waste braincalories on that one. Later ----- Original Message ----- From: "Morten Sabro" <ms...@in...> To: <dyn...@li...> Sent: Thursday, January 18, 2001 1:22 AM Subject: [Dynapi-Dev] [Dynapi2] Mac probs > Hello > I have to get Dynapi2 running on macIE AND macNS. I tried the new > Dynwindow.html and the result was desapointing. I have used Dynapi1 for a > while now and I dont have the same problems with mac. Is there allready a > solution for my problem? If not I will try to find a solution and post it > as soon as possible. > > > Sorry if Im repeating an old question (and for my spelling). > > - > ------------------------------------------ > vh. > Morten Sabro > InCorp A/S > Middelfartvej 9-11 > 5000 Odense C > ------------------------------------------ > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/lists/listinfo/dynapi-dev > |