[jQuery] Re: jQuery.uploader released: Flash based jQuery uploader

2008-12-18 Thread rernens
Gilles, I finally found why the swf would stop responding and properly handling events that you might have been aware of but I was not. In fact my fileUploadStarted event was hiding the button that serves at lauching the load. The button is just behind the transparent movie. By error I was also

[jQuery] Re: Make li list of unique json data?

2008-12-18 Thread alpha tester
Amazing! Love the way you can take what was about 90 lines of javascript and turn it into about 5 of jquery and the jquery ends up being far more flexible! Thanks very much for your help! (do you know of any tutorials that cover this sort of dataset management stuff (push/group etc))

[jQuery] jquery.corner.js and ajax request

2008-12-18 Thread fabrice.regnier
Hi to all ;) jquery.corner doesn't work when html is written in ajax request on the fly and send back to the client. Should i use LiveQuery or something else to make it working ? thanx and regards, f.

[jQuery] Re: Make li list of unique json data?

2008-12-18 Thread alpha tester
Hmmm... struggling to read from this new dataset using the code provided - can someone point out the stupidity in the following code: html head script type=text/javascript var myData = { records : [ { CATEGORY : Sport, TITLE : The world of sport, LINK: http://test.com; }, { CATEGORY :

[jQuery] Simple Accordion menu script

2008-12-18 Thread Ettiene
Hi there, I've implemented the accordion menu from this site: http://www.i-marco.nl/weblog/jquery-accordion-menu-redux2/ It works vry well, markup is cleaner than any other jquery accordion script I've come across sofar, but I need some help with the functionality. Basically how this script

[jQuery] Re: [validate] Ignore maxLength in validated field

2008-12-18 Thread Jörn Zaefferer
Try this: delete $.validator.methods.maxlength; That should remove the maxlength-validation method, therefore ignoring the attribute in the markup. Jörn On Thu, Dec 18, 2008 at 12:31 AM, Titus titus.john...@50below.com wrote: I'm using another jQuery plugin (jquery.textCounting.js) to

[jQuery] Selector not working ?

2008-12-18 Thread Antoine Roux
Hi, I am confronted to a problem that remains totally mysterious to me. I have some selectors that do not seem to work. I am using jQuery for the website of my company that is built upon Drupal. I also use the Curvy Corners and the Drop Shadow plugins. Everything is working fine on this

[jQuery] Tablesorter plugin: adding alternating colors

2008-12-18 Thread adeveloper
My table has alternating row coloring. It get's messed up after sorting (eg, instead of odd, even, odd I get something like even, even, odd, even, even...etc) I was trying to fix that with Zebra widget but gave up. All I need to do is to call this simple function to

[jQuery] Re: Fetch (ajax) a file only if it's been modified

2008-12-18 Thread Mike Alsup
     $.ajax({           url: livedata_fetch.php,           ifModified: true,           success: function(data){                $(div#livedata).html(data);           }      }); That's the correct way to do it. Does that page have a Last-Modified header? Does the server return a 304 on

[jQuery] Re: [validate] optionally trim input

2008-12-18 Thread Jörn Zaefferer
That was a regression in the latest release. I've commited a fix (http://jqueryjs.googlecode.com/svn/trunk/plugins/validate). Will be included in the next release. Jörn On Thu, Dec 18, 2008 at 12:42 AM, stephen friedrich stephen.friedr...@googlemail.com wrote: I noticed that in the Isn't that

[jQuery] Re: Selector not working ?

2008-12-18 Thread Mike Alsup
script $(.welcome-picture).mouseover(function(){   $(.welcome-desc).hide();   $(# + this.id + -desc).show(); }); $(#welcome-sip).click(function() {   window.location =http://www.net-vitesse.com/content/mclink;; }); $(#welcome-services).click(function() {   window.location

[jQuery] Re: jquery.corner.js and ajax request

2008-12-18 Thread Mike Alsup
jquery.corner doesn't work when html is written in ajax request on the fly and send back to the client. Should i use LiveQuery or something else to make it working ? You can use LiveQuery, or your own rebinding code, to initialize the corners on dynamic content.

[jQuery] Navigation with active state

2008-12-18 Thread aryan
I have a navigation like this div id=mainnav ul id=nav li class=suba href=a.htmlb class=img src=img1-off.gif alt=About GTx //b/a ul lia href=a.htmlnav1 /a/li lia href=b.htmlnav2 /a/li lia href=c.htmlnav3 /a/li /ul /li li class=suba href=d.htmlb class=img src=img2-off.gif alt=About GTx //b/a ul

[jQuery] Re: Selector not working ?

2008-12-18 Thread Liam Potter
Can I ask why you don't just use a link for these? $(#welcome-sip).click(function() { window.location =http://www.net-vitesse.com/content/mclink;; }); $(#welcome-services).click(function() { window.location =http://www.net-vitesse.com/content/services;; }); $(#welcome-soa).click(function()

[jQuery] Re: Selector not working ?

2008-12-18 Thread Antoine Roux
Hi, You are right, it appears I did not understand the way click() and mouseover() are working. It solved my problem. To answer Liam : I did not use a link as I am using both a picture and a text and I'd rather have the text written rather than included in the picture. This gives a sligthly

[jQuery] Re: Selector not working ?

2008-12-18 Thread Liam Potter
You can wrap the link around the image and text. Antoine Roux wrote: Hi, You are right, it appears I did not understand the way click() and mouseover() are working. It solved my problem. To answer Liam : I did not use a link as I am using both a picture and a text and I'd rather have the

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-18 Thread MorningZ
I was trying to fix that with Zebra widget but gave up. Well, this tablesorter plugin most definitely does work, both on load and client sorting i'd suggest being more descriptive on why you gave up (explanation? example code? question to clarify what it does?), instead of trying to

[jQuery] Re: jquery.corner.js and ajax request

2008-12-18 Thread Mike Alsup
Here is the code that should show 2 divs with corners and foo and foo2 in it. Where is my mistake ? script type=text/javascript $(document).ready(function(){         $('.rounded').corner();         $(#Idsubmit).livequery('click', function() {                

[jQuery] Re: jquery.corner.js and ajax request

2008-12-18 Thread fabrice.regnier
Ok, i know now that i have to rebind but in wich way ? Here is the code that should show 2 divs with corners and foo and foo2 in it. Where is my mistake ? thanks and regards, f. html head script type=text/javascript src=../util/js/jquery.js/script script type=text/javascript src=../util/js/

[jQuery] Re: jquery.corner.js and ajax request

2008-12-18 Thread fabrice.regnier
You are only calling 'corner' once so it will only execute once.  If you want it to execute after Idsubmit has been clicked then you need to call it in that event handler.  Perhaps like this: Thanks a lot, really. More over, thanks to the well known jquery plugin creator, i've cited Mike

[jQuery] Re: clueTip: set options on the fly for individual elements

2008-12-18 Thread Karl Swedberg
the clueTip options are pretty much set up the way Mike Alsup describes in his excellent blog post, http://learningjquery.com/2007/10/a-plugin-development-pattern I've never actually used the metadata plugin, but maybe this would be the way to go. In any case, clueTip supports it. If someone

[jQuery] Simple way to track dragging?

2008-12-18 Thread Eridius
I know i can do mouseup/mousedown to track where the mouse was clicked down and where the mouse was clicked up but it there a simple way to track the dragging from those 2 point without inlcude 25K mined js from jquery ui(which is 9X+ the size of my current plugin). -- View this message in

[jQuery] element:gt(0) works in FF, but not in Safari/IE/Chrome

2008-12-18 Thread DasJan
Hi! I have the following code which, using jQuery 1.1.2 works in FF/Safari/ IE: function menu_loader() { var speed = 200; var item_title = new Array(); var items = new Array(); var i = 0; $(#menu ul).each(function() { items[i] = $(#menu

[jQuery] Anyone Else Seeing This?

2008-12-18 Thread PawPrint
I can't even say if this is related to JQuery or not - but I'm hoping someone else might have an idea. I have a myriad of sites that use a framework I have developed all use packaed and gzipped JS loaded in the Head from an external file including JQuery and JQuery UI. Works fine on PCs (all

[jQuery] Pro Javascript Techniques Doubt

2008-12-18 Thread Pablo Fernandez
Hi, I'm reading Pro Javascript Techniques from John Resig, and I'm confused with an example. This is the code: // Create a new user object that accepts an object of properties function User( properties ) { // Iterate through the properties of the object, and make sure // that it's properly

[jQuery] Re: element:gt(0) works in FF, but not in Safari/IE/Chrome

2008-12-18 Thread Jan Rocho
I have done some additional testing and I think this might be a jQuery bug which was introduced at v1.2.5. jQuery v1.2.4 was not released and the script works in all browsers up to jQuery 1.2.3. But one of my other scripts only works in jQuery 1.2.6, so I need that version. On Thu, Dec 18, 2008

[jQuery] [validate] working on C#

2008-12-18 Thread Rodrigo
I'm working with C# and have some problems to integrate with jquery in order to validate forms. Anyone have a example page working with aspx and the events? sometimes need disable the validation but send the callback , someone knows a disable feature ? thanks

[jQuery] a question to animate

2008-12-18 Thread Ante Damjanovic
Hello, i wrote a accordion like plugin for a page navigation and i want an element to grow up and move to the left side. The only way i found was: jQuery(elem).animate({ width:583px, left: -525px}); with this method the whole element is moved to the left by growing up and it seems to

[jQuery] Re: a question to animate

2008-12-18 Thread Liam Potter
animate the width, not the position. Ante Damjanovic wrote: Hello, i wrote a accordion like plugin for a page navigation and i want an element to grow up and move to the left side. The only way i found was: jQuery(elem).animate({ width:“583px“, left: „-525px“}); with this method the

[jQuery] Re: Creating an OS Web Interface in jQuery (Part I)

2008-12-18 Thread AdrianMG
Thanks for all guys! @Alexandre nice link thanks for sharing On Dec 17, 4:00 pm, .net junkie dejav...@gmail.com wrote: i i like you tutorial very much its a gr8 effort. keep it up. hope to see more soon :)

[jQuery] Re: Using the not() filter

2008-12-18 Thread WhoButSB
Woot that worked! Thank you for your help Ricardo and everyone else! I will definitely be using that code over again in the future. Happy Holidays! On Dec 16, 1:56 pm, Ricardo Tomasi ricardob...@gmail.com wrote: Right, so that explains all. Nobody paid any attention to the nested in certain

[jQuery] Re: [validate] optionally trim input

2008-12-18 Thread stephen friedrich
Thanks a lot for the quick answer. That ups my confidence in choosing the plugin for our internal JSF components. (I was fed up with fighting 3rd party components sets and decided that we create our own. But then of course we need client-side validation integrated in JSF to amend the default

[jQuery] Re: using cycle for website navigation, choppy in firefox

2008-12-18 Thread Mike Dodge
I changed it to absolute instead of fixed, didn't fix it. I'm not sure what you meant by Try using it as a background-image for the body or a layer. That background image is in the layout template and does not cycle. This started happening when I added the .scrolling div. The CSS for that is:

[jQuery] Re: using cycle for website navigation, choppy in firefox

2008-12-18 Thread Mike Dodge
I just figured something else out. I took out this line out of that CSS block: overflow-y: auto !important; And it fixed the problem. Does anyone know of a workaround for this? Thanks Mike On Thu, Dec 18, 2008 at 8:34 AM, Mike Dodge dmikest...@gmail.com wrote: I changed it to absolute instead

[jQuery] keep user from clicking links while cycle is in motion

2008-12-18 Thread Mike Dodge
I am working on a site here: adc4web.adceval.com I have a problem where while the cycle is shifting a page, the user can still click a link and this screws up the cycle after clicking a bunch of links. Is there a way to prevent the user from clicking a link until the cycle is done?Thanks Mike

[jQuery] Re: Anyone Else Seeing This?

2008-12-18 Thread tlob
url pleeese! On Dec 18, 2:02 pm, PawPrint sc...@pawprint.net wrote: I can't even say if this is related to JQuery or not - but I'm hoping someone else might have an idea. I have a myriad of sites that use a framework I have developed all use packaed and gzipped JS loaded in the Head

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Balazs Endresz
The context of the closure after the loop should be changed, currently it points to the `window` object. It seems like a typo, as it's even noted that you have to ...make sure that it's properly scoped })(); }-}).call(this); } On Dec 18, 2:08 pm, Pablo Fernandez

[jQuery] Re: working on C#

2008-12-18 Thread MorningZ
and have some problems What are those problems?Can't find the objects in the selectors? Something else? and you aren't making it clear what validation you are talking about (ASP.NET validator controls?, jQuery validator plugin?) without knowing any of the above, there is something to say

[jQuery] Re: Anyone Else Seeing This?

2008-12-18 Thread PawPrint
Here are several: http://www.sunshinecoastcanada.com (more complex) http://www.bellacoola.ca/ (more complex) http://www.popeyesstorage.com/ (super-simple) All these seem to have the problem (again no mac here) On Dec 18, 6:53 am, tlob tlohb...@gmail.com wrote: url pleeese! On Dec 18,

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Pablo Fernandez
thanks that seems to work, but the 'getname' method returns 44 instead of Bob, and then 22... it appears that it's pointing to the age variable, any idea why? thank you!

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Pablo Fernandez
another thing... why inside the anonymous function 'this' refers to 'window' ?? it's totally misleading...

[jQuery] Re: working on C#

2008-12-18 Thread Rodrigo
Thanks MorningZ. I'm using Jquery Validation plugin (http://bassistance.de/jquery- plugins/jquery-plugin-validation/) (I understand that the title [validate] is relative to the plugin name). I try, only a validation trought this aproach, but I think that is a lot of code to write and Jquery

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Balazs Endresz
Oops, I didn't notice it: you have to pass the `i` variable too: for ( var i in properties ) { (function(i){ That's why you need the closure at all. Without that you will get the last property from all getters. The reference of `this` will always change if you put it in an additional

[jQuery] Re: libraries

2008-12-18 Thread Olivier Percebois-Garve
1.you just dont need to put ids in li element. All what you want to do is doable only with on id on the root ul. Do do that , you should use relative selectors such as: $tree = $('#mytree'); $('li', $tree).doSomething(); 2.ok 3.yes it is the correct design. 4.licence. if you want to attract

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Pablo Fernandez
That did it, although I had to add this too -- }).call(this,i); in order to pass the parameter Thanks Balazs!!! On 18 dic, 12:29, Balazs Endresz balazs.endr...@gmail.com wrote: Oops, I didn't notice it: you have to pass the `i` variable too:   for ( var i in properties ) { (function(i){

[jQuery] Re: Anyone Else Seeing This?

2008-12-18 Thread tlob
Everything fine here. All Pages load around 6s the first time, 2 to 3s the second time (cache). I am on 10.5.6 Safari newest version. Sitting in europe ;-) cheers tom

[jQuery] Re: FlexBox Plugin Not Paging

2008-12-18 Thread Magi
Thanks to Flexbox Author! Client-Side Paging Implemented. See, http://www.fairwaytech.com/flexbox/Demos.aspx #11. Issue Closed... On Dec 17, 4:40 pm, Magi phpevangel...@gmail.com wrote: [Synopsis] Dynamic 20 count list. Need displayed 5 results per page. 4 pages total. [Currently] Data

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Balazs Endresz
I've just had a look at it and where this issue comes up in the book there's a new variable declared (like on page 153). No need to pass the argument this way, moreover not that easy to mistype: for ( var j in properties ) { (function(){ var i=j; ... I can't believe no one has spotted

[jQuery] Activate tab then scroll to an element

2008-12-18 Thread Gordon
I've got a jQuery script that makes links open in a new JavaScript window, to show a page of content regarding jargon. However, that content is now being moved into a UI tab in the current page, instead. I want to modify my script to activate the tab and then jump down to an element with an ID

[jQuery] Re: Anyone Else Seeing This?

2008-12-18 Thread DasJan
They are loading fast over here in Europe. Safari 3.2.1 Firefox 3.0.4 on first Generation MacBook with OS 10.4.11. On 18 Dez., 16:10, PawPrint sc...@pawprint.net wrote: Here are several: http://www.sunshinecoastcanada.com(more complex)http://www.bellacoola.ca/(more

[jQuery] Re: a question to animate

2008-12-18 Thread Olivier Percebois-Garve
You can chain some css changes, to happen before, or after the animation. I think that you need to set it to right : 0, and only after that animate it. without a link to your stuff would be nice though On Thu, Dec 18, 2008 at 2:23 PM, Ante Damjanovic damjano...@medwell.atwrote: Hello, i

[jQuery] Re: a question to animate

2008-12-18 Thread Olivier Percebois-Garve
err . the without is a pasting error. sorry. On Thu, Dec 18, 2008 at 5:26 PM, Olivier Percebois-Garve perceb...@gmail.com wrote: You can chain some css changes, to happen before, or after the animation. I think that you need to set it to right : 0, and only after that animate it. without

[jQuery] Re: element:gt(0) works in FF, but not in Safari/IE/Chrome

2008-12-18 Thread Ricardo Tomasi
Try this: function menu_loader() { var speed = 200; $(#menu ul).each(function(i){ var $that = $('#menu ul:eq('+i+') *:gt(0)'); /* v1 - hide items if not active */ $that.not('.active').hide(); $(this).attr('id', 'c' + i)

[jQuery] Re: [validate] optionally trim input

2008-12-18 Thread Jörn Zaefferer
I'll try to push 1.5.1 out in the next days. Let me know about other question you have, I'll try to solve them just as quick. Jörn On Thu, Dec 18, 2008 at 3:27 PM, stephen friedrich stephen.friedr...@googlemail.com wrote: Thanks a lot for the quick answer. That ups my confidence in choosing

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread pablo fernandez
That Does it too!! I still don't get why 'i' keeps always the last value if you don't do var i = j; :S On Thu, Dec 18, 2008 at 1:11 PM, Balazs Endresz balazs.endr...@gmail.com wrote: I've just had a look at it and where this issue comes up in the book there's a new variable declared (like on

[jQuery] suckerfish not working and my site is floating to the right

2008-12-18 Thread Scott
Hi I'm using suckerfish on my site at http://www.sthig.com/unisource and all works well except in IE6. I can't seem to get the menus to drop down. here is my css: http://www.sthig.com/unisource/style.css Also, everything is floated to the right thus breaking the site in IE6. Any fix to this?

[jQuery] IE8.

2008-12-18 Thread sferragne
Our friends at Microsoft have a lot of work to do until their new born browser IE8 (Still in Beta 2) actually works the way it should. It seems that there is a major event triggering issue. Lots of jQuery core functionalities depends of events. For the ones interested to see some upcoming

[jQuery] how do i select all anchors OUTSIDE of a specific tag

2008-12-18 Thread elubin
How do i select all of the anchor links that are NOT in the div x? body a href= onclick=alert('TODO');return false;outide div 1/a div id=x diva href= onclick=alert('TODO');return false;inside div 1/ a/div a href= onclick=alert('TODO');return false;inside div 2/a a href=

[jQuery] Dynamic form validation on different names possible?

2008-12-18 Thread dfiguero
Hi, I'm trying to validate a form with a dynamic date fields. Something like: tr id=period1 class=someclass td input type=text name=date-1-start id=date_1-start value=Mar. 29, 2008 / input type=text name=date-1-end id=date_1-end value=Mar. 29, 2008 / /td /tr tr id=period2

[jQuery] Suckerfish not dropping down and everything is floated to the right

2008-12-18 Thread Scott
Hi I'm using suckerfish on my site at http://www.sthig.com/unisource and all works well except in IE6. I can't seem to get the menus to drop down. here is my css: http://www.sthig.com/unisource/style.css Also, everything is floated to the right thus breaking the site in IE6. Any fix to this?

[jQuery] Event listener optimisation advice

2008-12-18 Thread fambi
Hi All, Is there some kind of performance cost in setting up lots of event listeners? For example, rather than setting up lots of click event listeners, would it be better to set up a single one which then uses if/else to decide how to process it? Obviously, it might not always be practical,

[jQuery] Re: What am I doing wrong here -- htmlTo?

2008-12-18 Thread Vincent Robert
What you want in full jQuery is: $(#foo).empty().append('br/img src=asdf.gifbr/'); which is the exact equivalent of $(#foo).html('br/img src=asdf.gifbr/'); // html() does call this.empty().append() It is very different from the browser innerHtml since your HTML will first be parsed by jQuery

[jQuery] IE8.

2008-12-18 Thread sferragne
Our friends at Microsoft have a lot of work to do until their new born browser IE8 (Still in Beta 2) actually works the way it should. It seems that there is a major event triggering issue. Lots of jQuery core functionalities depends of events. For the ones interested to see some upcoming

[jQuery] stop function by mouseOver

2008-12-18 Thread tarnsfor...@googlemail.com
Hello, i m real desperate about this. with my function i displayed the content of my 3 DIV elements in a interval. it works fine. since a long time im trying to prog a feature wich make a displayStop by a mouseover. i need this to listen the long content in a div. after i moved out of the div

[jQuery] html() triggering twice?

2008-12-18 Thread Ray Myers
I'm working on this interface where there are three select elements. When an option in the first menu is clicked this code executes == $('.state_select OPTION').livequery('click', function() { var el = $(this).parent(); if ( $(el).val() != 'all' ) {

[jQuery] Re: element:gt(0) works in FF, but not in Safari/IE/Chrome

2008-12-18 Thread DasJan
Yes, I'm using Firebug on Firefox, but the Problem only shows up in Safari / IE. Here is an example page: http://dev.rocho.org/nico-jquery You can click on the menu (Arbeiten, Vita, Kontakt) and the menu will expand. It should work in FF, but not in Safari / IE - why? It also works in Safari/IE

[jQuery] Re: Dynamic form validation on different names possible?

2008-12-18 Thread Jörn Zaefferer
You could generate the rules object. var rules = {}; $(:input[name*=date-start]).each(function() { rules[this.name] = { ... } }); $(...).validate({options:rules}); Jörn On Thu, Dec 18, 2008 at 3:01 PM, dfiguero dfigu...@gmail.com wrote: Hi, I'm trying to validate a form with a dynamic

[jQuery] Re: Make li list of unique json data?

2008-12-18 Thread brian
On Thu, Dec 18, 2008 at 4:49 AM, alpha tester david.oli...@rbs.co.uk wrote: Hmmm... struggling to read from this new dataset using the code provided - can someone point out the stupidity in the following code: html head script type=text/javascript var myData = { records : [ { CATEGORY

[jQuery] stop by mouseover and run by mouseout

2008-12-18 Thread tarnsfor...@googlemail.com
hi, i have a function who displayed alternate content from 3 DIVs with a fadeIn Now i want to try, that the display rotation stoped if my mousepointer goes in the DIV but i doesnt work. whats my misstake? !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://

[jQuery] Re: Font size in sifr plugin

2008-12-18 Thread flycast
Did you get yours to work? I have not. Looks like it could be a really great plugin but I think I am going to do this the old fashion way...images. I can't wait any longer. On Dec 17, 8:24 am, A Wood alex.c.w...@gmail.com wrote: I am having the same problem.  Got the sIfr to work but can't get

[jQuery] [validate] [metadata]

2008-12-18 Thread SeanthePaddy
hi there, i have a quick question about the validation plugin - i have a big form working perfectly except for a select that will for some reason not show the error message: can anyone spot anything wrong below please : tnx sean === tr td height=40

[jQuery] syntax for $(response).$('a').each()

2008-12-18 Thread Namotco
$('#divid').load(url, function( response ){ $(response).$('a').each(function(i){ // do stuff }); }); Unfortunately, that doesn't work, what's the correct syntax for that?

[jQuery] Re: [validate] [metadata]

2008-12-18 Thread Jörn Zaefferer
Could you provide a complete example, eg. a testpage? See also http://docs.jquery.com/Discussion#Support_Questions Jörn On Thu, Dec 18, 2008 at 6:37 PM, SeanthePaddy cliffords...@gmail.com wrote: hi there, i have a quick question about the validation plugin - i have a big form working

[jQuery] Re: syntax for $(response).$('a').each()

2008-12-18 Thread Namotco
Here is what I'm trying to do: $(#MTB).load(url + #content, function(data) { $(a, data).attr(onclick,function (arr) { var href=this.attr('href'); if

[jQuery] Re: Anyone Else Seeing This?

2008-12-18 Thread PawPrint
Thanks for trying this for me... I have two users that are having problems and have given me detailed specs - and one did a fairly extensive test for me: All experience the slow 45-60sec render: G4 Tower unit / OS X 10.2.8 / Safari 1.0.3 (v85.8.1) / Mozilla 5.0 (Macintosh; U; PPC Mac OS X

[jQuery] Re: Fetch (ajax) a file only if it's been modified

2008-12-18 Thread Magnificent
Does not look to have a Last-Modified header and I'm not seeing the xhr.status code (but I'm obviously getting something in the 200 range back as I'm receiving the data?) This comes via Firebug: Response Headers DateThu, 18 Dec 2008 17:48:49 GMT Server Apache/2.0.52 (CentOS) X-Powered-By

[jQuery] Re: Fetch (ajax) a file only if it's been modified

2008-12-18 Thread Magnificent
For the Last-Modified header, do I need to do something like this in my file that gets fetched every X seconds (livedata_fetch.php in my case): header('Last-Modified: '.gmdate('D, d M Y H:i:s') . ' GMT'); On Dec 18, 9:57 am, Magnificent imightbewrongbutidontthin...@gmail.com wrote: Does not

[jQuery] Re: Event listener optimisation advice

2008-12-18 Thread Ricardo Tomasi
Yes, there is. There is a technique called event delegation which consists of exactly that. the Delegate plugin does it: http://www.danwebb.net/2008/2/8/event-delegation-made-easy-in-jquery as does LiveQuery in its own way: http://brandonaaron.net/docs/livequery/ google 'event delegation' and

[jQuery] Re: Fetch (ajax) a file only if it's been modified

2008-12-18 Thread Magnificent
I take it back, my livedata_fetch.php is coming back with a 200 status, but I want it coming back with a 304 not modified, right? That means it'll only fetch the file if it's been updated since the last time it was fetched?

[jQuery] (newbie) animate: css-style changes but webpage doesn't

2008-12-18 Thread nachocab
Hi guys, I was testing out animate using firebug and as an example, I'm able to move every anchor in the www.jquery.com page by typing this in the console: $(a).animate( { top: -=10px}, slow ); But if I go to this other page: http://flowplayer.org/tools/scrollable.html which has jQuery in the

[jQuery] Re: Simple way to track dragging?

2008-12-18 Thread Eridius
Anyone? I mean i have the code for the mouse up/down working and it repositions the element on mouse up(and this is only about 400 bytes of code) but i can get it to resize as the mouse moves. It seems like i would not have to have 24K on minjs code just to havet he ability to resize an

[jQuery] Re: how do i select all anchors OUTSIDE of a specific tag

2008-12-18 Thread Ricardo Tomasi
In $('body').not('#x') you are asking for all 'body' tags which don't have the 'x' ID. That gives you zero elements. The second example is closer, but .not() doesn't support complex selectors. $('a').filter(function(){ return !$(this).parents('#x').length; });

[jQuery] Re: html() triggering twice?

2008-12-18 Thread Ray Myers
I fixed it, never mind. Ray On Dec 18, 10:51 am, Ray Myers effex...@gmail.com wrote: I'm working on this interface where there are three select elements. When an option in the first menu is clicked this code executes == $('.state_select OPTION').livequery('click', function() {    

[jQuery] Re: html() triggering twice?

2008-12-18 Thread Ricardo Tomasi
Try binding the handler to the .change() event in the select instead. On Dec 18, 1:51 pm, Ray Myers effex...@gmail.com wrote: I'm working on this interface where there are three select elements. When an option in the first menu is clicked this code executes == $('.state_select

[jQuery] Re: syntax for $(response).$('a').each()

2008-12-18 Thread Ricardo Tomasi
$ is a global object that calls find(), not a method of jQuery objects. Use the find() method directly: $(response).find('a').each(function(i){... - ricardo On Dec 18, 3:25 pm, Namotco namo...@gmail.com wrote: $('#divid').load(url, function( response ){    

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Balazs Endresz
this[ set + i ] = function(val) { properties[i] = val; }; This code only defines a function but doesn't execute its contents right now, and as functions capture the variables defined outside of them if you change the value of i then it will change in properties [i] too. In other words the

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread pablo fernandez
Yeah it sounds complicated... I'm kinda newbe to this, I hope you don't mind if I ask these silly questions I thought the anonymous function got executed on this line for ( var i in properties ) { (function(){ this[ get + i ] = function() { return properties[i]; }; this[ set + i

[jQuery] Re: how do i select all anchors OUTSIDE of a specific tag

2008-12-18 Thread sad1sm0
I'm no jquery expert, but something like this might work $('a').each(function(){ if(this.parent() != $('#x')) { this.click(function(){ //do stuff here }); }); I haven't tested this but it may do the trick

[jQuery] invalid arg line 1121 in ie6

2008-12-18 Thread andrewb
Hi, Is following psuedo syntax valid in jQuery? It is causing an error in ie6(invalid arg line 1121 in ie6): $(window).bind('load', function() { ... $('#headerNavLeft .special').each(function() { $('li:first', $('ul', $(this))).css('padding-left',

[jQuery] Re: JSON support in flash plugin?

2008-12-18 Thread Aaron
Did you ever get anywhere with this? I just stumbled upon a similar requirement. On Dec 8, 5:50 am, mikael mikael.mol...@gmail.com wrote: Hi I have aflash(swf) file that needs rather extensive input in form offlash-vars. Myflashcolleague would like to recieve theflash-vars as an object

[jQuery] [treeview] problems with async in IE but not mozilla

2008-12-18 Thread paulcurtis
Hi, I really can't work this out. Im testing the async version of treeview, just retrieving JSON from a static file for the time being. I have it set up in visual studio, running on the in built development server. I have an aspx file and a plain htm file containing the JSON. (I've

[jQuery] Browser Hangs while hiding 2K+ table rows

2008-12-18 Thread RickyBerg
I've been converting a legacy web app to use JQuery. I've now cleaned it up so that my HTML validates and I have instrumented the code with classes and id's as appropriate. This app is essentially a table that displays the status of jobs for Autosys. The problem that I'm having is that when I

[jQuery] animate image size

2008-12-18 Thread Mike Dodge
I saw the demos where div sizes were animated. Can this be done with an image? I have some button(image) links on my site. I would like to make each image a little bigger when you hover over it. Anyone know the best way to do this?Thanks Mike

[jQuery] Re: (newbie) animate: css-style changes but webpage doesn't

2008-12-18 Thread sad1sm0
you may first need to specify the positioning of the elements as absolute or relative. The top style property won't effect the element unless the position is first defined. On Dec 18, 1:24 pm, nachocab nacho...@gmail.com wrote: Hi guys, I was testing out animate using firebug and as an

[jQuery] Re: Fetch (ajax) a file only if it's been modified

2008-12-18 Thread Mike Alsup
I take it back, my livedata_fetch.php is coming back with a 200 status, but I want it coming back with a 304 not modified, right? That means it'll only fetch the file if it's been updated since the last time it was fetched? Right. The server needs to set the Last-Modified header for this to

[jQuery] Re: animate image size

2008-12-18 Thread Mike Alsup
I saw the demos where div sizes were animated.  Can this be done with an image?  I have some button(image) links on my site.  I would like to make each image a little bigger when you hover over it.  Anyone know the best way to do this?Thanks Yes, you can certainly animate images. And you

[jQuery] Re: Fetch (ajax) a file only if it's been modified

2008-12-18 Thread Magnificent
I'm making some progress, if I include the following: ?php $last_modified = filemtime(test.txt); header(Last-Modified: . $last_modified); ? I get a response header with: Last-Modified 1229624249 If I then wait a bit and make a change to cause test.txt to be updated, I get: Last-Modified

[jQuery] Re: problems with async in IE but not mozilla

2008-12-18 Thread MorningZ
How about using Firefox (and more importantly Firebug) from Studio (right click on aspx file, choose Browse With), to make sure all libraries are getting loaded On Dec 18, 1:28 pm, paulcurtis p...@inventome.com wrote: Hi, I really can't work this out. Im testing the async version of

[jQuery] scrollbar

2008-12-18 Thread rahman...@gmail.com
hi2all how can we have an eye on scrollbar ? I want an event that will run on scrollbar changed ! have i to use setTimeout function to findout that scrollbar position has changed?! thanks before

[jQuery] Re: Pro Javascript Techniques Doubt

2008-12-18 Thread Balazs Endresz
I mean the the getter/setter functions are the ones that doesn't get immediately executed. But if you're really new to this maybe you could start with something that's easier to digest, like Douglas Crockford's videos on YDN. I only say this because I also started to read this book (or was it

  1   2   >