Hi to everyone...

I have a problem with javascripts in Drupal. Particularly, I 've made a form from which I insert data into my database. So, I thought to make a javascript which validates the inserted data. The problem is that this javascript doesn't work in drupal's editor, whereas it works in dreamweaver (there is no mistake in the code, that's why I mention dreamweaver as an example). I use the "full html" in the "input format".

Any idea?

Thanks!

Comments

nevets’s picture

It sounds like you are implanting a form in the body of a node.

I would suggest investigating the Content Construction Kit (CCK) and Webform modules

johnkary’s picture

I 've tried CCK but I am a bit confused...I have already made a lot of pages with javascripts, so is there any idea to make them functionable?

mcrickman’s picture

Enable the php code module then select input format as php code.

Charlie

WorldFallz’s picture

You may know this already-- but it bears repeating for anyone else that may stumble upon this thread. Heavy dependence on js like this is usually a bad idea-- anyone disable js at any time, usually with the click of a button. If your js doesn't degrade, your site will be left nonfunctional and your users most likely ticked off.