Shift Button
Jul 23, 2005
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?
View 1 Replies
ADVERTISEMENT
Jul 20, 2005
I need to convert an UTF-8 string to Shift-JIS in a web page (preferably using JavaScript).
View 4 Replies
View Related
Mar 23, 2006
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:
View 7 Replies
View Related
Jul 7, 2005
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:
View 3 Replies
View Related
Jul 19, 2009
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);
[Code].....
View 1 Replies
View Related
Nov 5, 2009
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">
[code]....
View 6 Replies
View Related
Nov 27, 2010
I developed this under Safari on my mac. I have only been scripting for about 1.5 days so I am not the best with debugging. What would cause this?
<html>
<head>
<script ="Javascript>
// Setting vars
var winW = screen.width
var winH = screen.height;
var winLW = (winW / 2) - 240
[Code]....
View 3 Replies
View Related
Oct 27, 2006
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.
View 2 Replies
View Related
Oct 14, 2010
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
[Code]...
View 2 Replies
View Related
Oct 21, 2011
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.
View 1 Replies
View Related
Feb 15, 2012
would like to note the following case:Ive run the following test numerous timesie:
<html>
<body>
<script type="text/javascript">
[code]....
View 2 Replies
View Related
Mar 24, 2009
i am trying to build a function that takes into account a click event and SHIFT key press event on a particular element.
so for example, i want to do something only when i click a box WHILE pressing the SHIFT key.
how do i program this using jquery?
View 4 Replies
View Related
Aug 13, 2009
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:
[Code]...
View 2 Replies
View Related
Jan 3, 2007
Is there a way in which we can disable the history scroll functionality in IE? Basically disable the SHIFT key + Mouse Scroll combination.
View 1 Replies
View Related
Nov 19, 2007
I was wondering what code I would use to implement a function while the user holds either shift or control while clicking on an element.
View 9 Replies
View Related
Jul 13, 2010
I am trying to produce a web form to allow wedding guests to RSVP. The form allows them to enter a name and select from a radio button whether they will be attending or not. If they select the "yes" radio button then a further pair of radio buttons are displayed for their meal preference.
They can then click a submit button or they can click another button to add another line for another guest which operates in exactly the same way. I've almost got this working, but it seems that the checkbox change handler is lost for the current guest when a new guest is added and the checkbox value is reset. I've got a feeling I'm doing something stupid but can't for the life of me figure out what.
Code (source file (renamed to .txt) also attached as I'm not sure the pasted code is too clear):
View 2 Replies
View Related
Feb 13, 2009
I have it set up so that there are three frames (frames and the use of javascript are encourage for practice) "bar" on the left with navigational options, "main" in the center where the body of the drill is presented, and "feedback" along the bottom where the feedback will appear.
My issue is that I have everything working except the form! I'm not sure how to make it so that upon clicking the submit button the feedback is presented in the "feedback" frame. This was suggested to me but isn't working, maybe I have a mistake somewhere? Or is there another way I can do this?
<html>
<head>
<script type="text/javascript">
function CheckCheckbox() {
[Code]....
View 4 Replies
View Related
Nov 16, 2011
What happens is that when I click on a button, a random string from the RandomString variable appears below the button. e.g I click on the button and it displays 'AAB' and then if I click on the button again it may display 'AAE' and etc.
The problem is that sometimes it displays 'undefined'. I don't wanit 'undefined' to appear but why does it sometimes display 'undefined' rather than a Random string.
Below is the code:
View 7 Replies
View Related
Jun 3, 2011
I have this as my Dialog Javascript
$( "#dialog-form<?php echo $diagnumber; ?>" ).dialog({
autoOpen: false,
height: 300,
[code]....
View 2 Replies
View Related
Jun 21, 2010
i know how to enable the button when one or the other is selected, how do i check if both are selected?
View 2 Replies
View Related
May 22, 2010
The main page is called Aj.html. In the 'head' I have mostly some functions to support Ajax call to server PHP (to just 'echo' something so I could see Ajax work). In the 'body', there is a little javascript and a form 'button'. When I click the button, an 'onclick' event causes a function to do the last step or two of the Ajax stuff... and the server PHP element is called... and then my ajax message handler back in Aj.html gets control to just send an alert... and that was the initial experiment ... and it was just so I could see how Ajax works.
Well - then I noticed that the 'button' is only clickable ONE time... And I set about to try to learn whatever I needed to learn to make that button be one that could be used to fire off the Ajax stuff multiple times... But I couldn't get that to work. So, I tried some code to remove the onclick event (during the ajax messaging handling logic in Aj.html) - and then add another onclick event to that same button... but that didn't work. Then, I tried to delete my button altogether - and insert a new button with it's own 'onclick' (which also would fire the ajax stuff) - but that didn't work, either....
Anyway... Now, my biggest curiosity (for the moment, at least) is why I can't dynamically add a button that has the needed onclick stuff to also fire the Ajax stuff... So, I guess I'd like to solve that right now.
What's currently happening is this: when I'm in the part of the code that is defining the dynamic button - and just before that button is added to the form, I define the 'onclick' that is supposed to be a part of that new button... BUT - when that assignment is made, it is almost like javascript is thinking that the request is actually in insert another onclick for the in-progress 'click'... because the new onclick is immediately processed at that point (I don't even make it to the next statement...just boom... the new onclick function is executed).
Also - the new dynamically added button DOES get added okay... but when I click that newly added button, it doesn't fire the Ajax stuff it's supposed to fire (via the onclick for this added button) - instead, it just causes what appears to be like a page refresh ... because the regular button reappears at that point (and then the Ajax stuff will again work off of that 'regular' button).
I'm including the whole script here.
Code:
View 10 Replies
View Related
May 19, 2009
I have a message system that I want to prevent double posting. So when a user sends a message i would like to disable the button. But its done using AJAX and will load without much time. But enough to cause double clicking. So now the button needs to be enabled once Text is put in the Form Field.
View 2 Replies
View Related
Oct 2, 2011
After doing some tutorials, I am not sure if this is a bug, or perhaps someone can give me a better explination why it is working the way it is.I am using Visual Studio 2010 combined in a Master Page. In my aspx page, I have the following code:
<script type="text/javascript">
$(document).ready(function () {
$('input:text:first').focus();
[code]....
View 1 Replies
View Related
Dec 8, 2010
I use DatePicker to select an expiration date for an item. It is triggered by a image button, I don't want to show a textbox for this field, just an icon. I want to add a button inside the DatePicker (in the button panel) for 'Cancel Expiration Date'.
View 1 Replies
View Related
Nov 9, 2010
I have been looking at this for ages, so apologies in advance if I have become so bleary eyed I can't see something simple.I use php to create buttons based on values pulled for a table. The problem I have is when you click on the first button the javascript function works great, when you click on the next button you get the same output even though it should be different results. I am working in ff and I can see on my firebug console that the javascript function is being called, but it is not passing the new value of the second or third button, it just keeps repassing the value of the first button. So not entirely sure where I am going wrong here.My page is:
<script type="text/javascript">
function loadXMLDoc2(File,ID,Msg){
if (window.XMLHttpRequest) {[code].....
And getShow.php produces a table with a list of product images, names and prices, based on theme.
View 2 Replies
View Related
Jul 23, 2005
I am wanting to fire the onClick event of button1 by pressing button2.
Does anyone have a clue if this is even posible?
View 3 Replies
View Related