Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Write message to console from After save(PHP)
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm
Write message to console from After save(PHP)
Is it possible to write "Hello World" to console from After save, using php custom code?
-
- nuBuilder Team
- Posts: 4305
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 445 times
- Contact:
Re: Write message to console from After save(PHP)
Hi,
Does it have to be in After Save?
This would work in Before Edit:
Does it have to be in After Save?
This would work in Before Edit:
Code: Select all
$j = "
if (nuHasBeenSaved()) {
console.log('Hello World');
};
";
nuAddJavascript($j);
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm
Re: Write message to console from After save(PHP)
I would like to write to console during application development, for debugging purposes. It is relatively easy with javascript, but from php all my tries failed.
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm
Re: Write message to console from After save(PHP)
I tryed :
$j="console.log('Hello World');";
nuAddJavascript($j);
in As and BS, without any error, but nothing appeared on the console.
$j="console.log('Hello World');";
nuAddJavascript($j);
in As and BS, without any error, but nothing appeared on the console.
-
- Posts: 25
- Joined: Sat May 08, 2021 1:20 pm