client-side

Java WebDAV client side library

江枫思渺然 提交于 2019-11-27 05:42:16
问题 What Java WebDAV client side library could you recommend? 回答1: Have you looked at Jackrabbit's? 回答2: I've recently created one that is quite easy to use: https://github.com/lookfirst/sardine 回答3: 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

What client-side web scripting languages are there other than JavaScript and VBScript?

天大地大妈咪最大 提交于 2019-11-27 04:51:33
How many client-side scripting language implementations did you see except JavaScript and VBScript? Like: type="text/C++Script" , text/CSharpScript , text/oberonScript , etc. How can I learn if my browser supports those languages? The only languages I have ever seen supported by web browsers in <script> elements are: JavaScript / JScript (which is ubiquitous) VBScript (IE 10 and lower only) PerlScript (IE with a plugin from ActiveState only) Dart (in a nonstandard build of Chromium ) which is not intended for production use. The HTML 4 specification gives examples of Tcl, but I've never heard

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

耗尽温柔 提交于 2019-11-27 04:19:13
问题 This question already has answers here : What is the difference between client-side and server-side programming? (5 answers) Closed 3 years ago . <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 回答1: You can't run PHP code

Reading line-by-line file in JavaScript on client side

偶尔善良 提交于 2019-11-27 04:14:29
问题 Could you please help me with following issue. Goal Read file on client side (in browser via JS and HTML5 classes) line by line, without loading whole file to memory. Scenario I'm working on web page which should parse files on client side. Currently, I'm reading file as it described in this article. HTML: <input type="file" id="files" name="files[]" /> JavaScript: $("#files").on('change', function(evt){ // creating FileReader var reader = new FileReader(); // assigning handler reader

Getting the text from a drop-down box

拈花ヽ惹草 提交于 2019-11-27 03:35:34
This gets the value of whatever is selected in my dropdown menu. document.getElementById('newSkill').value I cannot however find out what property to go after for the text that's currently displayed by the drop down menu. I tried "text" then looked at W3Schools but that didn't have the answer, does anybody here know? For those not sure, here's the HTML for a drop down box. <select name="newSkill" id="newSkill"> <option value="1">A skill</option> <option value="2">Another skill</option> <option value="3">Yet another skill</option> </select> Based on your example HTML code, here's one way to get

Pagination: Server Side or Client Side?

做~自己de王妃 提交于 2019-11-27 02:52:38
What is it best to handle pagination? Server side or doing it dynamically using javascript? I'm working on a project which is heavy on the ajax and pulling in data dynamically, so I've been working on a javascript pagination system that uses the dom - but I'm starting to think it would be better to handle it all server side. What are everyone's thoughts? The right answer depends on your priorities and the size of the data set to be paginated. Server side pagination is best for: Large data set Faster initial page load Accessibility for those not running javascript Client side pagination is best

Can you get a public Facebook page's feed using Graph API without asking a user to allow?

亡梦爱人 提交于 2019-11-27 02:38:28
I've never used Facebook's Graph API, or OAuth. I'm simply trying to get a public Facebook page's feed using the Graph API, but it requires an access token. I don't want to hassle the users to login and allow access to get their token. A Facebook app access token could be used to get a public feed, but I'm trying to do this entirely in Javascript, so I can't use the app secret to do so. I read somewhere that a Facebook app access token doesn't ever expire or change unless I manually reset the secret. Is this true? Would it be safe to just hard code in the Access Token? If not, is there some

Exploiting JavaScript's eval() method

一曲冷凌霜 提交于 2019-11-27 02:02:09
问题 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

How to store persistent data client side

爷,独闯天下 提交于 2019-11-27 01:40:41
问题 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? 回答1: You may store data in window.name , which can hold up to 2MB of data (!

Can you use Java Reflection api in GWT client

佐手、 提交于 2019-11-27 01:31:34
问题 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? 回答1: 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. 回答2: You can use the GWT Generators functionality that allows you to generate code during the