HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Reload Page After Submit
-
Re: Reload Page After Submit
Here is some short code which you might be able alter to show your problem: class.demonstration.plugin.php <?php$PluginInfo['demonstration'] = [ 'Name' => 'Demonstration', 'Description' => 'This and that...', 'Version' => '0.1', 'RequiredApplications' => ['Vanilla' => '>= 2.3'], 'SettingsPermission' =>… -
Re: Reload Page After Submit
II thought about that, but it complicates the code significantly because now the form handling code has to recognize whether postback is from the main form or the popup form. It leads to non elegant code. What if I told you that the main form has two different pop ups? Now the code splits into three flows? Sure, each could… -
Re: Reload Page After Submit
I finally know how to recreate it on a modified version of your "demonstration" plugin and now know exactly which Vanilla function triggers the problem. Apparently going back from a popup "window" to another Vanilla place through the "redirect" function causes the popped up window to retain it's state. Now, there is a… -
Re: Reload Page After Submit
Allow me to add another point -- Assume the child form (FormB) is invoked from the main form without having the Popup pseudoclass. Then there is no problem, the logic works as intended. Wouldn't an ideal solution be one where the coding is the same regardless whether the subform is invoked with or without Popup? -
Re: Reload Page After Submit
By the way: I bet that anybody with some basic form handling knowledge is already laughing at our clumsy explanations :mrgreen: It's getting somewhat too theoretical for me now. You can define an action target in a form, which would pass that postback action back to the Main method like so: public function… -
Re: Reload Page After Submit
-
Re: Reload Page After Submit
I assume $sender->jsonTarget('', '', 'Refresh'); is already the answer... Just some comments to your vision: Pressing "x"/leaving that popup form doesn't render anything. It removes the popup (with JavaScript) That is not how it works. Let's look at some pseudo (not even that) code public function MainWindow { Display… -
Re: Reload Page After Submit
Hi @R_J, I tried that code snippet ("This one put at the end of a view will force a reload of the page after a popup has been closed.") but it didn't work for me. What I see is that when a popup form view is started (the usual way with the Popup class parameter) the form/view indeed shows in a Vanilla popup but when the… -
Re: Reload Page After Submit
I can confirm that either Popdown or "$Sender->Render('Blank', 'Utility', 'Dashboard');" work. At least the latter is used all over Vanilla... Still have to research how to use jsontarget to close the popup from within, because it is more direct. But, IMHO the most elegant solution would be to have a "pseudoclass" (same…
12 results