Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Behavior of the RUN button Topic is solved

Questions related to customising nuBuilder Forte with JavaScript or PHP.
Post Reply
Gnu
Posts: 14
Joined: Fri Jan 07, 2022 10:38 am
Has thanked: 57 times

Behavior of the RUN button

Unread post by Gnu »

How can I use a Run button so that the (valid) HTML page generated by the selected PHP-procedure is displayed directly in a new tab, but without the nuBuilder header?

Now I get a 'unexpected Error'.

When I select "iframe" as the target, it works, but I need the page to open seperatly in a new tab, so I want to use a button.
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: Behavior of the RUN button

Unread post by kev1n »

Hi,

If I'm not mistaken, it is not currently supported by the run object to display the code in a new browser window, but you can use a normal button and then call

Code: Select all

nuRunPHP('your_procedure_name');
when the button is clicked.
Gnu
Posts: 14
Joined: Fri Jan 07, 2022 10:38 am
Has thanked: 57 times

Re: Behavior of the RUN button

Unread post by Gnu »

Thank you very much, it works perfectly. Sometimes one does not see the simple solution.
Post Reply