I'm trying to simulate a click on an anchor tag using jQuery. I've been digging around StackOverflow and Google for a while and haven't found anything that works on all of the browsers I'm testing. So far, I've found this:
$(document).ready(function() {
$.fn.fireEvent = function(eventType) {
return this.each(function() {
...
I have a modal dialog which opens on click of Edit button of my webpage. I am passing the values to the onclick handler (which calls $("#editdialog").dialog('open');). Beside opening the dialog I need to populate form inputs within the dialog with values passed to the onclick event handler. I am doing this:
$("#editfrm > input[id='FirstN...
By default, the jQuery UI DatePicker widget animates from the bottom-left of the input field it's assigned to, so if the input field is shorter than the width of the calendar, it hangs off to the right.
My problem is that my input field is all the way on the right side of the page, so that when the Datepicker shows, it hangs off my page...
I'm using the Colorbox lightbox plugin to display lightboxes with "Outside HTML (Ajax)" on my page. I'm using all defaults from "Example One" (from the website).
Trouble is, the lightbox works flawlessly on my localhost machine, but displays an endless loading graphic when I try it on my remote server.
The page I'm trying to load is i...
So I have a page that uses both Prototype and Mootools AJAX scripts.
There is much more Mootools that Prototype, so I'm wondering if Prototype has a function similar to jQuery's $j = jQuery.noConflict(); that I can use to redefine the $ alias for Prototype?
Thanks!
...
Hey, I've just started learning JavaScript and I'm making a little script that generates two numbers, the first number stays the same but the second number gets regenerated if it doesn't match the first number.
Here is my script:
function randomNumberMatcher(){
$(document).ready(function(){
var number1 = Math.floor(1000000*Mat...
I'd like to select ALL of the disabled textboxes and add a Class to them, how do I do this in jQuery
...
Can you use the .width() and .height() methods to increase the height like $('x').width('+=2px') or $('x').height('+=2px')?
I couldn't find any information about this on the jQuery website, but I also haven't seen anything to suggest that this doesn't work.
...
Hello,
I have been looking around on ways I can implement an input box on my webpage that will filter by keywords, much like the one buysellads.com uses here where you type in a keyword related to the site and it automatically filters the list. For example if you type 'photoshop' it will grab all site containg a tag with photoshop.
I ...
I know that $(this) results in a jQuery object, but i often see (especieally in jQuery plugins) the use of return this.whatever what is the general rule?
Thanks
...
I am an intermediate javaScript programmer, and i am interested in expanding my knowledge in object oriented programming (especially object oriented JavaScript).
I would prefer a book over browsing scattered web resources, does anyone have an idea of which book will be best to get a head start with?
Thanks
...
Hi All!
I have a really, really long form (about 300 fields) that I broke down into different sections using this slick jQuery plugin Form Wizard. If you group your form into different fieldsets, the FormWizard will automagically display one section at a time, with a Next hyperlink to take you to the next section:
<a id="step0Next" ...
I have 5 checkboxes in each row. The first one is 'ALL'. I am trying to see if any of the others are disabled. So, if somebody clicks on 'ALL' checkbox, I need to make sure the disabled ones are not checked. This is what I have:
("input[name^=all_]").each(function() {
var input = $(this);
var name = input.attr('name');
var num = ...
Can i hide text in a DIV after a number of characters with jQuery?
So far I think it would go something like this - jQuery would cycle through the text until it gets to a certain number of characters. It would then wrap a DIV from that position to the end of the text which could then be hidden with the hide() method. I'm not sure how to...
I know that the title is very subtle but I have absolutely no idea how I should title this issue nor what the hell is happening with this function.
function update_background(source, isSystem){
if (!isSystem) {
source.replace(/\/tn_/, '');
jQuery('div#drag_container img[alt="background"]').attr('src', source); //*1
jQ...
I am trying to test the jQuery Address Plugin and it seems to not allow ajax to work in the change function.
I am using:
$.address.change(function(event) {
$('#content').load(event.value+' #content');
$.address.title(event.value);
});
$('a').click(function() {
$.address.value($(this).attr('href'));
});
While I can use ev...
Hi,
I've got a Drag Drop opening in a modal dialog window and would like to reset it back to its original load state if the user cancels out of the dialog. I'm using similar concepts to the 'Simple Photo Manager' Droppable example on jqueryui.com. The problem is that when I drag from one area and drop to another, I'm modifying the html,...
I'm using a simple JQuery call to replace some HTML in a DIV tag after an AJAX call.
$("#my_div").html('value');
This works great in the other browsers, but in IE it is just adding to the DIV instead of replacing the HTML.
Any ideas why that would happen?
...
I'm a backend programmer and I wonder about one thing. I know just a little about Javascript. I know the basics when I look at some Javascript code, I understand what code is trying to do. But I have never used it to create animations.
Then I heard about jQuery. Can I be an expert on jQuery without knowing a lot about Javascript?
And h...
I have 3 tabs that I am rotating using the following:
var $rotate = $('#rotate');
$rotate.tabs({fx: {opacity: "toggle", duration: "fast"},event:'mouseover'})
.tabs('rotate', 4000);
The problem is that when I mouse over all of the links fast, the tabs animation hiccups, revealing the hidden images which just sit there on top of each ...