browser

CodeIgniter is generating multiple sessions in the database. Why?

烂漫一生 提交于 2019-12-29 09:10:03
问题 I have a site which does a few ajax calls on page load. For some reason, CodeIgnitor is inserting 4 sessions (I'm assuming one for each ajax call) as you load the page. I'm storing the sessions in the database. I'm pretty sure there should only be one session per browser. Firefox seems to generate only one; other browsers seem to create a whole bunch of sessions. Multiple sessions for the same user are giving me some serious authentication problems. Why is this happening? How can I stop it?

What is the number and size of cookies allowed by major browsers?

筅森魡賤 提交于 2019-12-29 08:33:32
问题 Just wondering what is the size and number of cookies allowed by IE, FF, Chrome, and Safari. What is the number allowed per host and the size of each cookie? Also what would happen if you try to store cookie larger than the max size using Javascript? 回答1: It varies from browser to browser. The biggest limitation is IE6 which can only accept 20 domain cookies (all other modern browsers [FF3+, IE7/8, Safair 4/5, Chrome] can accept much much more). Once IE6 reaches it's 20 cookie limit, it

What's the best way to test cross-browser compatibility?

折月煮酒 提交于 2019-12-29 08:16:33
问题 Since the portable versions of Internet Explorer are no longer supported (and never fully worked) I'm trying to find a way to test sites in a number of different browsers. The lag on something like browsershots.org is far too high to be practical, plus you can't test functionality. I'm looking at using VMWare images of Windows XP with different versions of browsers installed, but it seems like a right pain. Is there any other method of testing CSS compatibility on browsers? 回答1: If running

Launch an exe from browser (Windows)

放肆的年华 提交于 2019-12-29 08:12:50
问题 I need to launch an installed application from browser (not just IE). From this thread I understood that I need to implement asynchronous pluggable protocols and registering an application to uri scheme. I would like to check if there are any other ways of implementing it? In my scenario I am expected to launch an existing application from the client machine. So can I register this application to uri scheme and use it. My only concern is in both the scenarios(or at least the second scenario)

Launch an exe from browser (Windows)

こ雲淡風輕ζ 提交于 2019-12-29 08:12:48
问题 I need to launch an installed application from browser (not just IE). From this thread I understood that I need to implement asynchronous pluggable protocols and registering an application to uri scheme. I would like to check if there are any other ways of implementing it? In my scenario I am expected to launch an existing application from the client machine. So can I register this application to uri scheme and use it. My only concern is in both the scenarios(or at least the second scenario)

Launch an exe from browser (Windows)

空扰寡人 提交于 2019-12-29 08:12:01
问题 I need to launch an installed application from browser (not just IE). From this thread I understood that I need to implement asynchronous pluggable protocols and registering an application to uri scheme. I would like to check if there are any other ways of implementing it? In my scenario I am expected to launch an existing application from the client machine. So can I register this application to uri scheme and use it. My only concern is in both the scenarios(or at least the second scenario)

JavaScript: Change browser window status message

天涯浪子 提交于 2019-12-29 07:56:13
问题 It was once possible to change the message a browser shows in the status bar at the bottom of the window. This functionality has been disabled in newer browser versions due to abuse. <script type="text/javascript"> window.status = 'hello world'; </script> Is there still any way to achieve this (consider jQuery available)? I think I still see pages around that change the status message, but they might use Flash or Java to change the window status. 回答1: There are two things you can do without

Should one write window.X when referring to a built-in global property X in the (desktop) browser?

谁说胖子不能爱 提交于 2019-12-29 07:38:20
问题 So, there are dozens of built-in global properties in the (desktop) browser. For instance: document undefined parseInt JSON location alert setTimout etc. When referring to those properties, should one explicitly note them as global properties by prefixing their name with window. ? So, for instance: var wrap = window.document.getElementById('wrap'); and window.setTimeout(loop, 100); and var x = window.parseInt(input.value, 10); I think there are three answers to this question: Yes, you should

What's the simplest way to decrement a date in Javascript by 1 day?

陌路散爱 提交于 2019-12-29 06:38:08
问题 I need to decrement a Javascript date by 1 day, so that it rolls back across months/years correctly. That is, if I have a date of 'Today', I want to get the date for 'Yesterday'. It always seems to take more code than necessary when I do this, so I'm wondering if there's any simpler way. What's the simplest way of doing this? [Edit: Just to avoid confusion in an answer below, this is a JavaScript question, not a Java one.] 回答1: var d = new Date(); d.setDate(d.getDate() - 1); console.log(d);

Is JavaScript single threaded? If not, how do I get synchronized access to shared data?

一曲冷凌霜 提交于 2019-12-29 06:21:11
问题 I have a web page with DIV s with a mouseover handler that is intended to show a pop-up information bubble. I don't want more than one info bubble to be visible at a time. But when the user moves the mouse rapidly over two items, I sometimes get two bubbles. This should not happen, because the code for showing a pop-up cancels the previous pop-up. If this were a multi-threaded system then the problem would be obvious: there are two threads trying to show a pop-up, and they both cancel