Closed (fixed)
Project:
Ajax
Version:
6.x-1.12
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Reporter:
Created:
18 Jan 2009 at 11:06 UTC
Updated:
4 Feb 2009 at 11:50 UTC
This is closely related to #360246: Error on submit content type but I suppose it should be considered a different issue:
Using the Form Block module, I use the "Add content" form as a block on the right sidebar. I want to create something like a "Shoutbox", so I don't want the page that I am viewing to show anything else than before, when submitting content. Currently, although having ajaxified the form in question, the page reloads to show the added node.
I marked this as bug report, because it says on the project page, that you do not need to reload your page with an ajaxified form. Could be feature request as well, due to the specific configuration, feel free to change.
Comments
Comment #1
brendoncrawford commentedTsoeckler,
After the form is submitted, what are you wanting to happen next?
Comment #2
tstoecklerI want for the node to be submitted. Above the Form Block I have a View showing a list of the submitted nodes. Now I'm guessing without a page refresh Views has no chance to grab the new data, but I'm also guessing that's not part of AJAX module's business. I just want whatever page I'm looking at, to still be there and the form to be submitted.
Comment #3
brendoncrawford commentedI have added a new JavaScript hook in 6.x-1.x-dev, which may take up to 12 hours to update. This hook will allow you to do what you want. You can make a plugin to determine what happens after the form is submitted:
Let me know if you need anything else.
Thanks,
Brendon
Comment #4
tstoecklerOnce again, thanks very much.
Seems I might actually be about to write my own first code...
Comment #5
brendoncrawford commentedTstoeckler,
Eventually I might build the ability to control form submission-response actions with the Ajax UI module. I suppose it depends on how many people ask for it.
take care,
brendon
Comment #6
ManyNancy commentedHi, thanks for the new js hook. But I'm not sure where to put this? In my own module? My usecase is similar to tstoeckler's, I likewise want to use formblock to submit content like this. A UI option would be great.
Thanks.
Comment #7
brendoncrawford commentedI will build an admin UI for this feature, but it may be a few weeks.
Thanks,
brendon
Comment #8
brendoncrawford commentedMinqensan,
Can you move the UI request into a new feature request issue?
Thanks,
Brendon
Comment #9
tstoecklerDone:
#361992: Make UI for JS hook for form submission