1
Donovan
Issue with JAVASCRIPT
  • 2010/11/16 18:21

  • Donovan

  • Just popping in

  • Posts: 8

  • Since: 2010/5/14


Hello everybody!
I'm trying to include some tabs in my news with AMS, but I can't, the problem is that somehow xoops kills the javascript that run the tabs.

How can I include scripts in my articles?

Note: I work on xoops 2.4.4, AMS 3.0 module. I'm trying to include some tabs like this: http://flowplayer.org/tools/demos/tabs/index.htm

Thankyou very much!

2
Tarik
Re: Issue with JAVASCRIPT
  • 2010/11/16 19:37

  • Tarik

  • Not too shy to talk

  • Posts: 170

  • Since: 2010/2/3 1


the tab script need JQuery
did you make sure the JQuery library isn't included twice by another module or in the theme
Some people like what you do,
-- some people hate what you do,
---- but most people simply don’t give a damn.

3
Donovan
Re: Issue with JAVASCRIPT
  • 2010/11/16 20:17

  • Donovan

  • Just popping in

  • Posts: 8

  • Since: 2010/5/14


Hi, Tarik, thanks for your reply.
You were right, I had jQuery included three times! But I've solved that problem, and still nothing.
You can see the web page here:
http://174.132.27.94/~alfredo/modules/AMS/article.php?storyid=17#

The tabs are there, but the divs with the content aren't...

Any other idea?

4
Donovan
Re: Issue with JAVASCRIPT
  • 2010/11/16 20:51

  • Donovan

  • Just popping in

  • Posts: 8

  • Since: 2010/5/14


ok, I have the solution!

I've changed mi code:
<script// perform JavaScript after the document is scriptable. $(function() { // setup ul.tabs to work as tabs for each div directly under div.panes $("ul.tabs").tabs("div.panes > div"); }); 


by this one:
<script// perform JavaScript after the document is scriptable. jQuery(function() { // setup ul.tabs to work as tabs for each div directly under div.panes jQuery("ul.tabs").tabs("div.panes > div"); }); 


and now the tabs work fine.

Login

Who's Online

262 user(s) are online (179 user(s) are browsing Support Forums)


Members: 0


Guests: 262


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