PDA

View Full Version : Javascript on Mac


MrPink
12-29-2002, 10:43 PM
Hi there,

Does anyone know why my iMac (G3 266Mhz OS8.6), with IE5.1 this part of my page:

<script language= "JavaScript">
<!--
function bestel()
{
top.menu.buyItem('Robert Littell - De Machtsfabriek - 9022986349','', '1');
}

function verlang()
{
top.menu.wishList('Robert Littell - De Machtsfabriek','', '');
}
//-></script>

makes a complete page not appear on the screen (while there is sourcecode!)? When I remove this piece of javascript the page does get displayed........

Any suggestions?

brothercake
12-29-2002, 11:48 PM
You haven't properly closed the comment. It should be

//-->

not

//->


A syntax-highlighting text editor is good for this kind of thing. TextPad (http://www.textpad.com) is my fave.

MrPink
12-29-2002, 11:55 PM
Wow..... thanks, my PC doesn't make a big deal of that, but a Mac does?

brothercake
12-30-2002, 12:19 AM
Mac IE5 is not like Win IE5 - it's very standards compliant. The "between the lines" of that is that it's picky as hell; good thing/bad thing - it depends on your perspective.

ps - i like your sig; that's good advice :)