server-side

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

依然范特西╮ 提交于 2019-12-03 10:28:50
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 same time as any C# code. Ideally TypeScript intellisense and the like should work in the inline <script>

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

强颜欢笑 提交于 2019-12-03 09:04:14
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . 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 upload a new .html file to the server. So for example if I have a website called www.check.com/index.html when

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

不羁的心 提交于 2019-12-03 08:59:35
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 : { whileScrolling : function() { //alert("scroll"); if (this.mcs.topPct == 100) { // Need to load data using the same

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

我与影子孤独终老i 提交于 2019-12-03 08:00:51
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 load balancing on a framework level. MVC architecture. ORM support or atleast Object level mapping support

detecting when mailto failed

送分小仙女□ 提交于 2019-12-03 07:42:34
问题 When using a mailto link chances are that it doesn't do anything for the user if he doesn't have an email client setup, or didn't setup his webmail to be his default client (ea. gmail as default client in macosx). What would be the best way to gracefully offer a fallback, kindly asking the user to manually email you? I could use JS or css to show a message once the link has been clicked: submit was successful, or if nothing happened please email us manually. What about using a form with

server side browser

痞子三分冷 提交于 2019-12-03 06:59:20
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. PhantomJS does what you are describing. It is basically a headless browser - http://phantomjs.org/ you can run it server side via any server side language. See some integration

client-MVC vs server-MVC

有些话、适合烂在心里 提交于 2019-12-03 06:51:23
问题 I am looking to get some input from other users on the benefits of server-side MVC. With the power of many javascript libraries. What good purpose does server-side MVC server anymore? You can easily use client-side MVC with templating and a REST API to make a much more resposive application with less overhead of reloading a whole page for minor changes. 回答1: Server MVC benefits: Mature. Widely adopted. Most of the code is inside server so should be more secure. But definitely the tendency is

Why is Erlang said to be more suited for server side programming in webgames than Java and C++?

元气小坏坏 提交于 2019-12-03 06:39:01
问题 I don't really understand, how can Erlang be more efficient than C++? 回答1: Erlang is far less efficient than C++. Erlang's big strength is scalability, not efficiency. It will linearly scale across multiple CPUs and, due to its programming and communications model, will very easily scale across machine clusters. Just to be clear, Erlang won't scale more than C++; it just scales more easily than C++. A lot more easily. See chapters 5 and 6 of Concurrent Programming in Erlang for a very good

Templating language for both client-side and server-side rendering

三世轮回 提交于 2019-12-03 04:15:16
问题 I'm investigating JavaScript templates as a way to render our views. The goal is to be able to render client-side for users that have JavaScript enabled to to render the same templates/data server side for those users (and crawlers) that don't. Requirements Client side rendering. Server side rendering (JVM support a nice-to-have). Reasonable support for loops, conditionals, text manipulation, partials, macros and extensions/plugins. Reasonably big/active community of users. Unsatisfactory

Server side templates, client side templates - Automatic conversion?

我是研究僧i 提交于 2019-12-03 03:06:33
With the event of the jQuery templates plugin, I am wondering how to maintain both server-side and client-side templates. Because in my case, I have some templates, that would be duplicates - server-side as well as client-side. Just imagine this: You have a form, where you can enter list points. When you press submit, an AJAX request is generated but the entry is already showed on your page. Now, the markup for this bullet point should be the same - wether it was generated through JS or by my PHP/.NET/whatsoever application. Are there any good ways to maintain those templates / keep them in