Server-side getting dom properties (height of element)

匆匆过客 提交于 2020-01-03 03:03:12

问题


I want to scale all the HTML element's height in an HTML page. I am doing this with jQuery height() function, but it takes some time and causes problems in the browser. I decided I want to do this at the server. I tried to do this with ajax. But I couldn't. When I write height() function it doesn't return to me value of height(). It returns me just height() code.

For example:

I will send my html code to server with this function

sendHtml('<table><tr><td>'.$variable.'</td></td></table>');

Then i get this table's height from server.

Is there another way to do this?


回答1:


You might want to look into Node.js It's server-side javascript.



来源:https://stackoverflow.com/questions/9113959/server-side-getting-dom-properties-height-of-element

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!