server-side-scripting

Building Web App Using OrientDB JavaScript API

纵然是瞬间 提交于 2019-12-06 04:15:41
I'm having a bit of difficulty in figuring out how to get the OrientDB JavaScript API to work in a web app. I tried searching into the source code of the OrientDB Studio web app and was able to notice that they use the orientdb JavaScript API along with some AngularJS, which looks very fascinating, but then I tried on my side by creating a simple web page that imported the orientdb-api.js and the jquery library, and it did not work. Here is the content of my web page: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1

Requesting a website by client side script = Cross Side Scripting Hack. But requesting a website by server side script is not a hack! Why?

若如初见. 提交于 2019-12-04 19:59:34
Generally, when we want to show the contents of some web page in the same page, we go for ajax requests. If say, I request to a web page in different domain with AJAX, it is not allowed because of the Cross side scripting error. But why is it allowed to access via a server side page. For e.g. we can use CURL in php to access any site.? Why is this feature OK for server side scripting and NOT OK for Client Side Scripting? Because a malicious script can open an external page without the premission of the user. For instance imagine an insecure textarea. If the contents of this textbox is shown to

How to pass PHP array parameter to Javascript Function?

拥有回忆 提交于 2019-12-04 03:44:16
问题 index.php <script type="text/javascript" src="javascript.js"> </script> <?php $movies = array("Bloodsport", "Kickboxer", "Cyborg", "Timecop", "Universal Soldier", "In Hell", "The Quest"); ?> <input type="submit" value="Test Javascript" onclick="showMovies(<?php echo $movies; ?>);" /> javascript.js function showMovies(movies) { alert(movies.length); return false; } I am new to programming so Im having hard time fixing this one which is obviously simple for you guys. When I hit the submit

How to pass PHP array parameter to Javascript Function?

空扰寡人 提交于 2019-12-01 19:12:36
index.php <script type="text/javascript" src="javascript.js"> </script> <?php $movies = array("Bloodsport", "Kickboxer", "Cyborg", "Timecop", "Universal Soldier", "In Hell", "The Quest"); ?> <input type="submit" value="Test Javascript" onclick="showMovies(<?php echo $movies; ?>);" /> javascript.js function showMovies(movies) { alert(movies.length); return false; } I am new to programming so Im having hard time fixing this one which is obviously simple for you guys. When I hit the submit button it says the that the array size is 1 which I think should be 7. How could this be? ErikE Your PHP

How can I get a PHP variable to AJAX?

岁酱吖の 提交于 2019-12-01 10:54:38
I don't think I am passing the variable the right way between my separate PHP and AJAX files. I am debugging this by triggering the second condition $status = 'info'; in my PHP file. Currently, status is coming up as "undefined" for alert(data.status); signup_process.php if (condition){ $status = 'success'; else { $status = 'info'; } AJAX function send() { var data = $('#signup_form').serialize(); $.ajax({ type: "POST", url: "signup_process.php", data: data, success: function (data) { alert(data.status); if (data.status == 'success') { // everything went alright, submit $('#signup_form')

How can I get a PHP variable to AJAX?

﹥>﹥吖頭↗ 提交于 2019-12-01 09:39:59
问题 I don't think I am passing the variable the right way between my separate PHP and AJAX files. I am debugging this by triggering the second condition $status = 'info'; in my PHP file. Currently, status is coming up as "undefined" for alert(data.status); signup_process.php if (condition){ $status = 'success'; else { $status = 'info'; } AJAX function send() { var data = $('#signup_form').serialize(); $.ajax({ type: "POST", url: "signup_process.php", data: data, success: function (data) { alert

Client side scripting and Server side scripting languages

折月煮酒 提交于 2019-11-27 16:48:10
问题 What scripting languages comes under client side and what and all comes under server side? If JavaScript is scripting language, then what about jquery. jquery is nothing but javascript library rite? so jquery is client side scripting? I goggled it, but its still confusing. In some sites its given, client side scripting are JavaScript and vb script and in some other sites its saying only JavaScript. In case of server side, they are mentioning html also. Can i have a clear idea about this. 回答1:

How can I generate a screenshot of a webpage using a server-side script?

纵然是瞬间 提交于 2019-11-26 13:23:31
I need a server-side script (PHP, Python) to capture a webpage to a PNG, JPG, Tiff, GIF image and resize them to a thumbnail. What is the best way to accomplish this? See also: Web Page Screenshots with PHP? How can I take a screenshot of a website with PHP and GD? How might I obtain a Snapshot or Thumbnail of a web page using PHP? You can probably write something similar to webkit2png , unless your server already runs Mac OS X. UPDATE: I just saw the link to its Linux equivalent: khtml2png See also: Create screenshots of a web page using Python and QtWebKit Taking automated webpage

How can I generate a screenshot of a webpage using a server-side script?

本小妞迷上赌 提交于 2019-11-26 03:41:05
问题 I need a server-side script (PHP, Python) to capture a webpage to a PNG, JPG, Tiff, GIF image and resize them to a thumbnail. What is the best way to accomplish this? See also: Web Page Screenshots with PHP? How can I take a screenshot of a website with PHP and GD? How might I obtain a Snapshot or Thumbnail of a web page using PHP? 回答1: You can probably write something similar to webkit2png, unless your server already runs Mac OS X. UPDATE: I just saw the link to its Linux equivalent: