I have this:
webix.ajax().post(“test.php”, form.getValues(), function(text,data){ document.getElementById(“mydiv”).innerHTML = text });
test.php:
echo ‘’;
this mechanism gets properly all strings from the server,
why I can’t execute my code javascript build by my php program?
many thanks
or how I can execute remote javascipt code without load webix library into remote page.
This code work but destroy the main page
document.open(); document.write (text), document.close()
thank you
Pro-tip : You should always begin by explaining (with a precise summary) what you are trying to achieve.
I hope I can explain in this way:
test.html:
webix.ajax(“some.php”, function(text){
webix.message(text); //show server side response
});
test.php:
echo “hello”;
ok this works.
test.php:
echo “script… webix.message(‘message from the server’);…”;
I would like the php program can generate a script and test.html can executes it…
many thanks
Helga
March 11, 2016, 7:34am
5
Try to apply webix.toFunctor to the code string to convert it to a function.
yes, this way may be good.
For security reasons and hidden code,
I would have preferred that the server can generate the code!
many thanks
Helga
Helga
March 11, 2016, 4:53pm
7
I see. Also webix.exec may be helpful.
It works, this is useful for me!
many thanks
Helga