Jump to content

[SOLVED] Switch


plutomed

Recommended Posts

I have a switch staement that has 16 cases and the default.

 

Insted of calling the 16th. It writes out the default. Why?

 

Just thinking about it, I don't know why I'm doing it with js, I could do it with php.

 

Aswell as that I get this error:

 

Webpage error details

 

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)

Timestamp: Mon, 6 Jul 2009 01:14:40 UTC

 

 

Message: Object required

Line: 10

Char: 2

Code: 0

URI: http://www.plutomedia.net/26.06.2009/scripts/scripts.js

 

The line its corrosponding to is the second line here:

 

var docget = document.getElementById('HintBar');

docget.style.display="block";

Link to comment
https://forums.phpfreaks.com/topic/164884-solved-switch/#findComment-869503
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.