[jQuery] Re: Getting two animations together on an element
How about: $("#transbox").animate({height:0,opacity:0.1},1000); --Erik On 5/25/07, joomlafreak <[EMAIL PROTECTED]> wrote: Most of the time I want to have two animations after one aother and I can fet it by using call back. But for something I am writing I want two animation namely height and opacity occurring together on an element to create a curtain like effect but whatever I tried it seems one animation completes before other starts. Can someone please educate me as to how I can achieve it? for simplest code if I say $("#transbox").animate({height:0},1000) $("#transbox").animate({opacity:0.1},1000); or $("#transbox").animate({height:0},3000).animate({opacity:0.1},1000); but none does what I intend it to do.
[jQuery] Getting two animations together on an element
Most of the time I want to have two animations after one aother and I can fet it by using call back. But for something I am writing I want two animation namely height and opacity occurring together on an element to create a curtain like effect but whatever I tried it seems one animation completes before other starts. Can someone please educate me as to how I can achieve it? for simplest code if I say $("#transbox").animate({height:0},1000) $("#transbox").animate({opacity:0.1},1000); or $("#transbox").animate({height:0},3000).animate({opacity:0.1},1000); but none does what I intend it to do.
[jQuery] Trouble with validate plug-in
We're trying to get set up with the Validate plug-in. This is the scenario: JQUERY === $(document).ready(function() { $("#myForm").validate(); }); HTML === ... But, when the submit button is pressed the following error is through in the FF javascript console: Error: jQuery(element).data is not a function Source File: XXX Line: YYY The piece of code which it refers to is in the jquery.validate.js which is the last line of the following block: data: function( element ) { return this.settings.rules ? this.settings.rules[ element.name ] : this.settings.meta ? jQuery(element).data()[ this.settings.meta ] : jQuery(element).data(); } Unfortunately, Jorn's blog keeps on eating up my comment when trying to post this there so i am trying here. Anyone have any idea where we've gone wrong?
[jQuery] Re: Comet
For those interested, I've added a download link to http:// empireenterprises.com/_comet.html in order to make it seem more accessible. -g On May 25, 2007, at 8:45 AM, MikeR wrote: http://docs.jquery.com/Plugins On May 24, 2:15 pm, peter <[EMAIL PROTECTED]> wrote: You are quite right. But this address is not advertised anywhere that I can find. You have to go snooping around, and look at the source code for the page. The problem is that there doesn't seem to be a centralized place for downloading advertized plugins. This isn't the only plugin suffering from this problem. Peter On May 24, 9:51 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote: I assume you are talking about this plugin:http:// empireenterprises.com/_comet.htm Then you can download it here:http://empireenterprises.com/_share/ jquery.comet.js ~Sean
[jQuery] Re: Finding a parent list item.
Unfortunately, whilst i still don't understand how to use firefbug, i can say for sure that none of the 3 ideas (i.e. input, [EMAIL PROTECTED] or .pickme) work when it comes to the type="file" input. As mentioned before, when i remove type="file" from the input, then the code works fine and the page validates 100 % as strict xhtml. This is the exact html: Title Message Attachment And this is the exact script: $(function() { $("ul.form").find("input,select,textarea,option") .focus ( function() { $(this).parents('li').addClass('odd'); } ) .blur ( function() { $(this).parents('li').removeClass('odd'); } ); }); And i'm using FireFox 2.0.0.3 on a Windows XP UPDATE: Having typed in the last line regarding my system, i thought to try this out on other browsers: - IE7 - works perfectly fine - Opera 9.1 & 9.21 - works perfectly fine - Netscape - it doesn't work as described above - Firefox 2.0.0.3 - it doesn't work as described above Any ideas? On May 25, 7:46 pm, Daemach <[EMAIL PROTECTED]> wrote: > Hmm - input should get it by itself I would think. Are you certain > it's not picking up the file field? Use firebug and console.log($ > ('input')); > > The fastest solution may be to add a class to all of the elements you > want to select and use that instead. ('input.pickme'). When I get > back in I'll have to test a file field. > > On May 25, 9:24 am, fambizzari <[EMAIL PROTECTED]> wrote: > > > I've tried > > > - $("ul.form").find("input,select,textarea,option,[EMAIL PROTECTED]") > > and > > - $("ul.form").find(":input") > > > And neither of those work!!! > > > I've removed file="type" from the input just to make sure that is the > > problem and everything works fine if its gone. > > > Any more ideas? > > > On May 25, 7:14 pm, Daemach <[EMAIL PROTECTED]> wrote: > > > > Try $("fieldset").find(":input") to grab all form fields. (http:// > > > docs.jquery.com/DOM/Traversing/Selectors) > > > > If that doesn't work, [EMAIL PROTECTED] should pick it up. > > > > On May 25, 9:08 am, fambizzari <[EMAIL PROTECTED]> wrote: > > > > > Unfortunately, whilst your suggestions work excellently, the following > > > > piece of code: > > > > > $("fieldset").find("input,select,textarea,option") > > > > > does not work with > > > > > > > > > > Any idea what i should do to fix it? > > > > > On May 25, 3:50 pm, fambizzari <[EMAIL PROTECTED]> wrote: > > > > > > Thanks Guys. > > > > > > Most helpful > > > > > > On May 25, 11:32 am, George Adamson <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > Daemach2's solustion would do it, and if your elements are > > > > > > nested > > > > > > inside other elements, you may wish to restrict the parents() > > > > > > method to > > > > > > match only the first up the tree by using > > > > > > $(this).parents('li:first').addClass('on'); instead, that way you > > > > > > won't set > > > > > > addClass('on') for more than one > > > > > > > George > > > > > > > Daemach2 wrote: > > > > > > > > You should be able to do: > > > > > > > > $(function() > > > > > > > { > > > > > > > $("fieldset").find("input,select,textarea,option").focus > > > > > > > (function() > > > > > > > { > > > > > > >$(this).parents('li').addClass('on'); > > > > > > > } > > > > > > > ) > > > > > > > .blur > > > > > > > (function() > > > > > > > { > > > > > > > $(this).parents('li').removeClass('on'); > > > > > > > } > > > > > > > ); > > > > > > > > }); > > > > > > > > On May 24, 9:48 pm, fambizzari <[EMAIL PROTECTED]> wrote: > > > > > > >> Hi everyone, > > > > > > > >> Imagine the following HTML scenario: > > > > > > > >> > > > > > > >> Title > > > > > > >> > > > > > >> id="title_new"/> > > > > > > >> > > > > > > >> > > > > > > >> Message > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > >> id="message_new"/> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > >> > > > > > > > >> How could i modify the following jquery code so that it e
[jQuery] Re: [ANN] jQuery Media Plugin
Rhapidophyllum wrote on 5/25/2007 7:56 PM: I know it's early, but one comment: for embedding PDF, works on my Mac in Safari, but Firefox demands to either save the PDF or open it with another application. (Sorry, don't know if this is a known issue or not!) Within Firefox, go to Tools > Options, under File Types, click "Manage...", scroll down to PDF, double-click on it, select the radio button "Use this Plugin: Adobe Acrobat", click "Ok", click "Close". You should be good to go. - Bil
[jQuery] Re: Question about scroll in dimensions plugin
This is now fixed and you can grab the latest from svn and/or here: http://jquery.com/plugins/project/dimensions In the future feel free to contact me off list for questions about dimensions. :) I am still curious to see the comparison of yui getxy with dimensions offset you put together. -- Brandon Aaron On 5/25/07, Brandon Aaron <[EMAIL PROTECTED]> wrote: And your right ... it doesn't really make sense to calculate the elements scroll offsets! I'll check-in a fix momentarily. -- Brandon Aaron On 5/25/07, Brandon Aaron <[EMAIL PROTECTED]> wrote: > Oh please do put the page back up. I seem to have missed this post. > I'd like to get it "fixed" and I would like to see just what you mean. > > -- > Brandon Aaron > > On 5/25/07, Wizzud <[EMAIL PROTECTED]> wrote: > > > > > > PPS The link mentioned below has been removed due to total lack of interest. > > > > > > Wizzud wrote: > > > > > > .. > > > PS. I have put up a modified version of the Brandon's visual test that > > > uses the YUI position calculator, just so that interested parties (if > > > there are any) can see the difference between YUI and jQuery. > > > http://www.wizzud.com/getxy/index.html > > > http://www.wizzud.com/getxy/index.html > > > > > > > -- > > View this message in context: http://www.nabble.com/Question-about-scroll-in-dimensions-plugin-tf3777343s15494.html#a10811945 > > Sent from the JQuery mailing list archive at Nabble.com. > > > > >
[jQuery] Re: [ANN] jQuery Media Plugin
Wow, that is great! I know it's early, but one comment: for embedding PDF, works on my Mac in Safari, but Firefox demands to either save the PDF or open it with another application. (Sorry, don't know if this is a known issue or not!) Thanks! On May 23, 2007, at 7:57 AM, Mike Alsup wrote: I've been working on consolidating and refactoring my media plugins. The result is a single plugin that handles virtually any media type. Supported Media Players: - Flash - Quicktime - Real Player - Silverlight - Windows Media Player - iframe Supported Media Formats: Any types supported by the above players, such as: Video: asf, avi, flv, mov, mpg, mpeg, mp4, qt, smil, swf, w Audio: aif, aac, au, gsm, mid, midi, mov, mp3, m4a, snd, rm Other: bmp, html, pdf, psd, qif, qtif, qti, tif, tiff, xaml Docs and demos can be found at: http://malsup.com/jquery/media/ Mike
[jQuery] Re: Loading before teh DOM is ready
And with window.load is better for me becouse i need all images too document.write("