1
clownxx
XOOPS without Javascript?
  • 2006/10/29 17:35

  • clownxx

  • Just popping in

  • Posts: 43

  • Since: 2006/9/20


Hi, what happens if a user of my community doesn't have Java Script activated....is it possible to use XOOPS with that configuration?? Or us XOOPS "useless" without JS?

2
m0nty
Re: XOOPS without Javascript?
  • 2006/10/29 19:04

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


would have thought the answer was obvious..

but no, XOOPS will not function with Javascript disabled.

3
clownxx
Re: XOOPS without Javascript?
  • 2006/11/1 6:50

  • clownxx

  • Just popping in

  • Posts: 43

  • Since: 2006/9/20


ok thats what I thout to, but why doesnt the user get a Message like "sorry you have js deactivated, XOOPs wont work!"?
is this integrated in XOOPS or do i have to hack this in?

4
JCDunnart
Re: XOOPS without Javascript?
  • 2006/11/1 8:00

  • JCDunnart

  • Not too shy to talk

  • Posts: 114

  • Since: 2006/7/1 5


XOOPS works with javascript disabled, just disable it yourself in your browser to see...

Popups and adding tags through the editor won't work, but that's what the person wants if they have disabled javascript. Why state the obvious?

5
Peekay
Re: XOOPS without Javascript?
  • 2006/11/1 11:00

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


I guess you could display the status in a custom HTML block?
<script type="text/javascript">
document.write ("JavaScript is on");
</
script>
<
noscript>JavaScript is off</noscript>
A thread is for life. Not just for Christmas.

6
m0nty
Re: XOOPS without Javascript?
  • 2006/11/1 11:23

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


well as jcdunnard says.. it will work, but they may have problems as mentioned..

there's lots of modules that use javascript.

in fact xoops.js will not function..

calendar will not function, some menu items may not function.. and there's probably more things that will not function either.

so what i should have said was Yes XOOPS will work, but as a lot of things require the use of javascript, but it won't work properly if javascript is disabled.

7
sato-san
Re: XOOPS without Javascript?
  • 2006/11/1 17:12

  • sato-san

  • Quite a regular

  • Posts: 224

  • Since: 2005/7/1 1


But you can add your JS in your Theme

8
Dave_L
Re: XOOPS without Javascript?
  • 2006/11/3 10:07

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I added this to my theme to display a warning message if the user's browser has Javascript disabled:

<{* Display warning message if Javascript is not suppported by client. *}>
<
tr>
   <
td colspan='2'>
      <
script type='text/javascript'>
         
document.write("<div style='display:none'>");
      </
script>

      <
div class='errorMsg'>
         
WarningYour browser does not support Javascript.  Some features of this site will not operate correctly.
      </
div>

      <
script type='text/javascript'>
         
document.write('</div>');
      </
script>
   </
td>
</
tr>


The 'display:none' style hides the message if Javascript is enabled. Otherwise the message will appear.

The table tags (tr, td) may need tweaking, depending on the theme this is placed in.

Login

Who's Online

233 user(s) are online (137 user(s) are browsing Support Forums)


Members: 0


Guests: 233


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits