1
WarDick
Java Script
  • 2005/8/15 6:45

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


How do you run a java script in a block?
Urging XOOPS to be the Best It Can Be.
Richard......

2
hyperpod
Re: Java Script
  • 2005/8/15 6:54

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


When creating a custom block, simply put in the

and set the block for html...

It is trickier however with XHTML, because you have to escape the single quotes i think or reference a file with the .js code in it.

Best Regards,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support > My Wish List

3
WarDick
Re: Java Script
  • 2005/8/15 6:59

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Thanks for the reply.

I have already tried that with no joy. I am trying to implement that in version 2.2.1. Does that make any difference?
Urging XOOPS to be the Best It Can Be.
Richard......

4
hyperpod
Re: Java Script
  • 2005/8/15 7:03

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


well, is your template HTML4 or XHTML based?

I havent used 2.2 yet with Javascript in a block, so i cannot say much about that.


Also, what is the javascript code? is it something you can show a sample of?

For example, I could try to get it to work on a 2.2.1 site if I saw it.

Cheers,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support > My Wish List

5
WarDick
Re: Java Script
  • 2005/8/15 7:14

  • WarDick

  • Just can't stay away

  • Posts: 890

  • Since: 2003/9/13


Thank you for you help. I am using xhtml and it works fine a closer look showed a type thanks.
Urging XOOPS to be the Best It Can Be.
Richard......

6
hyperpod
Re: Java Script
  • 2005/8/15 7:15

  • hyperpod

  • Quite a regular

  • Posts: 359

  • Since: 2004/10/4


great!

Cheers,
Daniel Hall / XOOPS Module Development & Theme Design
Free XOOPS Support > My Wish List

Login

Who's Online

280 user(s) are online (200 user(s) are browsing Support Forums)


Members: 0


Guests: 280


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