Forum Moderators: open

Message Too Old, No Replies

Javascript Project I'm having problems with.

Porting to FireFox etc.

         

kevpatts

8:23 am on Oct 19, 2004 (gmt 0)

10+ Year Member



Hey, I ahve a problem with a script I've ported to FireFox. The porting worked fine but not I have a mysterious syntax error in IE. I get a syntax error on the
</script>
line. It works perfectly in Firefox. Anyone familiar with this?

I don't know if I should post the code cause it's 1660 lines long and don't think it'd fit in this little box. please advise me if it will. There are some other small problems in it too, mostly FireFox(/Netscape) issues.

Cheers,
Kev

kevpatts

9:12 am on Oct 19, 2004 (gmt 0)

10+ Year Member



nah, tried to post it but it's too big. I'l post the last few lines:


' <font face="Verdana, Arial, Helvetica, sans-serif" style="font-size: 10px"><a name=O2Text id=O2Text onMouseOver="showAHand(this)" onclick="ShowO2()" onMouseOver="if (!focused) { tempstring=document.getElementById(\'Text\').value;document.getElementById(\'Text\').value=\'Toggle O2 SMS\'; }" onMouseOut="if (!focused) document.getElementById(\'Text\').value=tempstring"></a></font></font> '+
' <br><table border="0" id=O2 align="CENTER" style="display: none">'+
' <tr>'+
' <td>'+
' <form name="o2form" target=_main onSubmit="O2SaveInfo();window.open(\''+window.location+'\',\'_search\');" action=https://secure.o2.ie/NASApp/o2/Login method=post autocomplete="off">'+
' <table border="1" cellpadding="0" cellspacing="1">'+
' <tr> '+
' <td><font style="font-size: 11px">name:</font></td>'+
' <td> '+
' <input style="font-size:10px" size=8 name=username>'+
' </td>'+
' </tr>'+
' <tr>'+
' <td><font style="font-size: 11px">password:</font></td>'+
' <td>'+
' <input style="font-size:10px" type=password size=8 name=password>'+
' </td>'+
' </tr>'+
' <tr>'+
' <td></td>'+
' <td>'+
' <input type=submit value="check" name=submit>'+
' <input type="hidden" name="referrer" value="http://www1.o2.ie/master?content=http://www1.o2.ie/">'+
' </td>'+
' </tr>'+
' </table>'+
' </form>'+
' </td>'+
' </tr>'+
' </table>');
document.write(' <div id=Warning style="display: none"><center><font face="Arial,Helvetica" style="font-size: 11px">Click Search to search<br>for last request...<br><br>Type an URL and press return to go there.</font></center></div>'+
' </center>'+
'</div>'+
'</body>');
setTimeout("RefreshDHTMLSearch()",1);
</script>
</html>

All the HTML is inside document.write()'s cause I used to encode it. I came to my senses.

kevpatts

11:18 am on Oct 20, 2004 (gmt 0)

10+ Year Member



okay, the full page is now up at [iol.ie...]

have a good root. I think there is some useful stuff in there.

jalarie

4:33 pm on Oct 21, 2004 (gmt 0)

10+ Year Member



JavaScript Error: [iol.ie...] line
44:

backcolour is not defined.

kevpatts

10:02 am on Oct 22, 2004 (gmt 0)

10+ Year Member



thanks but I resloved the error. It was caused by using " instead of \' earlier in the code.