I have this code:  <script type="text/javascript">     var foo = 'bar';     <?php         file_put_contents('foo.txt', ' + foo + ');     ?>      var baz = <?php echo 42; ?>;     alert(baz); </scr...
I'm working with socket.io and node.js and until now it seems pretty good, but I don't know how to send a message from the server to an specific client, something like this:  client.send(message, receiverSessionId)   But neither the .send()...
I am building a Next.JS app that will be getting data from a Python API and an Postgres Database.  Normally this would be simple, except requirements are such that I need to send all requests from the server-side, not the user's client.  I have b...
I'm new to client and server side scripts, and I was wondering, how come they can't interact?  The major difference Code Conquest stated here is that:     ... is called a client side language is because it runs scripts on your computer after...
For example, writting server-side things using javascript, instend of php....
I have a JSON Object  {      "widgetSettings":[{"maxDisplay": 6, "maxPerRow": 2}],     "widgets": [         {"wigetID": 1, "show": false, "weight": 0, "widgetTitle": "Widget 1",...
I'm using angularjs with firebase and when I use  $scope.createdDate = new Date();   it uses the time on the client, however I want to use Firebase Servers current time as client-side time may vary. How can I go about this in angular?...
Sometimes when I need to include the same group of elements in many web pages, I use PHP:  <?php include "somefile.html" ?>   When somefile.html is this:  <h1>TITLE</h1> <h2>Subtitle</h2>   And sometimes, when I&...
I was interested in obfuscating my JS code, but I realized arround forums that it is useless. I would like to obfuscate my code anyway. So I was wondering, is that possible to execute JS code on server side (with an app in node.js for example), and j...
I am trying to check if the input name is already in a Google Sheet. However, I am getting this error:      Uncaught TypeError: google.script.run.doSomething is not a function.   Here is my Index.html file.  <!DOCTYPE html> <html>  <he...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.