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

386 user(s) are online (241 user(s) are browsing Support Forums)


Members: 1


Guests: 385


DediRock,

more...

Donat-O-Meter

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

Latest GitHub Commits