Hi,

I'm trying to create a custom module that adds an AJAX widget to a node edit form. The widget should read the node edit form and post back findings. One of the things I was thinking I could use this for is to analyse a node before it gets saved and warn authors about words they shouldn't use or maybe words they should add to their text to make it all more search engine optimized. But that is just one of the possible functionalities.

Anyway, I was looking for the best way to send the whole form and/or contents (and thus updated wysiwig textareas) over to my custom module as a $node object through jQuery/AJAX. So basically;

- user clicks widget button
- jquery sends form/contents to my module
- my module has a complete $node object to work with

I would like to do this with as little dependencies as possible.

I have looked at node_form_submit_build_node(), but how do I get the form there thru jQuery?

Hope you catch my drift, and please cut me some slack, had a couple of beers and probably could have phrased my questions better :)

Cheers

Comments

nevets’s picture

The Draft module includes that functionality.

bartezz’s picture

Will definitelly be looking into this! Thanx Nevets!

________________
Live fast die young