[jQuery] Help with horizontal sliders (accordion)

2008-12-18 Thread TurboRogue
I'm trying to create some horizontal jquery tab sliders, and being somewhat new to jquery, I'm having a little trouble finishing off the logic. My current code snippet is here: $(document).ready(function(){ $(".trigger").click(function(){ $(this).toggleClass("active"); $(thi

[jQuery] Re: Tablesorter plugin: adding alternating colors

2008-12-18 Thread adeveloper
The row coloring is done on client-side (with tablesorter itself). It works on document load. However, after sorting, all rows become the same color. Why is row coloring not preserved after sorting? What can be the reason? Here is a snippet: ---

[jQuery] Split button plugins (?)

2008-12-18 Thread R. Rajesh Jeba Anbiah
I'm just checking if there is any split button plugins/work already done in jQuery community? Google returns none. What is split button: http://vincenthomedev.files.wordpress.com/2008/04/image1.png Other implementation: Yahoo! email reply button TIA -- Email: rrjanbiah-at-Y!comBlog:

[jQuery] How can executable jquery/jscript be returned in an Ajax response

2008-12-18 Thread fambi
Let's say filling a form should add a row to a table. Responding with the html row is not a problem, but how do you include the event to add the row and any listeners which might follow after it? Thanks

[jQuery] Re: Superfish, Submenu not appearing on page load

2008-12-18 Thread drewkopp
Thanks a lot, that observation did indeed correct the problem... Much appreciated :) On Dec 18, 10:08 pm, Joel Birch wrote: > Hello, > > Looking at the source of that page I notice you are initialising > Superfish twice. If you delete the first block (the one without the > pathClass option) I

[jQuery] validating form with server-side code via ajax (progressive enhancement)

2008-12-18 Thread Alex
Just bumping in hopes of any fresh ideas on this.

[jQuery] Re: problem checking input

2008-12-18 Thread Karl Swedberg
It's always true, because it's always returning an object, albeit an empty one. You need to use the length property. Please take a look at the solution I offered to your other post. Also, I know that sometimes posts can take a while before they appear, but please be patient and try not to a

[jQuery] Re: problem traversing

2008-12-18 Thread Karl Swedberg
Hi, The selector is choking on the prev() filter. You can't start traversing down within the method that is only looking for a previous sibling. Also, you can simplify things quite a bit by using the ":checked" selector and the .length property. Try this: $('a.quiz-next').bind('c

[jQuery] problem checking input

2008-12-18 Thread sneaks
http://paste.pocoo.org/show/95986/ simple quiz function if the radio in li.correct is checked, then the user has selected the correct answer from a multiple choice set. right now i am getting a true no matter which radio is selected in the group thanks for any help in advance thhis one has been

[jQuery] Convert form data to xml

2008-12-18 Thread sigirisetti
Folks, Looking for pointers to convert form data into xml. please help. Thanks all

[jQuery] problem traversing

2008-12-18 Thread sneaks
hi i am attempting to make a small quiz and am having a setback... i was hoping someone could provide a hint or solution. heres the html: What is apple in french? Pomme de

[jQuery] Simplemodal plugin position problem subsequent loads

2008-12-18 Thread zonathen
I am using simplemodal perfectly fine everywhere but on one page it loads the content off to the right side of the screen on subsequent clicks. The first time the modal loads perfectly centered as it should but the second time it is on the right side of the screen and further towards the bottom a

[jQuery] Re: Superfish: IE6 Links in drop down fail to work

2008-12-18 Thread sneaks
ptoly... try making the 's position:relative; this helps me out of a few of ie6 link bugs j On Dec 18, 8:48 pm, ptoly wrote: > Hello All, > Very odd behavior in IE6 that is driving me crazy. > > http://ymf.org > > Take a look at the drop down menus in IE6 (work fine in FF, Safari, > IE7). Can

[jQuery] Re: jQuery reloads all JS files on show()

2008-12-18 Thread Dave Methvin
If you are still seeing this problem, please reply with a test case: http://dev.jquery.com/ticket/3707

[jQuery] Re: Superfish, Submenu not appearing on page load

2008-12-18 Thread Joel Birch
Hello, Looking at the source of that page I notice you are initialising Superfish twice. If you delete the first block (the one without the pathClass option) I think that should fix your problem. Joel Birch.

[jQuery] Re: Advice about Jquery selectors and updating content in DIV

2008-12-18 Thread Brandnew
Thanks a lot ! I missed you answer ! Ced On 21 oct, 16:27, ricardobeat wrote: > You should wrap all your HTML for a single 'hit' inside a tag so you > can refer to it easily, like: > >     Hit >     484 > > > Then your script could look like this (you can assign click handlers > to multiple e

[jQuery] Re: Best way to do this for multiple input fields?

2008-12-18 Thread MorningZ
I'm not 100% clear on what you are trying to accomplish but you can select items by what an attribute "starts with" http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue so $("input[id^='item']") would get all your items regardless of how many there are On Dec 18, 5:21 pm

[jQuery] Superfish: IE6 Links in drop down fail to work

2008-12-18 Thread ptoly
Hello All, Very odd behavior in IE6 that is driving me crazy. http://ymf.org Take a look at the drop down menus in IE6 (work fine in FF, Safari, IE7). Can't get the links to work at all in the drop down, except for the last link in the Programs section - Wells Fargo. I've tried removing the vari

[jQuery] Re: jQuery date picker - how to disable all Sunday

2008-12-18 Thread Phil Lee
Hi Daniel Sorry I did not reply sooner with a thanks. I just found your email today in my inbox. I was wondering, where would I enter the info your provided? > $(".selector").datepicker({ beforeShowDay: $.datepicker.noWeekends }) > Yes, I do want to disable all weekends. Thank you again for you

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

2008-12-18 Thread Mike Alsup
> OK, I think I got it (it was more code than I had thought it would > be).  This does seem to be working. > > On initial load, I get a status 200, then wait a while and it cycles > through 304s (nothing new to fetch).  Cause a change to my test.txt > file on the server and the next time it fetche

[jQuery] Re: Placing .get method results in a div tag

2008-12-18 Thread Cam Spiers
jQuery("#results").html(data); or: jQuery("#results").append(data); On Fri, Dec 19, 2008 at 10:56 AM, evanbu...@gmail.com wrote: > > Hi > > I've been using jQuery all of about 12 hrs now. I want to place the > results I get back from results.aspx into the div "results" rather > than alert it o

[jQuery] clueTip + Perl bombing in IE7

2008-12-18 Thread Rose
New jQuery/clueTip user here. I am trying to use clueTip with Perl to create tooltips with previews of specific sections from the middle of their pages. I'm coding the rel attribute of the links to point to a Perl script plus parameters, like this: Extract.pl is supposed to take the parameters,

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

2008-12-18 Thread TomG
I am having the same problem I think (apologies if I accidentally posted twice). The standard jquery call seems to work fine. I haven't broken this down into a simple page yet that I could try with FireFox, but I will do that next. I'm in IE6&7 // This never calls my WebMethod... $("#

[jQuery] Best way to do this for multiple input fields?

2008-12-18 Thread Carlo Landmeter
Hi, I'm trying to create a form with multiple input fields. These fields should have a button to be able to check its content with .ajax. I am able to create this function for a single field, but i don't know what the best way would be to do it for multiple input fields: input#item0 input#item1 i

[jQuery] Placing .get method results in a div tag

2008-12-18 Thread evanbu...@gmail.com
Hi I've been using jQuery all of about 12 hrs now. I want to place the results I get back from results.aspx into the div "results" rather than alert it out. Thanks. function addNumbers() { var number1 = $('#number1').attr('value'); var number2 = $('#number2').at

[jQuery] Re: ASP.NET C# jquery treeview

2008-12-18 Thread TomG
I also have not been able to get the async portion of jquery TreeView plug in working in ASP.NET. My WebMethod is returning data just fine. Not sure what I'm doing wrong. I can call my WebMethod just fine outside of the treeview... //var x = $.ajax({type:"POST", //url:

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

2008-12-18 Thread real
Try this instead: $('a', data).click(function(){ var href = $(this).attr('href'); [etc...] }); When using $('a', data).attr('onclick', 'javascript:your code goes here'); the 2nd parameter should be a string, as if you were doing foo On Dec 18, 12:55 pm, Namotco wrote: > Here is what I'm trying

[jQuery] Re: multiple checkboxes showing/hiding a div

2008-12-18 Thread krozi...@gmail.com
thanks Dave and Ricardo! On Dec 18, 12:00 am, Ricardo Tomasi wrote: > var $check = $(':checkbox'); > $check.change(function(){ >    $('#special')[ $check.attr('checked') ? 'show' : 'hide' ]('slow'); > > }); > > that's essentially the same as > > $check.attr('checked') ? $('special').show('slow')

[jQuery] Re: .html() and ampersand

2008-12-18 Thread real
use .text() if you're looking to return a string of text only rather than html. And by value of a label, you do mean what goes in here right? On Dec 18, 5:41 pm, "graphic...@googlemail.com" wrote: > Hi, > > I use the .html() function to get the value of a label, but when it > contains an ampersa

[jQuery] Re: history plugin

2008-12-18 Thread rahman...@gmail.com
I have written a code ( => just for myself usage) that makes links bookmarks like this example: you are on : "http://www.mysite.com/index.php"; you click a link like "sitemap.php" it will be load and you will see "http://www.mysite.com/ index.php#sitemap" or if you click "myfile.php?id=3&p=test"

[jQuery] .html() and ampersand

2008-12-18 Thread graphic...@googlemail.com
Hi, I use the .html() function to get the value of a label, but when it contains an ampersand (&) it is converted to & amp ; How can I prevent that or is there another way of getting the value of the label ? Thanks

[jQuery] Re: JQ Modal IE6 and 7 issues

2008-12-18 Thread jive01
Hello, Thanks for you help. I did this and it does work in ie6 and 7, however, now when I close the modal box in any browser, it shifts... view it here: http://www.zero1productions.com/inacronym/preview/profile.php How do I fix this? MorningZ wrote: > > > Try using the "topTop" Parameter

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

2008-12-18 Thread MorningZ
Ah, i wasn't sure that you tried FF using Studio's web server, that wasn't clear Not sure what else to offer except that in studio, the web server (and the application) "run as" your logged in account where IIS is not doing so unless setup that way.. so i'd take a guess that it was a fi

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

2008-12-18 Thread paulcurtis
As i mentioned the Mozilla Firefox browser runs the page perfectly (i have firebug too). But the exact same page does not work in IE 7 or IE 6 and when i say doesn't work it doesn't load the treeview using the JSON data. A normal treeview does work. However on the same page as this test i load the

[jQuery] script tags in Ajax request

2008-12-18 Thread Namotco
How do I disable reading/eval script tags in a request?

[jQuery] Re: Searching for the previous sibling that matches a condition

2008-12-18 Thread go_dores
FYI, my if statement was actually doing exactly what it was supposed to. The bug was inside the body of the if (I didn't post that :-(). Long story short, I was confused. Basically prev and next are smarter than I thought they were :-). For what it's worth, my updated code is below. Basically

[jQuery] Re: history plugin

2008-12-18 Thread Namotco
I need to implement this myself. I noticed today that there is a jQuery UI history planned: http://docs.jquery.com/UI/Roadmap Does anyone know if work has started on this?

[jQuery] Superfish dropup?

2008-12-18 Thread jeremyBass
I love this menu system... but now I have a project that I need to set the menu at the bottom... so the dropdowns no need to be dropUps... I have be working at this with no luck. Any one know how to have the menu drop upwards? Thanks for the help...

[jQuery] Re: Superfish

2008-12-18 Thread jeremyBass
Odd this appended to NOX post lol... I'll repost correctly On Dec 18, 12:53 pm, jeremyBass wrote: > I love this menu system... but now I have a project that I need to set > the menu at the bottom... so the dropdowns no need to be dropUps... I > have be working at this with no luck.  Any one know

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

2008-12-18 Thread dfiguero
Thanks Jörn I'll give it a try! On Dec 18, 12:17 pm, "Jörn Zaefferer" wrote: > 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

[jQuery] Losing link in an Image Gallery

2008-12-18 Thread IGI
I am new to jquery, but am really excited about it. I have managed to hack together several scripts to accomplish what my designers want but have hit a wall. I have an Image Gallery that also uses Shadowbox.js by Michael Jackson. Basically there are thumbnail which change a main image and the m

[jQuery] Superfish

2008-12-18 Thread jeremyBass
I love this menu system... but now I have a project that I need to set the menu at the bottom... so the dropdowns no need to be dropUps... I have be working at this with no luck. Any one know how to have the menu drop upwards? Thanks for the help... jeremyBass

[jQuery] Does with_plugins work when building jQuery from the Makefile?

2008-12-18 Thread Theo
In the Makefile, I noticed a with_plugins target. However, the command: make with_plugins results in the following error: make: *** No rule to make target `../plugins/button/*', needed by `with_plugins'. Stop. What's the appropriate way to use with_plugins? I'd like to build jquery with some o

[jQuery] Re: Need Help with my plugin

2008-12-18 Thread sad1sm0
OK, so I'm nearing the final stages with this project. Here's what I have, and what I need. Hopefully someone can help me here because I'm at a point where I can't test certain things. When an image is selected from the thumbnails, I have a script that resizes the image to 50% viewport size and

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

2008-12-18 Thread Ricardo Tomasi
It seems the overhead of hide/show() is too great for that situation. $allRows.css('display','none') gives good performance from the start. On Dec 18, 4:28 pm, RickyBerg wrote: > 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 i

[jQuery] history plugin

2008-12-18 Thread relphie
Hello, I was wondering if anyone has successfully combined jQuery ajax calls with a browser history plugin. I have seen lots of older posts, and lots of older libraries, but not many examples for a current, cross-browser solution. I have tried using Really Simple History (http://code.google.com/

[jQuery] building jquery from Makefile using with_plugins target

2008-12-18 Thread Theo
In the Makefile for jquery, I noticed there's a "with_plugins" target. Does anyone know what this is for? When I try building with the command: make with_plugins I get the error: make: *** No rule to make target `../plugins/button/*', needed by `with_plugins'. Stop. I need quite a few of the p

[jQuery] Superfish, Submenu not appearing on page load

2008-12-18 Thread drewkopp
Hi All, First of thanks for this awesome script... I am have a bit of a difficulty witht he nav-bar confgiuration; On the examples page (http://users.tpg.com.au/j_birch/plugins/ superfish/#sample4), the nav-bar example automatically shows the "current" sub menu items on page load. However whe

[jQuery] jQuery toggle menu help

2008-12-18 Thread firstarsbrnwhite
I have created a toggle menu using this jQuery code. $(document).ready(function(){ var subs = $('.menu > ul ul'); subs.hide(); $('.menu > ul > li a').click(function(){ $(this).next('.menu > ul > li a').toggle(); }); });

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

2008-12-18 Thread Ricardo Tomasi
big doh @ me, didn't notice t'was php. seems you already solved it anyway! On Dec 18, 5:49 pm, Ricardo Tomasi wrote: > If you have SSI enabled on your server the Last-modified header won't > be sent, it should be sent for all static pages. > > On Dec 18, 5:15 pm, Magnificent > > wrote: > > I'm

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

2008-12-18 Thread Ricardo Tomasi
If you have SSI enabled on your server the Last-modified header won't be sent, it should be sent for all static pages. On Dec 18, 5:15 pm, Magnificent wrote: > I'm making some progress, if I include the following: > > $last_modified = filemtime("test.txt"); > header("Last-Modified: " . $last_mo

[jQuery] Re: History Plugin

2008-12-18 Thread rahman...@gmail.com
I have written a code ( => just for myself usage) that makes links bookmarks like this example: you are on : "http://www.mysite.com/index.php"; you click a link like "sitemap.php" it will be load and you will see "http://www.mysite.com/ index.php#sitemap" or if you click "myfile.php?id=3&p=test"

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

2008-12-18 Thread Magnificent
OK, I think I got it (it was more code than I had thought it would be). This does seem to be working. On initial load, I get a status 200, then wait a while and it cycles through 304s (nothing new to fetch). Cause a change to my test.txt file on the server and the next time it fetches the new v

[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', (xPo

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

2008-12-18 Thread Cam Spiers
If you are trying to hide allrows would it be possible to hide either the table or the tbody? On Fri, Dec 19, 2008 at 7:28 AM, RickyBerg wrote: > > 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 > cla

[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 the

[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: 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 wrote: > Hi, > > I really can't work this out. Im testing the async version of > treeview, just ret

[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: 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 1229627412 So I'm definitely getting the Last-Modified header sent but all the respons

[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 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

[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 wrote: > Hi guys, > I was testing out animate using firebug and as an example, I'm able to > m

[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] 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 h

[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 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 (JSON). Have any of

[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 deconstructed

[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', (xPo

[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] 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"

[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 t

[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 wrote: > $('#divid').load(url, function( response ){ >     $(response).$('a').each(function(i){ >       // do

[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 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').livequer

[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 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() { >         var el

[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; }); docs.jquery.com/Traversing/filte

[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 element

[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

[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] 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 y

[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 wrote: > Does not look to have a Last-Modified header and

[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: 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 Mach

[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 (h

[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 wrote: > > hi there, > > i have a quick question about the validation plugin - i have a big > form working perfectly except for a

[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] [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 ===

[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 wrote: > I am having the same problem.  Got the sIfr to work but can't get the > font size right

[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? http://www.w3.org/1999/xhtml";> http://code.jquery.com/jquery-latest.

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

2008-12-18 Thread brian
On Thu, Dec 18, 2008 at 4:49 AM, alpha tester wrote: > > > Hmmm... struggling to read from this new dataset using the code provided - > can someone point out the stupidity in the following code: > > > > > var myData = > { records : [ > { CATEGORY : "Sport", TITLE : "The world of sport", LINK:

[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 wrote: > > Hi, > > I'm trying to validate a form with a dynamic date fields. S

[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] 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' ) { $.post('includ

[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 th

[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 bugs,

[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(''); which is the exact equivalent of $("#foo").html(''); // html() does call this.empty().append() It is very different from the browser innerHtml since your HTML will first be parsed by jQuery into a DOM tree while innerHtml just inse

[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: ... I got my validation rules working but only if I hardcode each of the input's names: $("form").validate({ rules: { "date-1-start": compare ["#date

[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? you

[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, but

[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 bugs,

[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? outide div 1 inside div 1 inside div 2 inside div 3 outide div 2 outide div 3 // this doesn't work $('body').not('#x').find('a').click(... // this doesn't work $('a').not('#x a').click(...

[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? you

  1   2   >