client-side

OpenId on Android

梦想与她 提交于 2020-01-12 18:59:49
问题 I'd like to give my users the ability to log-in my Android app using their OpenId (have a text field like StackOverflow's and ask the user to enter his OpenId there). I've looked around a lot but could not find any libraries that allow me to implement Client-Side OpenId authentication on Android. Should I rather go for server side authentication - ie. authenticate through my own website and pass the control to the application once the authentication is done? Thanks, Abhinav 回答1: http://code

OpenId on Android

不羁岁月 提交于 2020-01-12 18:59:13
问题 I'd like to give my users the ability to log-in my Android app using their OpenId (have a text field like StackOverflow's and ask the user to enter his OpenId there). I've looked around a lot but could not find any libraries that allow me to implement Client-Side OpenId authentication on Android. Should I rather go for server side authentication - ie. authenticate through my own website and pass the control to the application once the authentication is done? Thanks, Abhinav 回答1: http://code

A way to create random-noise background image (png) with javascript?

女生的网名这么多〃 提交于 2020-01-12 05:32:04
问题 The new layout of YouTube added a background random-noise which I like very much, having seen almost exactely the same effect on other sites, so I plan to use the same technique in my webpage prototypes, or at least have this "trick" in my toolbox for future use. The image is like this (taken from http://g.raphaeljs.com/barchart.html): Now Youtube accomplishes the (embarrassingly identical) same effect by embedding the image in source code: (on Youtube main page, right click background to

PHP: Let user download purchased file ONLY

混江龙づ霸主 提交于 2020-01-12 03:53:10
问题 I am forseeing a problem with allowing customers who purchase some content from me via PayPal. I will offer multiple, intangible goods. When someone completes their purchase for one of these goods, they will be redirected to a landing page - let's call it "thank_you.php" - which will automatically queue up a download and allow a link to queue up download in case it doesn't start automatically. This will be done by passing the unique item ID to the download page ("download.php"). This method

Generating client side certificates in browser and signing on server

拈花ヽ惹草 提交于 2020-01-09 04:46:46
问题 Is it possible to request generation of client keypair in browser and send the public key to the server CA to be signed transparently? Then installing the signed certificate in user's browser? Scenario: User opens https://examle.com/ web page, server identity is verified User requests an account creation Keypair is generated in user's browser and not revealed to server/CA Pubkey is send to server for signing Server signes the key and generates certificate Certificate is sent to client and

Server-side data available client-side

删除回忆录丶 提交于 2020-01-06 19:51:35
问题 What I want to do is make a dropdownlist choices change depending on other dropdownlists on the page. What I did is write all the possibilities in hidden textboxes. This works, but when there are a lot of choices, the page is slow. Is there a better way to do this? Thank you for your time 回答1: The best way to do this is with AJAX. In summary you will need to: write a server side script (ashx probably) that returns the relevant results for a drop down dependent on some variable use JavaScript

How to trim string in ClientValidationFunction

a 夏天 提交于 2020-01-06 06:38:47
问题 I am writing a client-side validation function for CustomValidator and I need to check length of entered string. But before, to counteract cheaters a little, I want to remove all leading and trailing spaces from the string. What is the easiest way to do it in this scenario? Thank you! 回答1: The easiest way is to call the ValidatorTrim(value) javascript function on your page. This function comes from the javascript that every asp.net validator includes when added to a page. But i don't think

How to trim string in ClientValidationFunction

ε祈祈猫儿з 提交于 2020-01-06 06:38:06
问题 I am writing a client-side validation function for CustomValidator and I need to check length of entered string. But before, to counteract cheaters a little, I want to remove all leading and trailing spaces from the string. What is the easiest way to do it in this scenario? Thank you! 回答1: The easiest way is to call the ValidatorTrim(value) javascript function on your page. This function comes from the javascript that every asp.net validator includes when added to a page. But i don't think

Headless browser that support Geolocation

谁都会走 提交于 2020-01-06 04:15:10
问题 Is there any headless browser that support geolocation? I know Phantomjs doesn't support that feature. If no, how programs that uses geolocation (prey project & lockit tight) work? I'm interested in client-side geolocation using WiFi positioning & triangulation. Can any moderator create a tag for WiPS (Wi-Fi Positioning System), if it's appropriate? 回答1: IP Geolocation using IP address done from server-side works for all headless browsers because it can retrieves user IP address instantly on

Write to a file without external JS libraries (pure Javascript) in a browser ?

ε祈祈猫儿з 提交于 2020-01-06 02:05:29
问题 Is it possible to write a string to a file (create the file if it doesn't exist) without any external Javascript libraries , purely with Javascript code ? I'm trying to implement a client side code that whenever it reaches a page (.ASPX) it writes few strings into a file (let's say output.txt ) and that's it . From everything I see over the internet , JavaScript is not allowed to write anything to the hard drive . Is that so ? no workarounds ? 回答1: As said in the comments, what you sound to