client-side

Android: Using server-side when working with Parse

核能气质少年 提交于 2019-11-28 08:50:51
Me and my friend are working on an app., and we wish to use Parse.com as our data base from which we can retrieve info. We can't decide what is the best way to access the data on Parse. For the sake of the example, our app. (i.e. client side) needs something stored on the Parse data base (say some number) - should it directly run the query using the Parse API, or should it make a request to a server side, let it retrieve that number from Parse, and send it back to the client? We know there's no definite answer, but we couldn't find answer regarding this specific situation. We read this post:

Does the WCF REST WebChannelFactory client support REST services that use redirects?

前提是你 提交于 2019-11-28 08:33:08
问题 If you have a RESTful web service that uses HTTP 301 redirects to send requests like: http://server/customers/?name=John to the url http://server/customers/324 (as created by a service similar to the one in this question.) Can these types of services be consumed with the WebChannelFactory and a ServiceContract? If so, how? 来源: https://stackoverflow.com/questions/1033142/does-the-wcf-rest-webchannelfactory-client-support-rest-services-that-use-redire

Using client side XSLT transformations in the HTML5 era

旧时模样 提交于 2019-11-28 08:13:52
问题 Can anyone help regarding the availability of client-side XSLT in mobile HTML5 browsers? caniuse.com has nothing on it. Is XSLT actually standardized across current mobile browsers? The HTML5 spec has nothing on XSLT which puts into question whether XML has a future (in light of the fact that there is JSONP but there is no "XMLP") 回答1: The XSLTProcessor API is part of the HTML5 scripting spec: Interaction of script elements and XSLT When an XSLT transformation program is triggered by an

Exploiting JavaScript's eval() method

旧城冷巷雨未停 提交于 2019-11-28 07:47:27
Many developers believe that JavaScript's eval() method should be avoided. This idea makes sense from a design perspective. It is often used as an ugly workaround when a simpler, better option is available. However, I do not understand the concerns about security vulnerabilities. Certainly, running eval() gives the hacker the ability to run any JavaScript code that you can run. But can't they do this anyway? In Chrome, at least, the Developer Tools allow the end-user to run their own JavaScript. How is eval() more dangerous than the Developer Tools? As B-Con mentioned, the attacker is not the

How to store persistent data client side

我们两清 提交于 2019-11-28 07:44:51
I need to programmatically store data on the client side without having to transfer the data from the server on every page load. I considered generating a dynamic JavaScript file with the needed data for the current session of the user and make sure it is cached, but that seems really messy and there are a few drawbacks I can think of to such an approach. How can I go about storing persistent data on the client side? You may store data in window.name , which can hold up to 2MB of data (!). /* on page 1 */ window.name = "Bla bla bla"; /* on page 2 */ alert(window.name); // alerts "Bla bla bla"

Can you use Java Reflection api in GWT client

房东的猫 提交于 2019-11-28 06:50:16
IS it possible to use the java reflection api in GWT client side? I want to use reflections to find the value of a property on a Javabean. Is this possible? I've been there and the solution indeed is to use Deferred Binding and Generators. You can see a use of Generators to overcome the lack of Reflection in GWT client here: http://jpereira.eu/2011/01/30/wheres-my-java-reflection/ Hope it helps. Adrian Aslau You can use the GWT Generators functionality that allows you to generate code during the GWT compile phase. Your bean, that you want to introspect, can extend a class that has a method

Java WebDAV client side library

我的未来我决定 提交于 2019-11-28 06:49:35
What Java WebDAV client side library could you recommend? Julian Reschke Have you looked at Jackrabbit's ? I've recently created one that is quite easy to use: https://github.com/lookfirst/sardine Brad at Kademi OK I'm a bit late, but you really should check out the milton webdav server project. Its open source (apache2), mature and is actively maintained. Its designed to allow any backend implementation to be hooked up to webdav, and many users have reported implementing it in under 4 hours for existing applications. It supports all the usual webdav stuff like locking, custom properties,

Get LAN client machine name in servlet based web application

≡放荡痞女 提交于 2019-11-28 06:07:38
问题 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

How can you use php in a javascript function [duplicate]

老子叫甜甜 提交于 2019-11-28 05:01:47
This question already has an answer here: What is the difference between client-side and server-side programming? 5 answers <html> <?php $num = 1; echo $num; ?> <input type="button" name="lol" value="Click to increment" onclick="Inc()" /> <br> <script> function Inc() { <?php $num = 2; echo $num; ?> } </script> </html> This is what i have so far, not working though, i think i need to use ajax or something but i have no idea what to do. Thanks You can't run PHP code with Javascript. When the user recieves the page, the server will have evaluated and run all PHP code, and taken it out. So for

Which C# SOAP Client Library is easiest to use?

被刻印的时光 ゝ 提交于 2019-11-28 05:00:15
问题 I would like to connect to a SOAP web service using C#. Before I jump right in, trying anything Google throws at me I would like to ask what is the cleanest and best way to do it where most of the work is done for me. I would like a high level method, where I give it a WSDL and it will basically handle a lot of things for me. I of course don't want to have to do any of the XML, except to see what it is doing to debug. What is the nicest fanciest library/method that Microsoft has for doing