user-experience

Browser as a Design Tool - Change colors, Save Them? [closed]

℡╲_俬逩灬. 提交于 2019-12-01 03:02:39
I'm a web developer/designer, and I need my code-illiterate clients to be able to easily mess with the colors of particular elements, save these CSS changes, and send them to me. I'll be guiding them over the phone, but I still need it to be easier than expecting them to locate CSS selectors in a theme sheet, and write hex codes. I need an in-browser inspector that can allow a code-illiterate individual to: Easily manipulate colors on a web page's elements, with a GUI color-picker. (+) Chrome does this perfectly. It's exactly what I want. (-) Firefox's otherwise gorgeous inspector seems not to

CodeIgniter and the Model-View-Controller – your experience / your meaning?

╄→尐↘猪︶ㄣ 提交于 2019-12-01 01:57:41
I have a “simple” question about the principle from the CodeIgniter MVC. If I take a look in the manual from CI (Models) I see for example this: function insert_entry() { $this->title = $_POST['title']; // please read the below note $this->content = $_POST['content']; $this->date = time(); $this->db->insert('entries', $this); } Well, ok – to put in data this way is bad I know :) but also if we user “$this->input->post()” … for me it doesn’t look better. Isn’t it better to handle the data in the controller before I use a function from a model? Maybe the model part looks so: function insert

Browser as a Design Tool - Change colors, Save Them? [closed]

不问归期 提交于 2019-11-30 22:56:40
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I'm a web developer/designer, and I need my code-illiterate clients to be able to easily mess with the colors of particular elements, save these CSS changes, and send them to me. I'll be guiding them over the phone, but I still need it to be easier than expecting them to locate CSS selectors in a theme sheet, and

CodeIgniter and the Model-View-Controller – your experience / your meaning?

孤街浪徒 提交于 2019-11-30 21:15:32
问题 I have a “simple” question about the principle from the CodeIgniter MVC. If I take a look in the manual from CI (Models) I see for example this: function insert_entry() { $this->title = $_POST['title']; // please read the below note $this->content = $_POST['content']; $this->date = time(); $this->db->insert('entries', $this); } Well, ok – to put in data this way is bad I know :) but also if we user “$this->input->post()” … for me it doesn’t look better. Isn’t it better to handle the data in

Issue with click-drag-select in text input field also scrolls parent element, webkit bug or feature?

ぃ、小莉子 提交于 2019-11-30 18:23:40
There's a weird behavior that I've been experiencing with only the webkit browsers since last year, and it is driving me nuts. I've tried doing searches on this, but I don't seem to be able to hit the keywords relating to this issue. I have a html structure as below: <div style="border: 1px solid #000; width:200px;height:200px; overflow:hidden;position:relative"> <div style="width:200px;position:absolute"> <p>long line</p> <p><input type="text" value=""/></p> <p>long line</p> </div> </div>​ You can visit the live example in the jdfiddle link: jsfiddle For me, using Chrome(18), when one clicks

Request Camera Permission Dialog Priming (Prime Permissions) in iOS

前提是你 提交于 2019-11-30 12:55:39
问题 What is the most effective way to prompt a User to provide access to the Camera (or other feature), while ensuring the best experience? When accessing the Camera, iOS must ask the Customer permission to allow access. As we all know, if the Customer says "No" but then changes their mind, there is no way to reverse this decision from within your App. They must go to Settings and follow a number of steps to re-enable access, namely: Settings -> Privacy -> Camera -> [Your App] -> turn switch on

Evaluate whether a HEX value is dark or light

偶尔善良 提交于 2019-11-30 12:49:38
问题 The user of the ASP.NET web app I'm building can select colors for use on some of the elements (e.g. buttons/titles) to facilitate some degree of personalisation. The problem is that by default the text on those layers is black...what I'm trying to do is to evaluate the HEX value chosen by the user through a picker, and switch between black and white text programmatically - this can be in JavaScript, or in code behind. The crux of the problem is that I'm just not sure how to evaluate the HEX

How to make browser back and forward work on a single page layout?

痞子三分冷 提交于 2019-11-30 10:15:43
As a follow-up question to: Most efficient way to do a horizontal sliding layout , is it possible to make the browser's back and forward button work when using a single page layout like that? Christofer Eliasson You can use the history API in HTML5 to achieve that. Here are a few resources to get you started: http://diveintohtml5.info/history.html http://html5demos.com/history https://developer.mozilla.org/en-US/docs/DOM/Manipulating_the_browser_history To get support in older browsers as well, there are JavaScript libraries that enable that: https://github.com/browserstate/History.js/

How to implement a blinking label on a form

醉酒当歌 提交于 2019-11-30 08:32:39
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 number of animations per second and implement fade out effect to external control background color. You

PHP: Returning a user to their original page after login

我与影子孤独终老i 提交于 2019-11-30 07:56:24
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. The problem with this is that HTTP_REFERER is unreliable at best. This is set by the user agent. Not