1
voddie
Using javascript
  • 2007/2/19 14:46

  • voddie

  • Just popping in

  • Posts: 71

  • Since: 2003/10/20


Hi

Is it possible to use javascript within a block?

I have been trying to incorporate a javascript cascading menu into a block. The menu would auto open and close on links.

I have managed successfully to incorporate an horizontal js menu into the header part of my template.

Does js not work in a block?

Thanks in advance

Voddie
To ask the hard question is simple

2
zyspec
Re: Using javascript
  • 2007/2/19 16:53

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I'm using javascript in a block in XOOPS 2.0.x series without problems. Make sure you set the block content type to html. I also start the block with
<script language="JavaScript1.2">
and of course end it with the end script tag.

Don't forget to clear your templates_c directory when you make changes so you can see the changes take effect.

Login

Who's Online

190 user(s) are online (124 user(s) are browsing Support Forums)


Members: 0


Guests: 190


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