I'd like to display a message with PHP. I thought I could call
Code: Select all
nuMessage("Hello");
Code: Select all
nuMessage("Hello");
Code: Select all
nuMessage(['Hello World']) - which takes an Array of Strings.
Code: Select all
nuDisplayError('Hello World'); - which takes a String.
Code: Select all
nuMessage(["<img id='nulogo' width='40px' src='graphics/numessage.png' style='position:absolute;left:2px;top:2px'>","That is now finished!"])
I mean if nuDisplayError() is not always intended to display an error message, then the name is misleading. But that's a matter of opinion.admin wrote:opefully, nuDisplayError() isn't so confusing to the developer if they read the wiki.
Is there an easy way to call nuMessage() from PHP code? I've tried using echo but without success.I just want to show an info message in PHP
nuMessage() is a Javacript function.Is there an easy way to call nuMessage() from PHP code?
A possible solution to use nuMessage() in PHP:Is there an easy way to call nuMessage() from PHP code? I've tried using echo but without success.
Code: Select all
$j = "nuMessage([\"<img id=\'nulogo\' width=\'40px\' src=\'graphics\/numessage.png\' style=\'position:absolute;left:2px;top:2px\'>\",\"That is now finished!\"])";
nuAddJavascript($j);