[jQuery] looping through items with a delay

2008-05-11 Thread pedalpete
I've got a jquery page with a google map, and I need to retrieve lat long values for items to be put on the map. However, I don't want the visitors machine to try and get all the lat longs at once, as i think that would be an overload (and I think you are limited to 1 request per second per ip ad

[jQuery] Re: why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-11 Thread Brandon Aaron
jQuery UI depends on jQuery 1.2.4a because we are making new updates to jQuery to make sure jQuery UI performs its best. The final version of jQuery UI will also have a final version of jQuery to go along with it. -- Brandon Aaron On May 11, 8:59 pm, Eric Ongerth <[EMAIL PROTECTED]> wrote: > Oh,

[jQuery] Re: Dynamic Software causing many script loads, how would one handle this?

2008-05-11 Thread Ryura
You *could* have a PHP that you call with $.getScript that'll use the GET variables to spit out specific javascript depending on the plugins, but that's a pretty lame way of doing things. On May 11, 6:58 pm, "Lee O" <[EMAIL PROTECTED]> wrote: > I have an application that has many plugins, all of

[jQuery] Re: why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-11 Thread Eric Ongerth
Oh, ok. Thank you. The jQuery website gave me no idea that jquery ui 1.5b4 was dependent on jquery 1.2.4a. In fact I had no idea 1.2.4a was even available. Allright... I switched to the (nightly) 1.2.4a, and the error of course disappeared. The jqueryUI site could make it more clear that a sp

[jQuery] Re: add/remove class click function

2008-05-11 Thread thekman
Thanks a million Dave, both examples work a treat... I just had to remove the extra . after $this in (example 1) and in example 2, remove the extra . between addClass(togv[1]). .parents( and change my layout code to rather than it now works as expected... so thanks again...

[jQuery] Re: why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-11 Thread Ariel Flesler
OuterWidth has been include along with the rest of Dimensions' methods into jQuery 1.2.4a which (as far as I know) is the release that comes with the last UI. Are you seeing this on Safari ? I got a failing test on Safari for outerWidth. -- Ariel Flesler http://flesler.blogspot.com On 11 mayo,

[jQuery] why is droppable() 's init method trying to read outerWidth() of a div?

2008-05-11 Thread Eric Ongerth
Take a look the following from jquery.ui-all-1.5b4.js: -- it's inside of the droppable() method's init method: 802 //Store the droppable's proportions 803 this.proportions = { width: this.element.outerWidth(), height: this.element.outerHeight() }; I have been stuck for a while on an error this

[jQuery] Re: add/remove class click function

2008-05-11 Thread Dave Methvin
Ah, I think I see it, but I should have seen it earlier. I'm going to assume your two .click() methods are inside a .ready() handler or other block that doesn't execute until the markup is there. Remember that the .click() method sets an event handler for the elements matching the selector **at

[jQuery] [ANNOUNCE] jQuery Intro at Boston PHP User Group

2008-05-11 Thread Rey Bango
Next month's BostonPHP user group: An introduction to jQuery (http://www.bostonphp.org/content/view/107/9/) Rey...

[jQuery] [PLUGIN] growl for jquery

2008-05-11 Thread Rey Bango
Growl for jquery http://projects.zoulcreations.com/jquery/growl/ Rey

[jQuery] Re: slideup() issue with IE. HELP NEEDED

2008-05-11 Thread churock
Hey, the site is working now. My sincerest thanks to you all for the help! -Chad On May 10, 10:08 am, Jong <[EMAIL PROTECTED]> wrote: > Ahh, thanks for pointing that out :o) > > On 10 Maj, 15:04, "Richard D. Worth" <[EMAIL PROTECTED]> wrote: > > > On Sat, May 10, 2008 at 8:46 AM, Jong <[EMAIL P

[jQuery] Re: How do I get post data to go with it?

2008-05-11 Thread Jón Helgi Jónsson
Oh thats beautiful, thank you! On Sun, May 11, 2008 at 10:17 PM, Jason Huck <[EMAIL PROTECTED]> wrote: > > You're pretty close, but you don't need *both* $.post() and .load(). > Just pick one or the other. Using .load() is a little bit simpler, but > I believe it uses GET behind the scenes: > >

[jQuery] Dynamic Software causing many script loads, how would one handle this?

2008-05-11 Thread Lee O
I have an application that has many plugins, all of which have jquery scripts. Now, i imagine there are ways to program an javascript aggregator of some sort, but i imagine this is a very common problem with plugin based web-apps, so i was curious if jquery had any ways to handle this. To reiterat

[jQuery] Why does this not preload an image correctly?

2008-05-11 Thread Giant Jam Sandwich
I seem to be having a problem with some code similar to the pseudo- code below. Assume that I am getting an XML document that has nodes called "src" that hold image source urls, and that "someDivId" has a display property of "none" set in the CSS. - - - $(function(){ $.get( "doc.xml", functi

[jQuery] Re: How do I get post data to go with it?

2008-05-11 Thread Jason Huck
You're pretty close, but you don't need *both* $.post() and .load(). Just pick one or the other. Using .load() is a little bit simpler, but I believe it uses GET behind the scenes: $(function(){ $('#yourbutton').click(function(){ $('#submit_result').load('test.php', { inp

[jQuery] Re: JQ Comments and Bug help

2008-05-11 Thread darren
hi there I'm fairly new to jQuery / javascript as well, but when i run into similar problems, I can usually determine what is wrong using firebug. If you aren't using it yet, get it now, as it will save you a lot of head scratching. Your problem looks like you are trying to access a function on

[jQuery] Re: jQuery not working after loading content via Ajax .load

2008-05-11 Thread jkab
Ariel Flesler wrote: > > > Cool, don't combine with LiveQuery, specially with the option lazy on, > or it'll get called many times. LocalScroll can handle just fine by > itself. > > You MUST preserve the element you call LocalScroll on among the > loadings. > Below it, you can change w/e yo

[jQuery] Re: add/remove class click function

2008-05-11 Thread thekman
Hi Dave, Below is the code... $('.min').click(function() { $ (this).removeClass("min").addClass("max").parents(".Container").children(".Content").hide(); $.cookie($(this).parents(".Container").attr("id"), 'closed', { expires: 7 }); }); $('.max').click(function() { $ (this).removeClass("max").ad

[jQuery] JQ Comments and Bug help

2008-05-11 Thread EtheB
This message was also posted in the General Discussion Group, but I'm a bit confused how things work around here so please forgive this newbie to the JQuery world. It's taken me a little while, but I believe I have finally succumbed to the power and wonder that is... JQuery. I have been

[jQuery] How do I get post data to go with it?

2008-05-11 Thread Jón Helgi Jónsson
Hi, I'm new to Jquery. I'm trying to send the post data from an input box to test.php however it doesn't go over when test.php loads into #submit_result. This is what I have so far. What am I doing wrong? I know I am doing something dumb. function my_onclick() { $.post("test.php", {

[jQuery] JQ comments (and help with a bug?)

2008-05-11 Thread snoodle
It's taken me a little while, but I believe I have finally succumbed to the power and wonder that is... JQuery. I have been bouncing from framework to framework for about 9 months, much of that time devoted to building my own. I was on the cusp of giving in to ExtJS at one point, but in the end,

[jQuery] Re: ajaxForm replacing content in the wrong element

2008-05-11 Thread pedalpete
Thanks Mike, That worked beautifully, and your answer was very succinct. Apparently I have been overcoding the ajaxForm for some time now. Pete

[jQuery] Re: add/remove class click function

2008-05-11 Thread Dave Methvin
> i am using the code below to hide some content, the first part works > ok & hides the content as expected but i cant get the second part to > work - i.e. showing the content again - any ideas? Can you show a sample of the markup, or better yet link to a test page?

[jQuery] Selecting elements with css background images

2008-05-11 Thread tpaksu
Hi, I want to select the nodes which has a background image defined by css. But I think this could be only possible by cycling all the dom nodes and checking each of them. Is there any short way? And if the css is defined outside by a class property this should be selected too :( .class {backgro

[jQuery] empty class return undefined .. bug ?

2008-05-11 Thread Adwin Wijaya
I have code .. to check what class in every id .. i found that if the class="", attr will return undefined ... example: className = $('#myid').attr('class'); I use Jquery 1.2.4b from ui.jquery.com is it the bug or it is the correct result from attr() ?

[jQuery] Re: validate with form plugin

2008-05-11 Thread Frantisek Malina
Hi, I used this form validation at http://www.mortgageworkout.co.uk/contact You can use on PHP validation classes, for people without javascript and other sneaky bastards ;) http://www.google.com/search?q=PHP+form+validation+class It's good to make sure that your JavaScript validation logic is th

[jQuery] Re: setInterval for $.get .php

2008-05-11 Thread Michael
Thanks, works! On May 11, 4:06 pm, "Mike Alsup" <[EMAIL PROTECTED]> wrote: > On Sun, May 11, 2008 at 7:51 AM, Michael <[EMAIL PROTECTED]> wrote: > > > Hello, i just recently started using jQuery and I have to say it works > > great. > > However I cannot figure out how to constantly (every 5 sec

[jQuery] Re: Set #iframe height to "height of the window " - "height of the #wrapper"

2008-05-11 Thread Frantisek Malina
How to make this easier on the eyes? $(document).ready(function(){ $("iframe").height($(window).height() - $("#wrapper").height() - 20); window.onresize = function() { // repetition $("iframe").height($(window).height() - $("#wrapper").height() - 20); }; }); On May 11, 2:07 pm, Fra

[jQuery] add/remove class click function

2008-05-11 Thread thekman
hi all, i am using the code below to hide some content, the first part works ok & hides the content as expected but i cant get the second part to work - i.e. showing the content again - any ideas? i don't want to use toggle as i am displaying the content based on a cookie value & when the cookie i

[jQuery] Re: Best way to autocomplete 2000 items

2008-05-11 Thread MorningZ
What kind of backend are you running? (php, asp, etc) If it was me (and i program in .NET), i'd make an initial call to the DB to grab all records, cache it to disk or memory, then hit the cache with the AJAX calls I do something like this for ~ 1000 records and it behaves really fast :-)

[jQuery] Re: jQuery Validation Plugin

2008-05-11 Thread Jörn Zaefferer
You can set the debug-option to true to always prevent the form submit. That way you'll get to see the error message, ie. on the Firebug console, to debug the issue. If that doesn't help: Please provide a testpage. Jörn On Sun, May 11, 2008 at 1:22 PM, juro <[EMAIL PROTECTED]> wrote: > > Hi, >

[jQuery] Re: validate with form plugin

2008-05-11 Thread Jörn Zaefferer
What exactly are you trying to achieve? Currently the only thing I can provide is a pointer at the example you already found... Jörn On Sun, May 11, 2008 at 2:37 PM, András Csányi <[EMAIL PROTECTED]> wrote: > Hi all! > > I'm new in jquery and i have a queston. Somebody knows usable example > lik

[jQuery] Re: Set #iframe height to "height of the window " - "height of the #wrapper"

2008-05-11 Thread Michael Geary
Something like this: $('#iframe').height( $(window).height() - $('#wrapper').height() + 'px' ); > How do I set height of the element called #iframe to "height > of the window " - "height of the #wrapper div"? > > I'd love to write: > #iframe.height = window.height - #wrapper.height > > But I

[jQuery] Re: jQuery not working after loading content via Ajax .load

2008-05-11 Thread Ariel Flesler
Cool, don't combine with LiveQuery, specially with the option lazy on, or it'll get called many times. LocalScroll can handle just fine by itself. You MUST preserve the element you call LocalScroll on among the loadings. Below it, you can change w/e you want. If the 'target' is a selector, it ca

[jQuery] Re: find by partial id

2008-05-11 Thread Armand Datema
Hi I think you are using aps.net so you could try the asp.net call to get a cleintid <%=lblName.ClientID %> On 5/11/08, steve_f <[EMAIL PROTECTED]> wrote: > > > you can use the following > $("[EMAIL PROTECTED]'lblName']") > > > > On May 11, 8:37 am, vladv <[EMAIL PROTECTED]> wrote: > > hello >

[jQuery] Re: setInterval for $.get .php

2008-05-11 Thread Mike Alsup
On Sun, May 11, 2008 at 7:51 AM, Michael <[EMAIL PROTECTED]> wrote: > > Hello, i just recently started using jQuery and I have to say it works > great. > However I cannot figure out how to constantly (every 5 seconds for > example) refresh results by running the query script over and over. > > in

[jQuery] validate with form plugin

2008-05-11 Thread András Csányi
Hi all! I'm new in jquery and i have a queston. Somebody knows usable example like this to using form plugin with validate plugin(http://jquery.bassistance.de/validate/demo/ajaxSubmit-intergration-demo.html)? I tried 4 hours writing a working code, but i have failed (and i'm tired and nervos). I'

[jQuery] Re: jQuery not working after loading content via Ajax .load

2008-05-11 Thread jkab
Ariel, Wow.. I was unaware of the Ajax demo within the jQuery LocalScroll plugin. I had only visited the regular demo. I'm definitely going to spend some time studying the syntax in this demo page. Thanks so much, Ariel. I've also looked into LiveQuery and will try this out as well. Thanks al

[jQuery] Set #iframe height to "height of the window " - "height of the #wrapper"

2008-05-11 Thread Frantisek Malina
As it says on the tin: How do I set height of the element called #iframe to "height of the window " - "height of the #wrapper div"? I'd love to write: #iframe.height = window.height - #wrapper.height But I suppose jQuery isn't going to read my mind yet :)

[jQuery] setInterval for $.get .php

2008-05-11 Thread Michael
Hello, i just recently started using jQuery and I have to say it works great. However I cannot figure out how to constantly (every 5 seconds for example) refresh results by running the query script over and over. in Firefox 2.0 this does work, however in Internet Explorer 6.0 (and I think in 7.0

[jQuery] jQuery Validation Plugin

2008-05-11 Thread juro
Hi, In the documentation of the jQuery Validation Plugin, by default the form is not sent if invalid. "By default, the form submission is prevented when the form is invalid, and submitted as normal when it is valid." In my case this is not true. How can I debug this?

[jQuery] Re: find by partial id

2008-05-11 Thread steve_f
you can use the following $("[EMAIL PROTECTED]'lblName']") On May 11, 8:37 am, vladv <[EMAIL PROTECTED]> wrote: > hello > please help me with a simple question > > i have a control which is rendered couple of times (gridview) and gets > some id which i know only part of, for example if i named

[jQuery] Re: Java applet doesn't load when markup loaded via jquery

2008-05-11 Thread .M.
Follow up - I can get my applet loaded and running in a jquery tab (issue above was applet-specific) but this leads to another question - Is there a way ui.tabs could work that allowed an applet to stay loaded? I've been reading up on this and it appears there is a workaround for hiding and reve

[jQuery] Re: jCarousel with text

2008-05-11 Thread Null
Any 1 who can help me with this? The idea is to have pictures from a database and the corresponding text (which belongs to it), placed underneeth each other in a html file. So: [pic] [pic] texttext etc Thanks

[jQuery] Re: find by partial id

2008-05-11 Thread darren
could you try to build up the whole id name with a string variable? var full_id = knownCommonPart + chaingPart; jQuery("#" + full_id).doStuff(); On May 11, 12:37 am, vladv <[EMAIL PROTECTED]> wrote: > hello > please help me with a simple question > > i have a control which is rendered couple of

[jQuery] Re: Tabs 3 Css problem

2008-05-11 Thread YWFTDG
Klaus, Thanks, that solved it, I saw this in better detail on the full documentation and applied it to the target divs and tabs nav. Overall its working great now, but I noticed going from a ajax loaded php page with quicktime, it fades in the page, but clicking back on a different tab it doesn't

[jQuery] Re: ajaxForm replacing content in the wrong element

2008-05-11 Thread Mike Alsup
> I'd like to think I'm getting pretty good with ajaxForm, but > apparently not. > > I've got a form submitting, and it is supposed to send the response > to an element on the page, and leave the form in place. > > However, what's happening is that the form which it is submitted from > is being r

[jQuery] find by partial id

2008-05-11 Thread vladv
hello please help me with a simple question i have a control which is rendered couple of times (gridview) and gets some id which i know only part of, for example if i named my label lblName then on each row I will have gvMyGrid$ctr32$lblName or something like this.. how can I find all the label