[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Does php can generate javascript?

You are currently reading a thread in /g/ - Technology

Thread replies: 14
Thread images: 3
File: logo_JavaScript.png (10 KB, 1052x1052) Image search: [Google]
logo_JavaScript.png
10 KB, 1052x1052
Does php can generate javascript?
>>
>>51986017
javascript is just text on a webpage
>>
File: Screenshot_2015-12-21-22-55-10.jpg (168 KB, 1080x635) Image search: [Google]
Screenshot_2015-12-21-22-55-10.jpg
168 KB, 1080x635
>>
>>51986017
what do you mean? Are you asking can you compile PHP to JS?
>>
Define generate.
>>
>>51986017
Of course.
>>
yeah, echo it on the page
>>
It is possible to use the PHP CAN BUS library to generate javascript for controlling various vehicular inter-networked devices.
>>
>>51986017
You can generate the raw JS code as it is just a string. If you do that you are retarded and you fucked up designing process.
>>
>>51986017
echo('<script>alert("yes");</script>');

:^)
>>
>>51986017
lots of things compile to JS, because JS is shit and nobody likes it.
>>
>>51986017
Do me can generate cum on you face?
>>
you can compline it to bytecode first then make it into javascript from that using spring
>>
File: mapped.png (124 KB, 729x442) Image search: [Google]
mapped.png
124 KB, 729x442
>>51986287
>If you do that you are retarded and you fucked up designing process.
>not dynamically generating JS to do things like placing markers on maps
I supposed you'd say you should request the data through AJAX after page load and parse it through JS instead.
Thread replies: 14
Thread images: 3

[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK