[jQuery] Re: history in ajax and setting the ajax url

2007-04-28 Thread xavier
Hi, Sorry, I'm completely lost. I tried to dig into your tabs plugin, I don't understand where you call it. I found: if (settings.bookmarkable && trueClick) { // add to history only if true click occured, not a triggered click $.ajaxHistory.update(clic

[jQuery] Re: How to test if an event is already bound to an object ?

2007-04-28 Thread xavier
Hi, The this.$events is never existing as far as I understand (based on firebug), no matter if the link has an event or not. I have events associated to the click that are created with the jquery accordion plugin. I suppose they are normal events, and that's not why they aren't seen. Any idea?

[jQuery] Re: Estimated 1.1.3 release date?

2007-04-28 Thread Brandon Aaron
Here is a list of fixes thus far that will be in 1.1.3: http://tinyurl.com/2t2we5 -- Brandon Aaron On 4/28/07, Shelane <[EMAIL PROTECTED]> wrote: What might we expect in the next release? You mentioned a few things related to "faster" selectors, animations, etc. What bug fixes might we see?

[jQuery] Re: Estimated 1.1.3 release date?

2007-04-28 Thread Shelane
What might we expect in the next release? You mentioned a few things related to "faster" selectors, animations, etc. What bug fixes might we see? IE issues? Why is IE always the problem child? Oh yeah, M$. OK, off my soapbox now. On Apr 26, 7:21 pm, "John Resig" <[EMAIL PROTECTED]> wrote: >

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread Brandon Aaron
The reason it works is because the div is actually the drag object. So we set the context of the search for 'img' to drag. -- Brandon Aaron On 4/28/07, dennis <[EMAIL PROTECTED]> wrote: On Apr 28, 5:25 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > Try this: $('img', drag).attr('src'); Br

[jQuery] Re: Repeated quick clicks mess up my code..please help

2007-04-28 Thread joomlafreak
Here is link to the live page where I am using this code. See how it behaves on repeated clicks http://www.joomlaprodigy.com/test/index.php?option=com_weblinks&Itemid=23 On Apr 28, 8:58 pm, joomlafreak <[EMAIL PROTECTED]> wrote: > jQuery.noConflict() > var ppdelay = ; > var newsitems; > var curr

[jQuery] Repeated quick clicks mess up my code..please help

2007-04-28 Thread joomlafreak
jQuery.noConflict() var ppdelay = ; var newsitems; var curritem=0; var iPause=0; var tbtype; var indicdelay = ppdelay-3000; jQuery(document).ready(function(){ jQuery("#imagebx").css("display","block"); var tickerSelector = "#imagebx .imageitem"; newsitems = jQuery(tickerSelector)

[jQuery] Repeated quick clicks mess up my code..please help

2007-04-28 Thread joomlafreak
I used the code posted by Mr. Sean on this group and a working example is at this url http://www.levelfield.com/ticker.html. Thanks Sean and all who helped him develop further. I added few lines to this code to make something like Yahoo movie home page module. It works nicely but I have noticed t

[jQuery] jQuery Tetris?!?

2007-04-28 Thread Kenneth
Not sure if the author is on this list, but awesome job either way! Check it out: http://fmarcia.info/jquery/tetris/tetris.html And vote it up if you think its good -- how could you not ;) @DZone: http://www.dzone.com/rsslinks/tetris_with_jquery.html @Digg: http://digg.com/programming/Game_Tetri

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread dennis
On Apr 28, 5:25 pm, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > Try this: $('img', drag).attr('src'); Brandon, that idiom works. I'll stop banging my head now. Thanks BIG! /dennis

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread Brandon Aaron
Try this: $('img', drag).attr('src'); -- Brandon Aaron On 4/28/07, dennis <[EMAIL PROTECTED]> wrote: On Apr 28, 4:27 pm, Dave Cardwell <[EMAIL PROTECTED]> wrote: > I haven't used draggables, but it looks like "drag" in this case is a > jQuery object. In that case, you want drag.attr("src"). >

[jQuery] Re: Determining when an image is fully loaded

2007-04-28 Thread Erik Beeson
Maybe $('#pictures').html(...).children().bind(...) But I think you're trying to hard to use jQuery. How about this (tested on FF2/Mac): var img = new Image(); img.onload = function() { img_width = this.width; img_height = this.height; }; img.src = '...'; $('#pictures').html(img); Or if you wa

[jQuery] Re: behaviors?

2007-04-28 Thread Mike Alsup
Brandon, That is really slick! Mike http://dev.jquery.com/browser/trunk/plugins/behavior

[jQuery] Re: Determining when an image is fully loaded

2007-04-28 Thread Mike Alsup
Wyo, Try something like this: var $img = $('') .appendTo('#pictures') .bind('load', function() { alert('loaded') }); But be aware that if the image is already in the browser cache the load event will not fire in IE. You can use the "complete" property to test if the image is loaded: i

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread dennis
On Apr 28, 4:27 pm, Dave Cardwell <[EMAIL PROTECTED]> wrote: > I haven't used draggables, but it looks like "drag" in this case is a > jQuery object. In that case, you want drag.attr("src"). > > http://docs.jquery.com/DOM/Attributes#attr.28_name_.29 Hi Dave, It looks to me too that "drag" is a j

[jQuery] Re: behaviors?

2007-04-28 Thread Brandon Aaron
I had some down time this afternoon so I thought I would throw something together real quick. I just checked it in: http://dev.jquery.com/browser/trunk/plugins/behavior This allows you to register any number of behaviors that will run any jQuery method/plugin with any number of arguments. It als

[jQuery] Re: load image by ajax..how?

2007-04-28 Thread joomlafreak
Thanks for your reply. I figured it out from the post. thanks again On Apr 28, 11:37 am, Dave Cardwell <[EMAIL PROTECTED]> wrote: > joomlafreak wrote: > > I need for one application relatively big size background images which > > change every few seconds. I was wondering if it is possible to loa

[jQuery] Re: Determining when an image is fully loaded

2007-04-28 Thread wyo
On 28 Apr., 15:39, "Sean Catchpole" <[EMAIL PROTECTED]> wrote: > Try this: > $('#pictures').html(...).bind("load",function(){...}); > I've tried $('#pictures').html('').bind ('load', sizeImage); function sizeImage() { alert ('sizeImage'); } The alert is never shown, see http://www.orp

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread Dave Cardwell
dennis wrote: If this makes a difference, the image is defined within this set of divs: I haven't used draggables, but it looks like "drag" in this case is a jQuery object. In that case, you want drag.attr("src"). http://docs.jquery.com/DOM/Attributes#attr.28_name_.29 -- Best wi

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread dennis
On Apr 28, 4:00 pm, "Sean Catchpole" <[EMAIL PROTECTED]> wrote: > Try drag.src > > ~Sean Hi Sean, drag.src returns undefined. Here is a partial list of various things I've tried. var thePhoto = drag.innerHTML.("img").attr("src"); // no var thePhoto = drag.innerHTML.attr("src"); // no var theP

[jQuery] Re: Autocomplete plugin problem

2007-04-28 Thread Stefan Kilp [sk-software]
Hi Jörn, maybe you could give me a more detailed hint: i tried this, but it doesn't work $("#ac_werke").autocomplete("imagesearch.php", { delay: 250, width: 300, minChars:2, formatItem: false, selectFirst:tr

[jQuery] Re: Newbie -- How to retrieve img src value in function?

2007-04-28 Thread Sean Catchpole
Try drag.src ~Sean

[jQuery] Newbie -- How to retrieve img src value in function?

2007-04-28 Thread dennis
I am using jquery 1.1.2, interface 1.2, working with drag/drop. When user drops an image onto the drop area, I want to retrieve the src value, so that eventually I can send that value to the server and do some Ajax stuff. But so far, in my code below, I have only gotten this to work: var thePho

[jQuery] Re: firefox and ie button onclick

2007-04-28 Thread Dave
Karl I really appreciate the responses. I'm not new to "programming" but I am very much a noob where javascript is concerned. What I'm now looking for is an explicit example of how to do what I'm trying. The code in this group helps, but it seems to be either confusing or slightly off target.

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Ⓙⓐⓚⓔ
  is html. not javascript! Does IE do this any differently than firefox? http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";> http://www.w3.org/1999/xhtml"; xml:lang="en"> nbsp; $(function(){ var x = " " alert(x.le

[jQuery] Re: Difference of $.getJSON versus $get

2007-04-28 Thread Dave Cardwell
wyo wrote: What's the difference of $.getJSON versus $.get? I currently use $.getJSON to load JSON data but I can't see any advantages. Is $.getJSON just another way for $.ajax({ type: "GET", url: "link name", dataType: "json", complete: "function name" }) or is the callback exc

[jQuery] Re: SPAM-LOW: [jQuery] Re: Replacing the contents of a div that uses newsticker plug-in

2007-04-28 Thread Dave Cardwell
djl wrote: I'm a bit lost with your suggestion here? Are you saying I should add the lines: self.items = jQuery("li", self); self.items.not(":eq(0)").hide().end(); self.currentitem = 0; into the replacecontents function? Please advise. Thanks. That is what I meant, yes - at the end of th

[jQuery] Re: load image by ajax..how?

2007-04-28 Thread Dave Cardwell
joomlafreak wrote: I need for one application relatively big size background images which change every few seconds. I was wondering if it is possible to load the images one by one using ajax and then set some clause to use it from the DOM after it is loaded for the cycle and not loading it from

[jQuery] My CSS presentation - recorded via Adobe Connect

2007-04-28 Thread Andy Matthews
For those of you that have been asking about the recorded presentation, here's the URL: https://admin.adobe.acrobat.com/_a17673838/p30028287/ And here's a link to the files used in my presentation so that you can follow along: http://www.ncfug.com/archive/AndyMatthews_April2007_CSS.zip Hope ever

[jQuery] Re: history in ajax and setting the ajax url

2007-04-28 Thread Klaus Hartl
xavier schrieb: Hello, I want to have an application that works both with and without ajax. Eg: without ajax, I get /contentWithMenu and with ajax I .load / contentonly into #content jQuery("[EMAIL PROTECTED]/]").bind("click",function(){ jQuery("#main").load ("/xajax/"+this.pathname,{},f

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Karl Swedberg
Michael! So great to see you on the list again! You have a brilliant mind, and I always learn something new whenever you post. I was beginning to wonder where you've been. Glad to have you back. :-) --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 2

[jQuery] Re: firefox and ie button onclick

2007-04-28 Thread Karl Swedberg
Ah! In that case you can pull your Javascript form submit code into a function and then call that function in the callback of the ajax load. Whenever new content is added to the DOM, we need to re-bind events so they recognize the new DOM elements. Actually, there are other ways to do this,

[jQuery] Re: plugins page!!!!

2007-04-28 Thread Karl Swedberg
On Apr 28, 2007, at 1:02 AM, Shelane wrote: when you click one of the categories from the "Home" page, a horizontal scroll bar appears and the focus outline is extended out just past the original size of the fieldset element. Hey Mike, To get rid of that horizontal scrollbar*, looks like you

[jQuery] load image by ajax..how?

2007-04-28 Thread joomlafreak
I need for one application relatively big size background images which change every few seconds. I was wondering if it is possible to load the images one by one using ajax and then set some clause to use it from the DOM after it is loaded for the cycle and not loading it from the server. The secon

[jQuery] Re: Determining when an image is fully loaded

2007-04-28 Thread Sean Catchpole
Try this: $('#pictures').html(...).bind("load",function(){...}); ~Sean

[jQuery] Re: Replacing the contents of a div that uses newsticker plug-in

2007-04-28 Thread Sean Catchpole
Looking at the code for newticker, you might/should be able to just recall $("ul").newsticker() and it should reset the ul. If for some reason it doesn't work, then this might be the change that the plugin needs: stopTicker = function(el) { if(el.tickfn) clearInterval(el.tickfn); } ~Sean

[jQuery] Re: Autocomplete plugin problem

2007-04-28 Thread Jörn Zaefferer
Dan G. Switzer, II schrieb: Stefan, as i highlight multiple hits (search for "jo ro" in the single person demo) i need to disable jörns markup, but i did not find out how. formatItem: false, did not help. any hit for me? Last time I checked, disabling the automatically highlighting

[jQuery] Re: Replacing the contents of a div that uses newsticker plug-in

2007-04-28 Thread djl
Thanks for your replies on this. I only just got around to trying out the suggestions to use jquery to update the div contents. Unfortunately, they don't seem to work and produce the same result as my initial code? There must be a way to do this. Any advice most appreciated. Thanks. On 27 A

[jQuery] Re: SPAM-LOW: [jQuery] Re: Replacing the contents of a div that uses newsticker plug-in

2007-04-28 Thread djl
I'm a bit lost with your suggestion here? Are you saying I should add the lines: self.items = jQuery("li", self); self.items.not(":eq(0)").hide().end(); self.currentitem = 0; into the replacecontents function? Please advise. Thanks. On 27 Apr 2007, at 15:28, Dave Cardwell wrote: djl w

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Ian Struble
On 4/28/07, Michael Geary <[EMAIL PROTECTED]> wrote: Indeed there is, return false. See my #1 example which is similar to yours... I should have used my eyes before I started typing. My question's code is almost exactly what you wrote, just cosmetic differences. I missed the assignment + ret

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Michael Geary
> From: Ian Struble > Just out of curiosity is there a way to break out while > iterating with .each()? Again building on the previous > example (Mike's #2 this time): > > $(function() { >$('tr').each( function() { >var allEmpty = true; >$('td', this).each(funcion() { >

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Ian Struble
[...] isn't there a big performance impact using this piece of code? That's why I said play around a bit ;^) I threw that idea out there mostly because it is sort of inside-out from style that I would probably have tried first and it was just building off the previous example. That sort of t

[jQuery] Re: datePicker v2 beta

2007-04-28 Thread R. Rajesh Jeba Anbiah
On Apr 24, 2:54 pm, "Kelvin Luck" <[EMAIL PROTECTED]> wrote: > Hi, > > I'd like to announce the beta release of v2 of my datePicker plugin for > jQuery. This release is a complete rewrite which makes the date picker > considerably more powerful and flexible than it previously was. Check out the

[jQuery] Re: About form upload

2007-04-28 Thread Massimiliano Marini
Hi Mike, > Just start with something simple, like this: I was getting lost in a water glass many thanks for your help and great script, now is more clear. -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay

[jQuery] Difference of $.getJSON versus $get

2007-04-28 Thread wyo
What's the difference of $.getJSON versus $.get? I currently use $.getJSON to load JSON data but I can't see any advantages. Is $.getJSON just another way for $.ajax({ type: "GET", url: "link name", dataType: "json", complete: "function name" }) or is the callback excuted only whe

[jQuery] Re: click event and z-order

2007-04-28 Thread Ian Struble
The event is not passed down to the underlying event but rather it bubbles up through the dom tree from the event where the event was triggered. http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-bubbling An example is probably easier to digest. This code has click handlers at bod

[jQuery] simple fade in jqeury

2007-04-28 Thread happycodr
my idea. content = klik= fade out new ''' new () '' oke,plz withd html

[jQuery] Determining when an image is fully loaded

2007-04-28 Thread wyo
I load images with $('#pictures').html(''); and want to save the loaded width,height afterwards. It seems this is only possible after the image is fully loaded. Is there an event which I could bind a function? O. Wyss

[jQuery] Re: Interacting with TR an TD

2007-04-28 Thread Feed
Hey Mike, thanks for you answers... your code is being executed much faster, thanks! I just changed this: var $td = $('td',this); to var $td = $('td:gt(1)',this); Because I want to exclude the first TD from the checking. Right now it's conflicting with another line of code that "stripes" (zeb