client-side

Capture client side text change event for asp:TextBox

浪尽此生 提交于 2019-12-07 13:47:44
问题 I have a form that contains a TextBox. A pop up window will return a value and put it into the TextBox. when this happens, I need to populate another control. I tried tried "onChange" but it was not triggered . How can this be achieved? 回答1: You can use onchange, but this usually won't wire until the box loses focus . There's also onkeyup, which you want to use if you want the new text immediately. Can you control the window populating the textbox? If so that's your best route, since it's the

Non clunky, client-side graphs

若如初见. 提交于 2019-12-07 11:14:34
问题 Right now, on a website, I have a Java applet that displays graphs with several different views and options available. Depending on what the user selects, there are tons of different graphing options. Unfortunately, Java applets are very clunky. I'm looking for another method to implement graphs (similar to the kind Yahoo Finance uses). I was thinking of using Flot and preprocessing every graph to be displayed (I want to conserve Server resources). 回答1: Cam, Try jQuery graph plugins... they

Page_ClientValidate is not defined

自古美人都是妖i 提交于 2019-12-07 08:12:22
问题 I am using ASP.NET 2.0 and I'm using IE8 as my default browser but no matter how many times I try, Page_ClientValidate keeps giving me this error that it is not defined. How can I solve this problem? Please help. 回答1: ..so.. i think may be there is not any RequiredValidator Control in your page~~ 来源: https://stackoverflow.com/questions/3227830/page-clientvalidate-is-not-defined

ASP.NET MVC Client Side Validation

半腔热情 提交于 2019-12-07 05:52:11
问题 I am all about using ASP.NET MVC, but one of the areas that I hope gets improved on is Client-Side Validation. I know the most recent version (Preview 5) has a lot of new features for Validation, but they all seem to be after the page has been posted. I have seen an interesting article by Steve Sanderson... using Live Validation, Castle.Components.Validator.dll, and a Validator framework he made. I have used it in my project, but I am hoping something like it will get integrated into the

Client side Callback in GWT

扶醉桌前 提交于 2019-12-07 05:19:06
问题 I'm trying to create a logger for a GWT application as an exercise to evaluate GWT. What I specifically want to do is have it so that I can post messages to a client side label at any point from the server side. So, if some interesting stuff has happened on the server the client can be updated. My First question is, is this possible, I can understand it not being. Second, if it is possible, where should I look for information, I've tried google and their documentation and all the showcases

less.js - get variable values inside parsers' callback

三世轮回 提交于 2019-12-07 05:06:36
问题 I am using less.js (1.3.0) to parse less to css on the client side. Inside the parsers' callback I want to get the value for each variable. i tried the following without success. var data = "@colour: red; #example { background-color: @colour; }", parser = new less.Parser({}); parser.parse(data, function (error, root) { console.log( root.toCSS() ); var varsDef = root.variables(); for (k in varsDef) { console.log(varsDef[k]); // how to get the value for the var? //not working console.log

Client side languages

╄→гoц情女王★ 提交于 2019-12-07 04:26:30
问题 I am not a web programmer, so please excuse my ignorance. When it comes to server side programming, we have plethora of technologies available, such as PHP, ASP.net, JSP and so on. However, when it comes to client side scripting, I have only heard of JavaScript and AJAX. Maybe you can also include Java Applets, as they run on the client. A relatively new one is also the Google's native client. But are there any more client side technologies which exist and are popular? 回答1: AJAX is just a

How to deal with timezones between server and client?

China☆狼群 提交于 2019-12-07 01:35:28
问题 I'm developing a website where I have to deal with different possible timezones from the users. This becomes a great problem since the website hosts time-delicate events like auctions. All dates/times on the server are in UTC. Database stores everything in UTC timestamps. PHP default timezone is set to UTC too ( date_default_timezone_set('UTC'); ). Now, my problem is how I should interact with the users, whether I'm only showing a date or, more important, I'm reading a date/time from user

Can't receive messages using Google Cloud Messaging for Android (not the helper library)

我只是一个虾纸丫 提交于 2019-12-07 00:09:00
问题 Does anybody can help me with a working example for receiving messages from gcm using Google Cloud Messaging for Android. I have tried both ways (helper library and GoogleCloudMessaging class) and nothing seems to work. I'm using a PHP script that shows the following: Multicast ID: 5.2108110103215E+18 Number of messages processed successfully: 1 Number of messages with processing errors: 0 Canonical IDs: 0 So apparently everithing is OK. I could register the device in both ways, using the

Find the operating system of web app's client

血红的双手。 提交于 2019-12-06 21:04:37
I have a requirement where I have to find the operating system details of my web app's user. If the user is running on windows it should give "Windows 7 ... Blah blah " if Linux "Ubuntu.. blah..blah OR Fedora .. .. " if Debian "whichever" version of Debian. Can anyone suggest how we can do it? I had a look at sys-uname gem. But it is letting me know just the server side information. You have to use request.env['HTTP_USER_AGENT'] I found a sample code. def getBrowser(bt) rs=false ua=request.env['HTTP_USER_AGENT'].downcase isOpera = ua.index('opera') ? true : false isSafari = (ua =~ /webkit