to see the unexpected page shift in action go to http://lawlocaust.net/gamerverse/ while hovering over the banner u can use the arrow keys to navigate the UI and the page will shift in firefox
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
I am trying to trap the shift+click event of a DIV. Works in IE and Chrome but not in Firefox. Purpose of the code: The DIV provides a hidden link (no decoration) for an editor who wants to edit content. The DIV ignores a simple click (meaning a click without a combination of the shift key) to avoid accidental access to the casual surfer. Here is the logic of the code: DIV is clicked. call function to check for the shift key being depressed if the shift key were depressed during the "click", initiate access. If the shift key were not depressed, ignore the "click" Here is the HTML code:
I am experiencing unexpected behavior using $(document).ready() on a page where I inject jQuery after the page has loaded and then attach listeners to the ready event. The ready() event is never called using Firefox and Safari however it is called using IE. Is this a jQuery bug? Is it working as designed?
I would like to use shift button to select multiple rows in table but there seems to be problem with it. I have table rows inside the <a> tag so I can drag them and drop like in windows explorer. I would like to mimic also explorer style of selecting multiple rows using the shift button. But when i click on one of my rows using shift button then rows are selected but new windows is also opened - and I would like to prevent this kind of action. Is it possible?
I'd like to detect the shift key when a button is "clicked" in Firefox/Mozilla. If the button is clicked with the mouse, no problem. However, if the onclick event is keyboard originated, then my method is not working. Same thing for SELECT elements.
The simple web page below shows the issue. Click with the mouse while holding down the shift key, and the Shift key's status registers. However, use Shift+Alt+o, or either (while the button has focus) Shift+Space or Shift+Enter to kick off the onClick event and the shift key is not detected. Works fine with IE 6 on my Win XP Pro. Code:
I started playing around with this keyevent thing and said, hey this works pretty good, I want to add keyboard shortcuts for everything.
I thought I had come up with a solid system, based on some other threads I read in this forum. It works great in Firefox, but IE seems to handle the Control key differently, also IE seems to ignore the arrows. Code:
What I want to do is to create a function which shifts a table column one position to left. Therefore I'am trying to select all relevant td and th elements. My problem is to rearange the elements. Within the both each calls, see the code below, $(this).get(i) would result the td respectively the th element where the before function is undefined. But how to insert the elements correctly or is this the wrong way?
$.fn.shiftLeft = function(col) { // Make sure col has value if(!col){ col = 1; } var trsToMove = $('tr td:nth-child('+col+')',this);
I'm working on controlling a windows media player I'm trying to figure out how to control it with keys like CTRL+SHIFT+P to play it. The problem is that I don't know how to capture all three at the same time.
I'm ONLY supporting IE because that's what the client only want's supported. I have been reading through the forums but nothing about capturing both CTRL+another key or SHIFT+another key.
This is a proof of concept question ... that I've been unable to prove. Ultimate goal to is allow one button to have different actions with the Shift, Control or Alt key pressed for a link "<a...>" or a button ("<input type='button'" or "<button>.") click. The following appears to work in FF and MSIE on PC (with some side-effects), but not at all on a iMac using FF or Safari.
The display in the textarea shows that I can detect when the Shift, Control or Alt keys are pressed and an event is created with a mouse click. With a left mouseClick, the display shows
I am at my wits end! I've added DD belated PNG to nearly every site I've ever made with little or no problems, suddenly it's being super-extra mean to me. It will only load PNGs correctly if you clear your cache when refreshing the page (shift + refresh). Check it out at the link below (obfuscated so google doesn't index the site):
[Code]...
NOTE: Just so everyone's aware, this is an IE6 only script that is supposed to fix PNG transparencies, so you'll need to look at it in IE6 to see the problems.
Considering the following list how do I get a reference to the ul just below the li with id products? nextSibling gives me a reference to the #text# node inside the li tag?
I am having a problem with internet explorer 7. I am working on a site that maps google maps to show .gpx files, and it is working fine in IE8, firefox (v2 and 3) and safari. However in IE 7 i am getting the following error when running the following line
Code JavaScript: $(document).ready(function() { initialize(); $("#player_controls a img").tooltip(); }); Line: 45 Error: Expected Identifier, string or number;
The funny thing is that initialize is a clearly and previously defined function, I had some problems before with IE due to variables being out of scope, so I am afraid this may be something related, but I am not very familiar with IE inner workings so,
JSON.parse: unexpected end of dataat line var data = JSON.parse(json);Is the syntax correct?the code used is:For the code below i am getting this error :
In the below, I would expect this to return the number of milliseconds since the epoch. Instead, it's generating a massive negative number. I presume I've gone wrong with the set[Blah] methods.
javascript Code:
var date_text = '2009-03-06 12:00:00'; var d_tried = new Date(); d_tried.setYear(parseInt(date_text.substr(0,3))); d_tried.setMonth(parseInt(date_text.substr(5,6))); d_tried.setDate(parseInt(date_text.substr(8,9)));
I am trying to set a function to be called on the change event of some textboxes with the classes "vii_year1", "vii_year2", "vii_year3", and "vii_year4".
Here is the code:
$(document).ready( function() { for (var i = 1; i <= 4; i++) { var year = i + '';
I'm using jquery-1.3.2.min.js and everything works perfectly in browsers other than Explorer... It's not liking this part:
this.appendChild(E) function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})} ... } I get this error:Unexpected call to method or property access. jquery-1.3.2.min.js, line 12 character 2305
This error ONLY occurs in IE. "Unexpected call to method or property access." I pinpointed it to this line: o.appendChild(e);
The full function is: function aO(d, t, src, p, id ){ alert('aO has begun.'); var o, e, i; if (!ie){ o = cE('object');o.data = src; } else { o = cE('embed');o.src = src; } .....
I have a button in my site which when clicked, will set the current page to be the home page for the user. I use the following code:
var hiddenLink = document.getElementById('dummyLink'); hiddenLink.style.behavior='url(#default#homepage)' hiddenLink.setHomePage('http://www.123.com'); somewhere in my <body>, I have the following link definition:
<a href="#" id="'dummyLink'" style="display:none"></a> Now, this solution works fine for IE But I need to have a working solution for Firefox and Opera too. Does anyone know how to solve this in these 2 browers?