{"id":465,"date":"2004-09-08T00:00:00","date_gmt":"2004-09-07T22:00:00","guid":{"rendered":"https:\/\/wwwneu.strehle.de\/tim\/weblog\/archives\/2004\/09\/08\/398\/"},"modified":"2004-09-08T00:00:00","modified_gmt":"2004-09-07T22:00:00","slug":"398","status":"publish","type":"post","link":"https:\/\/www.strehle.de\/tim\/weblog\/archives\/2004\/09\/08\/398\/","title":{"rendered":"PHP\/JavaScript scriptserver"},"content":{"rendered":"<p>Great idea, but currently may render your browser unusable while waiting for the server to respond &#8211; Harry Fuecks&#8216; <a href=\"http:\/\/www.sitepoint.com\/blog-post-view.php?id=193677\" title=\"Crouching Javascript, Hidden PHP [3] - SitePoint PHP Blog\">Crouching Javascript, Hidden PHP<\/a> solution:<\/p>\n<p>&#8222;Let&#8217;s say you have a PHP class that looks something like;<\/p>\n<p>class Math { function add ($x, $y) { return $x $y; } }<\/p>\n<p>You can now use this from Javascript like;<\/p>\n<p>var m = new math(); alert (m.add(2,2));<\/p>\n<p>No need to think about the underlying mechanism \/ encoding.&#8220;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Great idea, but currently may render your browser unusable while waiting for the server to respond &#8211; Harry Fuecks&#8216; Crouching Javascript, Hidden PHP solution: &#8222;Let&#8217;s say you have a PHP class that looks something like; class Math { function add ($x, $y) { return $x $y; } } You can now use this from Javascript [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_share_on_mastodon":"0"},"categories":[1],"tags":[],"class_list":["post-465","post","type-post","status-publish","format-standard","hentry","category-weblog"],"share_on_mastodon":{"url":"","error":""},"_links":{"self":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/465","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/comments?post=465"}],"version-history":[{"count":0,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/posts\/465\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/media?parent=465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/categories?post=465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strehle.de\/tim\/wp-json\/wp\/v2\/tags?post=465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}