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
Last but not least, neither of these options (separately or in combination worked): $sender->jsonTarget('', '', 'Refresh'); $sender->jsonTarget('example.com', '', 'Redirect'); //trying to get bad url $sender->jsonTarget('/dashboard/settings/demonstration', '', 'Redirect'); //Redirect to the demo test plugin So there's… -
Re: Reload Page After Submit
-
Re: Reload Page After Submit
-
Re: Reload Page After Submit
-
Re: Reload Page After Submit
No. jsonTarget "happens" at the end of a php method. It decides what happens when a request ends. Page1 has an element (link, submit button) which calls Page2. Some JavaScript hinders the browser to open the link. That's what Popup or Popin class do, well not the CSS does so but global.js, the main js library of Vanilla… -
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
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
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… -
Re: Reload Page After Submit
Hi @R_J , good find! Interestingly, after reviewining one of @hgtonight 's comments I looked at github and decided to try Popdown instead of Popup and it worked... I am not happy about this solution because I couldn't find any use of Popdown in Vanilla so I'm concerned about the durability of that solution. There is also…
9 results