server-side

Using TypeScript with an inline server-side `<script>` block and ASP.Net

雨燕双飞 提交于 2019-12-04 16:27:54
问题 I want to be able to have inline TypeScript in an ASPX (or Razor) page that is converted to Javascript when the page compiles. So: <script type="text/typescript" runat="server"> ... </script> Becomes... <script type="text/javascript"> ... </script> It should happen at the same point that @ or <% %> blocks are converted. This should be possible at run time with some kind of page post-processing, but that won't generate exceptions at compile time - I want to find errors in the script at the

On dataTable scroll data should load from server side and append to existing records

跟風遠走 提交于 2019-12-04 15:54:30
问题 using node js and bootstrap I am developing a web application . I have a table implemented using Data Table. I am performing my search and sort using server side code . Initially I am fetching 50 records. All these were working fine. Now I want to load data (next 50 records ) from server side when scroll reached bottom. Currently my code is , $('#table-goal').dataTable({ "fnInitComplete" : function() { $('.dataTables_scrollBody').mCustomScrollbar({ theme : "dark-3", callbacks : {

Render CSS3 animation as a sequence of image files with PhantomJS

梦想与她 提交于 2019-12-04 14:38:26
问题 I didn't work with PhantomJS before, but want to use it to render some custom-made CSS3 animated sequences to sets of PNG files on server side to join them into a single video file next. Seems like PhantomJS has an option to render current page state to an image. Next, I found -webkit-animation-play-state that I hope can help me to pause the animation, render the page, then go to next frame and do it all again. May be I should do these animations with pure JS so that I can control all pause

How do I create a new .html webpage onclick? [closed]

╄→гoц情女王★ 提交于 2019-12-04 14:29:58
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . What I want to do is when the user clicks my html button I want to dynamically create a new webpage on the server. I need the url of the new webpage to have it's own url, that is, it should be different from each other. In more detail: When the user clicks the button I want to

No documentation about AppSecret Proof for Server API calls?

孤人 提交于 2019-12-04 13:27:37
If I enable the option giving in Advanced Settings is gives me BAD Request or error code 400 If I enable this option, what is the required value of AppSecret_Proof parameter? If you visit github and have a look at their PHP SDK's code , you'll find how they generate appsecret_proof's value. This part was recently added so you have to refer to the latest version of PHP SDK. To activate/inactivate, as you already know, you have to visit App Dashboard > Setting > Advanced. EDIT: 2013-08-09 Now they have official document . Neil From the documentation article Securing Graph API Requests : The app

Choosing Java Spring as a scalable server-side framework for a large website

一曲冷凌霜 提交于 2019-12-04 13:10:08
问题 I'm currently facing a dilema regarding the appropriate server-side framework to use. Basically, I want to choose the best framework for building a large website to serve millions of page hits. The website itself will be heavily database and ajax reliant, and thus will need to be planned for scalability right from the start. My wants/needs for a suitable server-side framework are the following: High-Level OO-based language support with some meta programming support. Proper scalability and

Why can't server side and client side scripts interact?

不羁的心 提交于 2019-12-04 12:23:00
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 you’ve loaded a web page. And A server side or back-end language runs its scripts before the HTML is loaded, not after. Even if the server side script (e.g. PHP) has already been executed, how come it can't be changed (with JavaScript) after the page has loaded? I want to call PHP from JS. For example, is there a possible way to do this? setInterval(<?php

server side browser

痴心易碎 提交于 2019-12-04 12:17:26
问题 I was wondering if it is possible to run a browser (specifically a browser engine) on the server side. I do not just mean to render a page but to keep a browser open for some time, run some JS, do some clicks or press some keys and meanwhile grab the graphical output. Does anyone know how to accomplish this? So far my only idea was to run the browser in a VNC, RDP etc. session but this seems like an overkill to me. 回答1: PhantomJS does what you are describing. It is basically a headless

Vapor 3 Beta Example Endpoint Request

▼魔方 西西 提交于 2019-12-04 11:17:07
问题 I am trying to find a simple example of how inside a router a person would send a request to the vapor sample endpoint http://example.vapor.codes/json , receive a response and map it to a struct or class. I've seen examples elsewhere for Vapor 2 but they are no longer relevant with Vapor 3 and the current Vapor 3 beta documentation isn't clear. Something like... router.get("sample") { req in //1. create client //2. send get request to sample endpoint at http://example.vapor.codes/json //3.

Server-side architecture for mobile web applications

自作多情 提交于 2019-12-04 09:19:16
问题 In most desktop web applications I've ever worked on you need a server-side web framework. The server-side web framework (Struts, Spring MVC, etc) has some kind of controller for processing requests and then a templating engine (Velocity, JSP, etc) for generating dynamic content. Now I am starting to work on mobile web applications and all the discussions I see revolve around selecting a UI framework (jQuery Mobile, jQTouch, Sencha Touch, etc) but I don't see any discussion of what is