Hello there.
I want to display a node create form using Ajax. is it possible?

Comments

Yes. -------------------- Sud

Yes.
--------------------
Sudheer. S
Binary Vibes Information Technologies Pvt. Ltd.
Learn and and help others learn Linux, Apache, MySQL and PHP
Avail commercial Drupal services

--------------------
Sudheer S
Tech Chorus
Binary Vibes

How?

Ok. Now I know that it is possible. Will you please explain how it is possible?
Beautiful mind
Know more

  1. Learn some PHP
  2. Learn some Drupal - specifically the FormAPI
  3. learn some AJAX - specifically jquery
  4. learn from example on other modules which manipulate the forms in Drupal - like upload.js
  5. ???
  6. Profit!!!

Alternatively,
Learn how to ask questions that can actually be answered
or
Actually describe what you want and hire someone to do it for you.

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

Thanks for advise

I know very well what I am asking and its not compulsory for all to answer this without getting the question. I hope you get what I said.

Beautiful mind
Know more

How is this useful???

How is this useful???

Dagomar Paulides
B.A. Digital Media Design
Owner @ iz3 webdesign

Short and to the point

Only marginally more helpful than the question.

It was like going to a publisher and saying "I want to write a book that will have a blue cover and pictures on page 56. How do I go about it?"

The number of questions it would take to just figure out whether this guy could even write, whether he knew how to make forms, how far into the Drupal API he was, how much he understood about asynchronous HTTP requests, URL resolution and callbacks, browser events, what the form was actually supposed to do, or why, would be painful and never-ending.
The very fact that the question was asked so open-endedly implies that there wasn't enough background knowledge there to even begin to describe the process or explain how AJAX could be made to integrate with the Drupal API. You'd really need to read a couple of books before beginning, honestly.

Given that the OP clearly displayed no knowledge of PHP, Javascript or the Drupal APIs to begin with, we have to assume he's coming from scratch.
The most practical suggestion really is figure out how to describe what you really want to do, and get a programmer to do it for you!

Basically, don't expect answers in the forum that are much longer than your question, or the input you have made towards working things out for yourself. A one-sentence problem description deserves a one-sentence answer.

This question-to-answer ratio on this one would have been 1:10000.

y'see?

.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/

Is it possible? Yes. Is it

Is it possible? Yes.

Is it wise? Probably not.

There's generally no reason to do AJAX on events that require a reload of most of the page, as it doesn't much improve the user's experience. It's far better suited for small, distinct tasks like switching a node from published to unpublished where it doesn't make much sense to reload the entire page to do the change.

Problem has been solved.

Thank you.
The Prblem has been solved.
Thank you again.

Beautiful mind
Know more

Ajax node create --> helpful for creating child nodes

This feature (ajax display of node create) is very helpful if you're adding a child node to a parent - e.g. using node relativity module.

In my case people will be bidding on a parent node (campaign) and it would help to see info from the parent node while filling out the node create (bid) form.

SOOOOOOOOO,

Could the node create form be embedded in a content display page? You click a button [Add Node] and ajax would display the node creation form for the child type...

Please advise,
K.

Yes it is possible

I have done just that recently... I have a content type A, from where I wanted a way to create nodes of another type B.
My crude approach was to just call the form API to display the node creation form for type B on the node template for type A.
I then just hid the submit button using CSS ( this was just a temporary solution :P ), and added JS code to read values from the form elements. Then made a call to a custom ajax callback function to store the node using drupal_execute(). Worked absolutely smoothly.

I am surprised there is no module available to do this...

Obviously my approach is not the best, but I did that just as a proof of concept, to myself :P

Other ideas?

Thanks paganwinter, this is sounds good, and similiar to something I played with a while back...

But, does anyone have ideas for a more elegant solution?

My server can be slow, and my top users curse me with every page load.

My use case is:

I have a node (Event Page) to which my users are to add information, lets say:
Add 6 "Involved People" nodes (lots of info i'd like to keep dynamic, otherwise I'd just use text field with unlimited values)

So I'd like my authenticated users to:
1. Go to parent node
2. Ajax up a "People" node create form
3. Click Submit, and then Ajax up another node create form while server crawls away on the first submission in the background
4(Hat trick). Have the parent node add all 6 "People" nodes to its own CCK-based nodequeue
OR
Have the "People" node create form receive a default value for a "Parent Node" field

This way my users have completed their interaction with 1 page load (original Parent page load) vs. 13 or so loads (create form and submit for each "People") if we use AJAX.

How does this sound to everyone? Any suggestions on smart ways to approach this?

(As admin, I currently get around this by just openning 6 tabs with a node create form, and tab through each, submitting as i go. But some of my users don't even know what tabs are, and would get confused... so I'm really hoping to go with something more elegant)

Thank you brilliant people.

I don't have a full answer,

I don't have a full answer, but you may find this module helpful http://drupal.org/project/ajax

nobody click here