client-side

Client-side JavaScript ViewState Update in asp .net forms

╄→尐↘猪︶ㄣ 提交于 2019-12-01 08:53:10
I have stumbled upon the issue when I need to retract html controls I've added client-side using JavaScript after the postback (due to server-side validation - this is not optional). Please tell me if the way I'm trying to achieve this is cr*p and there's a better way of doing this. basically, what I'm doing is cloning a textbox control for up to 10 times on the page when the user hits "Add" and storing entered values from each of those texboxes in a hidden field to read from in the code behind. This works fine, however, when the server side validation doesn't pass after postback, all those

Parse LESS client side

烈酒焚心 提交于 2019-12-01 06:19:02
Can I parse LESS client side, and return the results? I am currently using as recommended in documentation, which is to include less file, and minified less parser afterwards. I want to be able to return the raw css so I can save it as a css file. I do not want to install node.js and the likes, I want a client side solution. A look at the less.js source brings up the Parser object. Assuming that less.js is included in the page: var data = "@colour: red; #example { background-color: @colour; }", parser = new less.Parser({}); parser.parse(data, function (error, root) { // code that handles the

Client-side JavaScript ViewState Update in asp .net forms

 ̄綄美尐妖づ 提交于 2019-12-01 05:43:45
问题 I have stumbled upon the issue when I need to retract html controls I've added client-side using JavaScript after the postback (due to server-side validation - this is not optional). Please tell me if the way I'm trying to achieve this is cr*p and there's a better way of doing this. basically, what I'm doing is cloning a textbox control for up to 10 times on the page when the user hits "Add" and storing entered values from each of those texboxes in a hidden field to read from in the code

Can anyone tell me that is it possible to generate PDF files using javascript?

南楼画角 提交于 2019-12-01 04:43:56
I need to create a PDF file on the client side using JavaScript. How do I do that? jsPDF is an open-source library for generating PDF documents using nothing but Javascript Martin Milan JSPDF should be all you need... Use a web service that converts HTML pages to PDF, e.g. PDF Download 来源: https://stackoverflow.com/questions/5029238/can-anyone-tell-me-that-is-it-possible-to-generate-pdf-files-using-javascript

Persistent storage on client side

别来无恙 提交于 2019-12-01 03:57:51
Is there any way to have some persistent data (like an XML file or so) apart from cookies at client side? I know that's not possible with JavaScript directly. But any other way like Applets or something?? Charlie Collins If cookies won't suffice, and you have to support older browsers, then LawnChair might help: http://brian.io/lawnchair/plugins/ It's like a "Couch" but smaller, get it? Took me a few minutes ;). And, it does work for desktop browsers, despite the blurb on the site about mobile-webkit: https://github.com/brianleroux/lawnchair/blob/master/README.md . (But, it uses cookies as the

Can anyone tell me that is it possible to generate PDF files using javascript?

≯℡__Kan透↙ 提交于 2019-12-01 03:06:01
问题 I need to create a PDF file on the client side using JavaScript. How do I do that? 回答1: jsPDF is an open-source library for generating PDF documents using nothing but Javascript 回答2: JSPDF should be all you need... 回答3: Use a web service that converts HTML pages to PDF, e.g. PDF Download 来源: https://stackoverflow.com/questions/5029238/can-anyone-tell-me-that-is-it-possible-to-generate-pdf-files-using-javascript

offline, cross-tab communication (javascript-only)

心不动则不痛 提交于 2019-12-01 01:35:57
Is it possible to find foreign instances of certain website? Ofc theese are independently opened tabs (not by window.open). I need to prevent user from opening 2 tabs, and send message to previously opened tab to inform that it's impossible to open 2 tabs. 2 Intependent tabs may break page offline storage and webSQL structure, so that I can't allow people to use 2 tabs. It's also semi-offline app so it needs to be client-side solution. You can communicate across tabs using localStorage. Every time you write a value, a "storage" event is fired on the window object on every tab (except the

forece refresh client page from server side [closed]

拈花ヽ惹草 提交于 2019-12-01 01:18:26
How may I refresh current client view page from the server side? for example, if I want to force refresh for page that is viewing now for all the clients, so they can view the new content. and I want to do this refresh in the time that I want using PHP. Is it possible?? Use Web Sockets. You can use either PHP Sockets with this or this I think php Sockets would require you to have a PHP version of 5.3 or above. If you don't have PHP v5.3 or above you can use Node JS with Socket.io Long Pooling is also one of the option, but that won't be a good solution considering the number of requests your

Is a Session ID generated on the Server-side or Client-side?

断了今生、忘了曾经 提交于 2019-12-01 01:03:40
This web page http://www.w3schools.com/ASP/prop_sessionid.asp states that a session ID is generated on the ServerSide. If this is the case, then how does a server know it's still the same client on the 2nd request response cycle? Surely the SessionId would be generated on the ClientSide so that the client would be sure of passing the same value to the server? The SessionID is generated Server Side, but is stored on the Client within a Cookie. Then everytime the client makes a request to the server the SessionID is used to authenticate the existing session for the client. The session ID is

Persistent storage on client side

落爺英雄遲暮 提交于 2019-12-01 00:47:24
问题 Is there any way to have some persistent data (like an XML file or so) apart from cookies at client side? I know that's not possible with JavaScript directly. But any other way like Applets or something?? 回答1: If cookies won't suffice, and you have to support older browsers, then LawnChair might help: http://brian.io/lawnchair/plugins/ It's like a "Couch" but smaller, get it? Took me a few minutes ;). And, it does work for desktop browsers, despite the blurb on the site about mobile-webkit: