[jQuery] Quick question on image loading
My question is, if I have one image as the background of a div, and I set the background of that div to another image, will html load the new image before replacing the old one or replace the old image with something ugly (say just plain white) and then load it. The reason I'm asking is, because my site isn't hosted anywhere, it's hard to tell what will happen on a non-local connection when the images actually have to be loaded. Thanks Eric
[jQuery] Quick question, basic stuff
Hi all, In a HTML document I'm having a few divs with the same class. In each of this divs is nested an unordered list with inside the list items some anchors. I'm trying to find a certain jquery expression which says I want link#3 from div#2. I've tried; $(div.pic:eq(1) ul li a:eq(2)).hide(); which doesn't seem to work... I think because you can't have :eq() twice as selector. How would I make this work?
[jQuery] Quick question about www.wow-heroes.com
Hi, First let me say I know very little about js, I have coded in PHP and HTML before. I am trying to link to search results on www.wow-heroes.com but I seem to fail to understand the websites coding schema and create the direct link to search results. The normal process is: 1) open www.wow-heroes.com 2) Click on Guild tab 3) Choose zone: US, Realm: Fenris, and Guild: Dark apocalypse 4) select get fresh data from armory 5) Submit the form by clicking Search 6) View results. What I want to do is to create a link or a submit button on a form which is hosted on my website. Clicking this button will take the user to step 6 of the procedure I showed above. Can any one assist me in creating such a call? Thanks
[jQuery] quick question about loading in form elements using load()
Hi, hope everyone is well... my problem is simple, i am using load() to add an external file form contents to the dom. normally i have a listener for form elements such as inputs and textareas in my $(function() { }) that adds a class to inputs on focus and removes it on blur... but it doesnt work on the form that is load() 'ed in unless i have the script embedded in the html that is load()'ed i can live with this but i am curious if anyone knows the proper way where i can keep my javascript separate from the html? thanks and for the curious out there here is the code: [code] jQuery(function() { // pretty up the form elements on focus jQuery('input').focus(function() { jQuery(this).addClass('focus'); }).blur(function() { jQuery(this).removeClass('focus'); }); jQuery('textarea').focus(function() { jQuery(this).addClass('focus'); }).blur(function() { jQuery(this).removeClass('focus'); }); }); [/code]
[jQuery] Quick Question - Multi Page Form Plugin...
Is there one for jQuery? I would like the end user to be able to check their text entry before submitting the form... I looked on the jQuery site for this with no luck Can anyone help? Thanks :)
[jQuery] Quick Question about the ui.datepicker
Hi there's a couple of things that id like to ask. Here is my code: $(function() { $('#deliverydate').datepicker({ minDate: +1, maxDate: '+1Y', changeMonth: true, changeYear: true, showOn: 'both', buttonImage: '../../images/general_images/calendar.jpg', buttonImageOnly: true, altField: '#actualDate', altFormat: 'yy-mm-dd', }); }); basically I want the user to see the date in the 'dd-mm-yy format' (this already happens) but i want the post information to be in the 'yy-mm-dd format'. The document (http://docs.jquery.com/UI/Datepicker/datepicker#options) suggests: Display one date format and send another from a different field. $(.selector).datepicker({ altField: '#actualDate', altFormat: 'yy-mm-dd' }) Which i've added, but how would i access that data when the form is posted? Thanks for any help
[jQuery] Quick question
I want an id on a page I'm developing to get bigger if a certain condition is met, however, I can't get the code to work... can anybody fix this up for me? $(document).ready(function(){ if(document.body.offsetWidth 1024 ){ $(#wrapper).css(function() { $(this).animate ({width: 1024px}, 1000); }); } }); this is my first time really working with jQuery, so any help would be great. Thanks! P.S. the code works fine without the if(...) and with .click instead of .css, but i want it to be automatic.
[jQuery] Quick question about dimensions
I've recently been exploring the jquery library and I apologize if this is a silly question. But could someone post a simple example of using the dimension library to position a div directly below a link. I have tried something like this: $(#insertLink).click(function(){ $(#insertDiv).offset($(this).offset()); $(#insertDiv).toggle(); }); but it doesn't seem to work. Am I missing something?
[jQuery] Quick Question... (got a meeting in 30 minutes)
What jQuery plug-in(s) can provide a full-screen or almost full-window of a large, panorama image that is larger than the view port? I've searched around but don't have time to figure out the answer before my client meeting. It's for virtual tours of homes of panoramic photos. Dimensions could figure out how large to make the display. What could make the left to right smooth image scroll and fade to the next image? Thanks! Rick
[jQuery] quick question, selecting dynamic elements
on click i am storing the ID of an the a i clicked. i am then replacing characters in that string to get the desired resulting string. i am then trying to toggle a div whos ID is the resulting string. heres what i got. $(ul#specialsNav li a).click( function(){ var whichID = $(this).attr(id).replace(/_a_/, ); var newSpecial = div. + whichID; $(newSpecial).toggle(); }); i have tried putting... $(newSpecial).toggle(); but nothing
[jQuery] Quick question...
We all know love jQuery, but something that I've been wondering for a while now... not sure if it's feasible or not, but I'll ask anyway =). Is there any sort of HTML parser for PHP that's similar to jQuery's selectors? ie: $('div.class').html().. but a PHP version? Thanks!
[jQuery] Quick question...
Hi, I need to find the height of a div after the ajax response has been dumped into it. $('#target').html(msg); var current_height = $('#target').height(); This doesn't work. I would like to use. $('#target').html(msg,function(){ var current_height = $('#target').height(); }); But this doesn't work either. Any help would be greatly appreciated. Cheers.