I need javascript to trigger the combination of ctrl + minus. Is it possible. I need this because the design of the webpage I'm working on is looking much better at 83 % zoom which couldn't be achieved by CSS zoom property in mozzila firefox.
I have the following link to bring up an alert with a figure in it based on the screen resolution. but instead of displaying a number 'NaN' is displayed.
<a href="javascript:alert('Your ideal estimated height is '+ screen.height*0.55-screen.height*0.2);" class="BodyLink">Click to calculate height </a>
But when I remove the part of the equation '-screen.height*0.2' a figure is displayed properly. Why doesnt it work when I have a minus in the equation. Im not experienced with javascript so excuse if this is a basic question..
I have a form with about 15 input boxes. I need a function that will run onChange in each input box. This function has to check if a number is - or +. If it is -, I need it to throw out an error.
I have here two inputs with class nbr. The initial values are set, and those values change programmatically over time. My list of inputs is a lot longer than this but I simplified. You can see the work in progress on [URL]. Just insert two random dates in page1 with the datepicker and the navigation will appear. At the end of a series of calculation I need to grab all inputs with positive numbers, and all inputs with negative numbers.I was thinking of selecting all fields with nbr class first, then use .filter() with a function
I've checked Google and searched the jQuery forum and didn't see anything. Is there a way to do the following as I'd like to use the same chain multiple times with with different selectors:
var chain = .attr('value', 'Search Digital Collections').css('color', '#E0E0E0');
I've just recently become enlightened by jQuery and would like to add it to my site, but I'm having a little trouble. I made this basic function: function showPanel(id) { var panel = $(".further_info." + id + ""); panel.slideToggle(); $(this).toggleClass("minus"); $(this).toggleClass("plus"); }
To give an example of its use: <a class="panel_control plus" onclick="showPanel(0);"></a> <div class="further_info 0"></div> The panel is displayed correctly, but the classname of the link isn't toggled between "plus" and "minus."
How to do this but still can't figure it out. I'm currently reading jQuery from novice to ninja but I'm no where close to a ninja. I have a div containing list items, a photo, and a plus/minus button at the bottom of the div. The list items are absolutely positioned behind the photo. When I click on the plus button I want it to change to minus and animate the photo 29px from the top revealing the list-items behind it. Then I want to click the minus button changing it back to plus and animating the photo back up to the top.
I'm trying to accomplish something very similar to what you see on Kyanmedia.com. Except their images animate down and up on hover. I want my image to animate down then up on click and toggle the plus/minus image. I'm new to jQuery so I'm having a real hard time trying to figure this out. Everything I've tried doesn't work. The links to Kyan Media to get an idea of what I'm trying to do.
I wanna implement a button that shows the context menu. I already implemented[URL].. I am now searching for hours about those 2 terms but have not found an answer yet. Also tried to trigger it myself but had no success yet.
I have two different arrays with the same number of element. The 1st array holds the ID's and the 2nd one holds the Items....i want to use both of them in a Jquery autocomplete plugin.. showing the the 2nd one values but getting the value of the 1st arr.
I was wondering if there is a way to combine both in one in Javascript.
like Arr3 =[arr1, arr2] where i display arr2 elemnt and pass arr1 elements?
I have an application developed using jQuery1.2.3 and I currently have issues with printing a pre-defined area of a page within the application.I found the solution in the jQuery Plugin - PrintArea but it's not compattible with jQuery 1.2.x. The introduction of PrintArea and jQuery 1.3.2 to my app throws errors like "exception thrown and not caught - Query1.3.2.js" and "object does not support this property or method - on the line where I'm calling the printArea function".
I have this little snippet of code that swaps a toggle image for news for a plus or minus sign showing if the div is open or closed. This code has worked before but i made a couple modifications today and it stopped working unexpectedly and i'm not sure why its failing. I am presetting the div tag with a plus sign with css and then modifying it with javascript. The problem i am having is that when the div tag has been opened it does not swap the image to min.gif anylonger. It remains max.gif.
I'm having difficulties to understand why the code below doesn't work. The idea is to generate an <iframe> with a higher z-index compared to an <object>. In Microsoft Internet Explorer 6, everything works fine, but Firefox/Netscape seems to have problems with this construction.
I have a problems with selectors. I have the following HTML code:
<div id = "myDatepicker1"
[Code]....
But the alert message does never appear and I did not get JavaScript errors. It seems that the selector does not match and so the alert message and the .hide() does not take effect.
1 Box holds 3 items, Complete box weighs 75g, each item 25g, customer chooses their own 3 combo items. This could be the same all the same item or 3 different items.
I need a script that will require the selections to make up 75g in order to continue the process. i.e customer can only continue when 3 items / 75g worth are selected.
Here is a short version, I have about 12 selectors at the moment and possible more will be created (if that matters).
I'm trying to write a function to set display of containers when hovering over another element.I have an unordered list with 5 list items each of which, when hovered, should trigger the display of a corresponding div.I can get each of the individual portions of this to function;i.e. the "hover function" on it's own, and the "for loop" on it's own. But when combined, my counting variable (when placed within the hover function, has a fixed value of "6" though the loop iterates the expected number of times "5".How do I pass the variable so that it will increment properly?
I want to disable ALT+TAB key combination on my webpage to avoid people using any other application while using my application while working on my website.
I am using the following code for disabling Ctrl-N in IE7. It disables the Ctrl-N feature of IE which opens a new window containing the same page as the 'active' window. The code works great (at first glance). However, I noticed that, if you click anywhere inside the browser window and THEN press Ctrl-N, the new window will open. If you don't click anywhere inside the window, the following code works. Can anyone see an improvement to the following code so that clicking inside the browser window doesn't bypass the javascript?
I opted to use JavaScript & PHP (instead of Flash) to create a sort-of "t-shirt designer" -- basically, it's a gallery-type script that allows users to scroll through t-shirt styles, swap colors, and so on, prior to reaching the actual design tool. And I'm starting to regret.
It's actually working very well so far, except for one thing: I want the t-shirt option that the user selects to link the user to the design tool. The "gallery" already has an image for each possible option that displays whenever the user selects a combination, but I want to make that image is a clickable link.
I have no idea where to start -- I know next to nothing about javascript -- and to accomplish this in Flasjh I'd have to start this stupid basic thing all over again from scratch, and it would defeat the point of not using Flash in the first place, so