client-side

How to set the value of p:selectOneRadio with Client Side API?

ぐ巨炮叔叔 提交于 2019-11-29 23:48:40
问题 In my JSF view I am using a p:selectOneRadio. Now I have to change the value of this component on client side as side effect. In the Client Side API of this component I have found the following which I think I could use for this if I find the proper way how to use it: PrimeFaces.widget.SelectOneRadio=PrimeFaces.widget.BaseWidget.extend( { // ... select:function(a){ this.checkedRadio=a; a.addClass("ui-state-active") .children(".ui-radiobutton-icon") .addClass("ui-icon-bullet").removeClass("ui

Does it make security sense to hash password on client end

試著忘記壹切 提交于 2019-11-29 21:07:10
If you were to hash a user's password prior to sending it across the line and leaving it in plain-text in memory, would this improve the security of the application? I would assume this mitigates a small fraction of vulnerabilities by protecting the data stored in the clients memory. But really if we're worried about someone reading the client's memory there are probably bigger problems that we can't address. There's something that doesn't feel right about hashing on the client's end. Is password hashing on the client end a common practice? Are there any other advantages or disadvantages to

What is the best way to measure Client Side page load times?

孤街浪徒 提交于 2019-11-29 19:55:11
I'm looking to monitor the end user experience of our website and link that with timing information already logged on the server side. My assumption is that this will require javascript to to capture time stamps at the start of request (window.onbeforeunload) and at the end of loading (window.onload). Basically this - " Measuring Web application response time: Meet the client " Is there a better approach? What kind of performance penalty should I be expecting (order of magnitude)? How good are the results? EDIT (2013): try Boomerang instead, like @yasei-no-umi suggests. It's actively

How can I get a program on a client machine to run from an ASP.NET page?

天大地大妈咪最大 提交于 2019-11-29 19:25:55
问题 I have an app that I'm trying to run on an intranet. On my machine it worked great (famous last words) but when I put it up to the server, it didn't work. As soon as I saw the "the system cannot find the specified file" error, I figured it had to be something with trying to run a program that's on a client machine. Yes, it would be a security nightmare if any app in a browser could run an executable on a client machine. Is this any different for intranet? The few computers it would run on all

When to use “client-side routing” or “server-side routing”?

試著忘記壹切 提交于 2019-11-29 19:11:06
I'm a little bit confused about this, and I feel slightly stupid asking this question, but I want to understand it. So, say I'm working with a client side web framework, like Backbone, Angular or Durandal. This framework includes routing. But I of course still have a server for database stuff, and so on, which also has routing. My question now is: When to use "client-side routing" or "server-side routing"? How is it "decided" whether routing is already performed on the client side or whether the request is first sent to the web server? I have a particularly hard time imagining this because the

Describe the page rendering process in a browser?

亡梦爱人 提交于 2019-11-29 18:52:55
First of all, I am not interested in the entire request-response process as addressed by this question What is the complete process from entering a url to the browser's address bar to get the rendered page in browser? I want to know what goes on inside a browser, once it receives the html response from the server. The intent behind asking this question is to understand the inner details of client side scripting. Also it would be beneficial if you can explain in abstract concepts what a web browser comprises of. You may call them as CSS engine, javascript engine etc. The goal is to precisely

custom validator MVC + validation client side

十年热恋 提交于 2019-11-29 17:14:39
I create a custom validateur in MVC 4: public class FirstNameValidator : ValidationAttribute { private IRegistrationConfiguration _registrationConfiguration; public string Category { get; set; } public bool IsLocal { get; set; } public FirstNameValidator() { _registrationConfiguration = DependencyResolver.Current.GetService<IRegistrationConfiguration>(); } public FirstNameValidator(IRegistrationConfiguration registrationConfiguration) { _registrationConfiguration = registrationConfiguration; } protected override ValidationResult IsValid(object value, ValidationContext validationContext) { if

Serverside and clientside javascript

こ雲淡風輕ζ 提交于 2019-11-29 16:56:25
Does serverside javascript exist, if yes, is it possible to clientside javascript to interact with serverside javascript? For example, is it possible for clientside javascript to request from the serverside javascript to return part of a json file which is stored on the server without downloading the whole json file? I understand that I can do this with other serverside languages like aspx, php etc etc, but wanted to know if serverside javascript exists and if it can do something similar with json files? Does serverside javascript exist http://en.wikipedia.org/wiki/Comparison_of_server-side

Determine IP# of domain from client browser

扶醉桌前 提交于 2019-11-29 15:44:01
Greetings all, I would very much like to determine the IP# of a domain from client script. It's for use in a testing application to determine whether or not a certain domain is set to a QA address as opposed to the address live on the . The testing machine will have it's host file set to resolve a domain to the QA address. Pinging from the server won't help since the server is getting the public DNS address. Is this possible in JavaScript? Maybe a Flash could do the trick? Have a look at Smart IP Api . Seems to do everything you're looking for and has some simple tutorials. 来源: https:/

Get LAN client machine name in servlet based web application

こ雲淡風輕ζ 提交于 2019-11-29 12:50:54
I have spring MVC application, that runs in LAN. In there client machines IP addresses are changing time to time. Therefore I want to get client machines names(Their machine name is fixed ),because I want to get client machine's details without creating log in. Is that possible to get client machine's name?? if it's possible how?? Or is there any other way to get that user details Edit: codes I have tried so far In HttpServlet public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException { String hostname = request.getRemoteUser(); //this gives null String