Raised This Month: $12 Target: $400
 3% 

MOTD and Javascript


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mati_
Member
Join Date: Sep 2010
Old 04-30-2012 , 11:38   MOTD and Javascript
Reply With Quote #1

Hello,
I have a HTML page with javascript, which works properly at every browser (even IE), but not via MOTD for some reason.... is there any reason to make it work via MOTD as well?

http://cs3.neondragon.net/public/games.php

Thanks
Mati_ is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 04-30-2012 , 12:47   Re: MOTD and Javascript
Reply With Quote #2

motd doesn't support javascript. it only reads plain html.
hyphen is offline
Mati_
Member
Join Date: Sep 2010
Old 04-30-2012 , 12:49   Re: MOTD and Javascript
Reply With Quote #3

Meh, any alternatives?
Mati_ is offline
8088
Veteran Member
Join Date: Jan 2008
Old 04-30-2012 , 12:59   Re: MOTD and Javascript
Reply With Quote #4

A table of contents with anchored structure below? Or just create multiple pages.
__________________
steamID converter with OpenSearch browser plugin

Last edited by 8088; 04-30-2012 at 12:59.
8088 is offline
Mati_
Member
Join Date: Sep 2010
Old 04-30-2012 , 14:41   Re: MOTD and Javascript
Reply With Quote #5

Yeah, made it now with an "opened spoilers" string, appended via a GET parameter. Maybe a bit weird, but works. See link to the updated document at my OP.

Last edited by Mati_; 04-30-2012 at 14:43.
Mati_ is offline
8088
Veteran Member
Join Date: Jan 2008
Old 04-30-2012 , 14:56   Re: MOTD and Javascript
Reply With Quote #6

Not weird at all. In fact much better! Rather than requiring visitors to have JavaScript enabled, it's good practise to apply progressive enhancement. That way your content will always be accessible by anyone. Still, it would be nice if you'd close/hide non-active blocks.

By the way, there's something wrong with your (lack of) content encoding.
__________________
steamID converter with OpenSearch browser plugin

Last edited by 8088; 04-30-2012 at 14:58.
8088 is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 04-30-2012 , 15:19   Re: MOTD and Javascript
Reply With Quote #7

Quote:
Originally Posted by hyphen View Post
motd doesn't support javascript. it only reads plain html.
Incorrect.
The motd (at least TF2's) supports javascript.
__________________
DarthNinja is offline
8088
Veteran Member
Join Date: Jan 2008
Old 04-30-2012 , 15:27   Re: MOTD and Javascript
Reply With Quote #8

That's true, but since this is posted in the HL1 Servers (HLDS) section I think we can safely assume we're talking about the crappy, IE6 based motd of HL1 that doesn't support JavaScript.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
DarthNinja
SourceMod Plugin Approver
Join Date: Mar 2009
Location: PreThinkHook()
Old 04-30-2012 , 15:53   Re: MOTD and Javascript
Reply With Quote #9

Quote:
Originally Posted by 8088 View Post
That's true, but since this is posted in the HL1 Servers (HLDS) section I think we can safely assume we're talking about the crappy, IE6 based motd of HL1 that doesn't support JavaScript.
Ah, true. I didn't notice that.
Gross.
__________________
DarthNinja is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode