user-experience

PHP: Returning a user to their original page after login

六月ゝ 毕业季﹏ 提交于 2019-12-18 12:38:51
问题 Are there any 'best practices' concerning how one should return a user to their original page after logging in to your website, specifically in PHP? e.g. if I'm viewing a StackOverflow question while not logged in, how would you ensure that I return to this question if I logged in? From my research, it seems a lot of advice centers around the $_SERVER['HTTP_REFERER'] variable. Basically, you take note of the referer and store it in the session, then redirect back to that page when you're done

How long should you debounce text input

点点圈 提交于 2019-12-17 23:11:29
问题 Lets say we have a simple example as below. <input id="filter" type="text" /> <script> function reload() { // get data via ajax } $('#filter').change($.debounce(250,reload)); </script> What we're doing is introducing a small delay so that we reduce the number of calls to reload whilst the user is typing text into the input. Now, I realise that this will depend on a case by case basis but is there an accepted wisdom of how long the debounce delay should be, given an average (or maybe that

How to get picture to align with the left set of paragraphs/go to right of?

烈酒焚心 提交于 2019-12-13 19:16:15
问题 Here is a prototype of what I am trying to implement Here is what I currently have : JsFiddle I am trying to get the picture of the guy on the laptop to align correctly with and to the right of the paragraph components - Business Traveller, Office Supply Purchases, etc... What I've tried is using Align attribute, changing my img src code to <img id="laptop" align="middle" src="zoom-39988392-3.JPG" height = "90" width ="90" /> but that didn't have any effect. I also tried Float but that messed

Form based on Product Types

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 08:49:17
问题 If you have a seller accounts at amazon or ever happened to look at their product upload form, I am sure you must have noticed that for each product type you wish to upload they have a slightly different form. If you want to sell Table Fans, you are presented with this form and in case you wish to sell shirts, this is what is presented you. both forms are different yet do the same thing, i.e. upload products (which has some common and few specific attributes) What intrigues me about this

How to slow down installation progress bar in WiX Toolset installer?

一曲冷凌霜 提交于 2019-12-13 04:39:25
问题 Well, i am not joking... my client wants me to slow down the installation process. The argumentation is clear: if the customers pay as much as a middle-class car for a software, they expect a bit more than 3 sec. installation process... Any ideas? 回答1: One technique I've used for testing was to write a custom action DLL which alternately slept and incremented the progress bar. And then it ran it backwards, because I was testing external UIs, but you could skip that part. See MsiProcessMessage

difference between toggle button and switch

大城市里の小女人 提交于 2019-12-12 18:53:48
问题 What is the difference between a toggle button and switch? As they provide same feature, what is the specific use case to use a toggle button or a switch? Toggle button: Switch: 回答1: This is more of a User Experience question than just Coding. Here is my answer: The description of the control says it: Toggle is a button : sap.m.ToggleButton whereas switch is a user input. sap.m.Switch However, the main difference lies in the User Experience and usage. Here is what the Fiori Guideline says:

Spoof or disable the Page Visibility API

妖精的绣舞 提交于 2019-12-12 07:50:52
问题 The Page Visibility API starts to be commonly used to pause mandatory video advertisements when the tab is not in focus. This means you need to be watching the ad, if you switch tab or even have another app or menu covering the browser the ad will pause and prevent access to the content. It is extremely annoying but I couldn't find a way to circumvent this. Is there any way to disable or spoof the API, so one can do something else while the ad is playing? 回答1: I wrote you an extension that

How to implement a blinking label on a form

旧时模样 提交于 2019-12-12 07:13:26
问题 I have a form that displays queue of messages and number this messages can be changed. Really I want to blink label (queue length) when the number of messages were increased to improve form usability. Should I implement custom control and use additional thread or timer to change color of label? Has anybody implemented so functionality? What is the best solution (less resources and less performance degradation) to implement so behaviour? SOLUTION: Form's component with timer that can restrict

Create a window that always remains on [duplicate]

佐手、 提交于 2019-12-12 05:14:47
问题 This question already has an answer here : Closed 6 years ago . Possible Duplicate: Popup window always on top In my web application, there is a button that opens a score chart. The chart is opened as a new window, so that the user can put it adjacent to the main window: javascript:window.open('chart',..., 'left=50,top=50,toolbar=no,location=no,status=no,directories=no,dependent=yes,menubar=no, width=400,height=600,scrollbars=yes') However, when the user makes his main window full-screen, and

What are good ways to present selectable timezones to the user?

人走茶凉 提交于 2019-12-12 03:58:35
问题 Is it really necessary to allow the user to pick from any timezone returned by PHP's timezone_identifiers_list()? There are a tremendous amount of timezones, and that HTML dropdown menu is pretty laggy on some systems due to how many options there are. I understand that I can generate common US timezones by hand such as Pacific, Eastern, Central, etc.. but is there a list of commonly-used international timezones? By common, I mean where if I were to use that list, then it would capture 99.9%