Javascript with XML Content

Ancal - March 17, 2009 - 09:59
Project:XML Content
Version:6.x-1.x-dev
Component:Miscellaneous
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Hi,

I'm very happy to have found this drupal module wich will be very usefull for me.

I have a question. I want to integrate javascript functions in my generated page (for example, a simple function my_function{alert('Clicked');} who is called with a onClick(). Is it possible to do this ?

Thanks

(It's my first time using drupal; I've found the drupal_add_js function but with xml content, I don't see how to use it)

#1

Ancal - March 17, 2009 - 10:37
Status:active» closed

Ok, I've found a solution.

It's possible to select two or more filters in the configuration of the content format. I select "XML Content Filter" and "PHP Code filter" and it seems to work.

Thanks again for the module.

 
 

Drupal is a registered trademark of Dries Buytaert.