I have a menu and when I hover one of the links a div shows. I want the user to be able to hover over this div but when the user hovers out of the div (mouseout i think its called) I want it to hide.
Imagine a dropdown menu in css, the user hovers over the link and the sub nav is shown, when the user hovers out or away from the link an...
I'm having trouble to make a simple CRUD in my site.
I have a table of registries
<table>
<tbody>
<?php foreach ($row as $reg) { ?>
<tr <?php if ($reg['value'] < 0) { echo "class='error'"; } ?>>
<td><?php echo $reg['creditor'] ?></td>
<td><?php echo $reg['debtor'] ?></t...
The following code doesn't work as I intuitively expect it to:
function MyObject(input) {
input.change(this._foo);
this.X = undefined;
}
MyObject.prototype._foo = function() {
alert("This code is never called");
// but if it did
this.X = true;
}
var test_input = $("input#xyz"); // a random, existing input
var m = MyObj...
I've got some inherited JQuery code that isn't working as I'd think and I'm just not even sure what to research or look up next.
The Problem:
I've got a few DIVs within the HTML: a container, a "frame" and the content. If the content is longer than the frame, it's cut off using overflow:hidden and a Next -> button appears. The next butt...
I am using JQuery to perform form submission through an ajax request. I use
form.submit(function() {
if( success ) {
return true;
}
validate(); //proceeds to an ajax call
return false;
}
On request success I want to either proceed with form submission or user callback. Therefore, if the user callback is undef...
I've seen thejQElement.toggle(fn1, fn2, fn3, fn4) would do the trick in case I wanted to click the element. I want it to sequencially fire the events on the tab keydown event.
Thanks
...
Hey guys. If you haven't already seen, Google has the ability to add a custom background image (for better or worse) and I was wondering how to achieve the same fade-in-on-load effect using jQuery.
Any ideas?
...
Here is the site mock-up I'm working on for my job: http://dev.arm.gov/~noensie/dqhands/cgi-bin/explorer. I'm still a novice in web developing and I need help with placing form values in a list item to pass on to another page.
I'd rather not go in great detail the purpose of this website, but in terms of its basic use, select the parame...
I'm trying to integrate an animation by using the bezier path plug-in and I can't seem to implement it right.
Stripped down, here's what I have:
$('#next2btn').live('click', function(){
$(this).attr('id','next3btn');
$('#content2').show(300, function() {
$('#account').fadeTo(500,1.0)
var arc_p...
I don't know if it's better used with AJAX (tell me, otherwise) but here is my problem:
Assuming i'm using Zend Framework, I have a table with several registries from a database with a delete button on each row. That's like this
[...]
<tbody>
<?php foreach ($row as $reg) { ?>
<tr <?php if ($reg['valu...
I have an event handler for the click event on an anchor. The event is fired both by clicking on the anchor and by the enter key when the anchor has the focus.
I wanted to know if the event was triggered by a click o by the enter key.
Thanks!
...
I'm trying to determine when any of a set of named input/select/radio/checked/hidden fields in a form change.
In particular, I'd like to capture when any changes are made to fields matching jQuery's selector $("form :input"), and where that input is has a name attribute. However, the form isn't static i.e. some of the fields are dynami...
After a user uploads a file we have to do some additional processing with the images such as resizing and upload to S3. This can take up to 10 extra seconds. Obviously we do this in a background. However, we want to show the user the result page immediately and simply show spinners in place until the images arrive in their permanent home...
I need to load a piece of content html when an link in a menu is clicked; once loaded, the css format is not working properly, how do I re-format (re-styling via css) the loaded code?
My code is:
$('a', mainMenu).click(function() {
ref = this.href;
$('#content').load(ref + ' #content' function() {
url = '../css/jqu...
I have been trying to make the FullCalendar events use Facebox to pop up with information when they are clicked. I have no problem putting the events on the calendar or getting the information that needs to be displayed it is just getting the pop up box to work.
I have tried adding rel="facebox" to both the "span" and the "a" that wraps...
I'm writing an application in PhoneGap that I want to run on iOS, Android, and webOS. jQTouch plays nice with everything on iOS and Android, but not webOS.
Since the webOS Mojo framework is based on Prototype (which uses the $ variable), it's necessary to use jQuery in noConflict mode. I can handle that much.
However, the problem is th...
I am working on an embeddable javascript which inserts HTML elements onto unknown pages. I have no control of the stylesheets of the pages I'll be inserting HTML into. The problem is that the HTML I insert will mistakenly stylized by the page, and I want to prevent that.
What's the least verbose and/or resource intensive to go about ...
I'm trying to display a modal form using jquery ui. I've adapted an example but I cannot get the dialog to launch. I'm sure it's very simple but can someone tell me what I'm doing wrong ?
The page displays initially but when I click on 'Create New User' nothing happens.
The code is below - also (easier to read) at http://pastie.org/100...
I've recently inherited the maintenance of a big, ugly codebase for a production website.
Poke your eyes out ugly. And though it's big, it's mostly PHP code, it doesn't have much JS, besides a few "ajaxy" things in the UI.
Our main current problem is that the site is just too heavy. Homepage weighs in at 1.6 Mb currently, so I'm trying ...
Greetings, I have a problem which would seem to involve some kind of z-index issue, but for a change it's in everything except IE.
If you take a look at http://cougar.motivo.com.au/ in anything except Internet Explorer and hover over the last menu item "Contact Us" you can see what I'm referring to. Basically the supersub menu appears t...