HTTP Redirect

15 views
Skip to first unread message

dros...@gmail.com

unread,
Jun 6, 2024, 10:36:08 AM6/6/24
to Lightning - 4D Web Applications
In an Ltg v4 db, I have a detail form in which, when the user clicks an accept button, a method is called that saves the data, closes the user session, then redirects to a non-Ltg static page within the webfolder via WEB SEND HTTP REDIRECT. But because the method is within an ajax call, Lightning maintains the current page, embedding the html of the redirected page within the current page. Is there a way around this, i.e. a way to get out of the current page completely and redirect to a static page?

Graham Langley

unread,
Jun 7, 2024, 3:07:16 AM6/7/24
to lightning-...@googlegroups.com
Try adding type="submit" to the button tag

Sent from my iPhone

On 6 Jun 2024, at 15:36, dros...@gmail.com <dros...@gmail.com> wrote:

In an Ltg v4 db, I have a detail form in which, when the user clicks an accept button, a method is called that saves the data, closes the user session, then redirects to a non-Ltg static page within the webfolder via WEB SEND HTTP REDIRECT. But because the method is within an ajax call, Lightning maintains the current page, embedding the html of the redirected page within the current page. Is there a way around this, i.e. a way to get out of the current page completely and redirect to a static page?

--
You received this message because you are subscribed to the Google Groups "Lightning - 4D Web Applications" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lightning-4d-web...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lightning-4d-web-apps/826417eb-81e0-4a63-b75b-4dd8a0301a7an%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages