client-side

Deploy same Javascript webapp build to different environments

荒凉一梦 提交于 2019-12-24 04:14:09
问题 I have an ExtJS application and some different environments (local machine, development, production-like test environment, and production). The ExtJS application is backed by a Java backend which is also running on either a local machine, in a development environment, a production-like test environment or a production environment (not the same servers as where the front end application lives though). For the last two environments, I want to build ONE build of the ExtJS app and first deploy it

Secured Client-Side script

核能气质少年 提交于 2019-12-24 02:00:55
问题 I have got a particular requirement where some critical algorithms have to be handled in the client-side script and it got to be secured. Using javascript will just expose the algorithm. I am currently evaluating ways to secure the algorithm on the client script. Appreciate any suggestions and alternative approaches. One option I am thinking about is to download a small applet to the local PC, get the calculations done in it and update the results back. Before deciding on this, I want to know

client side xslt with javascript in firefox

旧街凉风 提交于 2019-12-23 20:58:29
问题 I am using client-side xslt to transform xml files into xhtml. There have been some hurdles but I have managed to get passed all of them except this. The problem is that when I have a simple xml file like this <?xml version="1.0" encoding="ISO-8859-1"?> <?xml-stylesheet type="text/xsl" href="./jsInFf.xsl"?> <root>hello</root> and transform it to xhtml with a simple xsl like this <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL

How to log Client Side exceptions in StackExchange.Exceptional?

落花浮王杯 提交于 2019-12-23 18:44:56
问题 I am working on a web project and implemented StackExchange.Exceptional for server exceptions logging. I am just wondering if I could log my client side exceptions as well through StackExchange.Exceptional . Is there any way to use this library for client-side exceptions logging? 回答1: As far as client side logging is concerned there is no mechanism as per my knowledge. Because the developer never maintain any database of stuff on client side. Even if you save exception in client side storage

Client Java vs (Adobe) Flash for web applications, what to choose and when

こ雲淡風輕ζ 提交于 2019-12-23 12:27:07
问题 A few years ago client Java was unsuitable for web development because a remarkable part of web users did not have Java installed. ( I don't remember exact numbers, more than 10%). Now I see the Google Analytics stats for a big site and it tells that >98% of users have Java installed. Is these stats very biased by Javascript usage? As I understand Google Analytics measure only users that has Javascript. Is the picture similar on other big sites? Does client Java have really "stopper"

MVC3 selectively validate client side

怎甘沉沦 提交于 2019-12-23 04:15:34
问题 Each form in the application has a set of radiobuttons. Once selected, only certain fields associated with that radiobutton will need to be validated. I am using MVC 3 and need the validation to work client side. Simply using DataAnnotations I can only validate all fields on the form. IValidatableObject doesn't work clientside. IClientValidatable looks like it might do the job, but it seems I would have to write a new attribute for every standard DataAnnotation attribute. RemoteValidation

MVC3 selectively validate client side

孤者浪人 提交于 2019-12-23 04:15:07
问题 Each form in the application has a set of radiobuttons. Once selected, only certain fields associated with that radiobutton will need to be validated. I am using MVC 3 and need the validation to work client side. Simply using DataAnnotations I can only validate all fields on the form. IValidatableObject doesn't work clientside. IClientValidatable looks like it might do the job, but it seems I would have to write a new attribute for every standard DataAnnotation attribute. RemoteValidation

Find the operating system of web app's client

无人久伴 提交于 2019-12-23 03:12:42
问题 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. 回答1: You have to use request.env['HTTP_USER_AGENT'] I found a sample code. def getBrowser(bt) rs=false ua

How to call javascript function on keyup event for asp:TextBox

只愿长相守 提交于 2019-12-22 09:50:00
问题 How to call javascript function on keyup event for asp.net's TextBox control? I am trying something like this, but it is not working. <asp:TextBox ID="txt_userid" runat="server" onkeyup="GetRes();"></asp:TextBox> UPDATE there is a update alert is working but breakpoints in java function is not working. 回答1: Test this solution: Add this code to your page load : txt_userid.Attributes.Add("onkeyup", "GetRes();"); I don't say this is best way possible, but it works. UPDATE: Complete sample: ASPX:

Check Checkbox Disabled (Jquery)

风流意气都作罢 提交于 2019-12-22 04:00:13
问题 The purpose is to; If checkbox is disabled, do nothing. If checkbox is enabled and checked, set the style of a button. Here is what I've got so far; $(document).ready(function (e) { $(".checkbox").live("click", function () { if ($(this).hasAttribute('disabled')) { return false; } var isAnyChecked; $("input[type=checkbox]").each(function () { var checkedValue = $(this).attr("checked"); if (checkedValue == "checked") { isAnyChecked = true; } }); if (isAnyChecked) { $("#<%= btnConfirm.ClientID %