lukeprice Posted February 1, 2007 Share Posted February 1, 2007 Is there a document.get.elementbyid equivalent in php, also, is there any way of delaying script execution without hanging the browser? Link to comment https://forums.phpfreaks.com/topic/36612-javascript-documentgetelementbyid-equivalent-in-php/ Share on other sites More sharing options...
JasonLewis Posted February 1, 2007 Share Posted February 1, 2007 php is all server side. so none of it is client-side, which is what javascript is. so in answer to both your questions, i would have to say no. Link to comment https://forums.phpfreaks.com/topic/36612-javascript-documentgetelementbyid-equivalent-in-php/#findComment-174454 Share on other sites More sharing options...
hvle Posted February 1, 2007 Share Posted February 1, 2007 actually, there is a DOM function library that you can used like javascript, but then still, this library can only run on server. It can not run on browser. Link to comment https://forums.phpfreaks.com/topic/36612-javascript-documentgetelementbyid-equivalent-in-php/#findComment-174516 Share on other sites More sharing options...
HuggieBear Posted February 1, 2007 Share Posted February 1, 2007 Is there a document.get.elementbyid equivalent in php? Maybe I'm reading this wrong, but this looks like JavaScript. JavaScript is a client side language and PHP is a server side language. They're totally different, so if you want to use the above but on a PHP page, it's no different from standard HTML. Use it exactly the same. Regards Huggie Link to comment https://forums.phpfreaks.com/topic/36612-javascript-documentgetelementbyid-equivalent-in-php/#findComment-174564 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.