Monday, 15 September 2014

javascript and php on the server -



javascript and php on the server -

i have procedural problem,

i have php based server. send string server php file ( server.php file), php file, performs operations on string , homecoming new string.

i want add together js server.php file, run few jquery dom traversing functions on string. string dom.

i know not js designed for,, know supposed run on browser,, there simple workaround can do?

the string this:

<body> <em> heres em , works </em> <p> here para , works , @ next line <br> prepend,no prepend here, ladies , gentlement,,nada. </p> <button onclick = "addtags()">here magic</button> </body>

so need some, stuff on via php, , aditional tree traversing,, , love jquery functions this,, i;m using .text() , .contains(), .before(), .after(), .attr('class') functions jquery,, , if can suggest alternatives, fine me.. can done in xpath??? have no idea.. me jquery works perfect. need create new .html file string receive , somehow run js on that??

best regards, richard.

you cannot run js php @ same time on server. theoretically done, not in same execution flow.

you can dom processing in php.

php javascript

No comments:

Post a Comment