[jQuery] CSS: Wasteful requests when switching input image

2007-02-16 Thread Brice Burgess
Regarding; input type=image src=a.gif / Using Firebug's (FF 2) net monitoring, I noticed that every time I switched the src of an input image it would request the new src image from HTTP. FF simply does not cache these images. This is kind of annoying because it can waste a lot of bandwith or

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread Dmitrii 'Mamut' Dimandt
Oh. Ok. :) But I will still add different approaches whenever necessary :) Oh and an RSSS feed for changes... Hopefully over the weekend... Rick Faircloth wrote: Hi, Dmitrii… I think you’re misunderstanding what I’m saying… All I meant was that by the time I read about your

Re: [jQuery] Animate enlargement of a thumbnail image

2007-02-16 Thread Torbjorn Tornkvist
DaveG wrote: But, since it is a commercial license attached to it, I don't want to look into the code. The license on that allows derivitive works: to Remix -- to make derivative works ref: http://creativecommons.org/licenses/by-nc/2.5/ Perhaps I'm ovely cautious but the Javascript file

Re: [jQuery] CSS: Wasteful requests when switching input image

2007-02-16 Thread David Duymelinck
Brice Burgess schreef: Regarding; input type=image src=a.gif / Using Firebug's (FF 2) net monitoring, I noticed that every time I switched the src of an input image it would request the new src image from HTTP. FF simply does not cache these images. This is kind of annoying because it

Re: [jQuery] preload picutre won't work

2007-02-16 Thread Sanyi
Hi Alex, really I had to find a different target, I loaded the pictures from another directory as they were in :) Bye Alex On 2/15/07, Klaus Hartl [EMAIL PROTECTED] wrote: Alex Cook schrieb: $(x).bind(load,function() { showAlbum(); }); Just a hint, if you already have a function to

[jQuery] Cascading data into text input boxes

2007-02-16 Thread Bruce MacKay
Hi folks, I have a set of n paired text input boxes (date on; date off). Each is attached to Kelvin Luck's date picker plugin. In most instances, the date off will be 7 days after the date on, and the next date on will be 1 day after the preceding date off. So, to help the user (so that

Re: [jQuery] Parent Selection Problem

2007-02-16 Thread Mahadewa
Guys, the codes work now ! Thanks a lot for the help ! Chris Karl Swedberg-2 wrote: Are you sure? Maybe the problem is with source.id I put your HTML into a page and ran this code (on document ready): $('input').click(function() { var parentId =

Re: [jQuery] Cascading data into text input boxes

2007-02-16 Thread Sam Collett
On 16/02/07, Bruce MacKay [EMAIL PROTECTED] wrote: Hi folks, I have a set of n paired text input boxes (date on; date off). Each is attached to Kelvin Luck's date picker plugin. In most instances, the date off will be 7 days after the date on, and the next date on will be 1 day after

[jQuery] Interface Imagebox question and problem

2007-02-16 Thread Dave Probert
Hi All, I'm using Interface (1.2) with jQuery (1.1.1) in a little gallery application (localhost based at the moment!). My problem seems to be that as I load a new gallery (Ajax) of images (with all the required 'rel' attributes etc) the Imagebox works perfectly for two or three galleries then

Re: [jQuery] Ajax file upload

2007-02-16 Thread Dave Probert
It is doable using plugins like the ajaxUpload by Øyvind Saltvik one. I use that in a gallery I am making and it works perfectly for my needs. There is an example as well - just check out the plugins page on jQuery.com. vision-media wrote: Ive completed a project all but one detail

Re: [jQuery] CSS: Wasteful requests when switching input image

2007-02-16 Thread Karl Rudd
Are you sure about the multiple reload requests? I just checked it out (via the w3schools) and it isn't happening with Firefox 1.5. JavaScript: var imgnum = 0; var imgs = ['paper.jpg','bgdesert.jpg']; function srcCh(e) { e.src = imgs[imgnum]; imgnum = imgnum ? 0 : 1; } HTML:

Re: [jQuery] CSS: Wasteful requests when switching input image

2007-02-16 Thread Brice Burgess
Klaus Hartl wrote: Brice, I think having two images in the HTML source is pretty ugly. I once did an Image image Replacement for inputs with type image. That way you can easily use pure CSS hovers and use CSS sprites to avoid traffic. It also makes skining much easier, as the appearance

Re: [jQuery] CSS: Wasteful requests when switching input image

2007-02-16 Thread Klaus Hartl
Karl Rudd schrieb: Are you sure about the multiple reload requests? I just checked it out (via the w3schools) and it isn't happening with Firefox 1.5. Maybe the cache was disabled, which I always do of course when developing. -- Klaus ___ jQuery

Re: [jQuery] Sortable - is 'containment' implemented? simple test case fails

2007-02-16 Thread Mike Holloway
Hi, I have exactly the same problem, have several dl lists and trying to order the dd's within, but contain each set to their respective dl's I have this JS: function serialize(s){ serial = $.SortSerialize(s); alert(serial.hash);

Re: [jQuery] CSS: Wasteful requests when switching input image

2007-02-16 Thread Sam Collett
On 16/02/07, Brice Burgess [EMAIL PROTECTED] wrote: Klaus Hartl wrote: Brice, I think having two images in the HTML source is pretty ugly. I once did an Image image Replacement for inputs with type image. That way you can easily use pure CSS hovers and use CSS sprites to avoid traffic.

Re: [jQuery] CSS: Wasteful requests when switching input image

2007-02-16 Thread Klaus Hartl
Brice Burgess schrieb: Klaus Hartl wrote: Brice, I think having two images in the HTML source is pretty ugly. I once did an Image image Replacement for inputs with type image. That way you can easily use pure CSS hovers and use CSS sprites to avoid traffic. It also makes skining much

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread agent2026
Why wouldn't you use $(fn) here instead of $(document).ready(fn)? Adam Karl Swedberg-2 wrote: $(document).ready(function() { $('#wrapper p').hide() $('#wrapper h2').filter(':even').css('backgroundColor', '#ef').end().filter(':odd').css('backgroundColor', '#ef').end

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Mike Alsup
I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target parameter -- using jQuery 1.1.1 Thanks, Brice. I'll have a look. ___ jQuery mailing list discuss@jquery.com

Re: [jQuery] convert textarea loaded by ajax into tinymce rte

2007-02-16 Thread matt2012
Still not getting anywhere has anyone dynamically loaded a text area and converted it into a rte or should I try something else? Matt. Sam Collett wrote: On 16/02/07, matt2012 [EMAIL PROTECTED] wrote: Im using jqModal to pop up a dialog with a page loaded using ajax load(...) in the

Re: [jQuery] Some jQuery tips and tricks

2007-02-16 Thread Dmitrii 'Mamut' Dimandt
I personally prefer writing $(document).ready(fn) in full because it is easier to spot agent2026 wrote: Why wouldn't you use $(fn) here instead of $(document).ready(fn)? Adam Karl Swedberg-2 wrote: $(document).ready(function() { $('#wrapper p').hide() $('#wrapper

Re: [jQuery] Custome selectors use : as seperator, which is an official character for id's

2007-02-16 Thread Jason Levine
Sam Collett wrote: It is valid (as it mentions colons in the text you quoted), just not at the start. Oops. That'll teach me to read everything twice after shoveling a foot and a half of snow. ;-) -- View this message in context:

[jQuery] accented chars

2007-02-16 Thread Vaska
I'm trying to internationalize something I'm building and javascript doesn't seem to like accented characters - when I pass them to the server side (via ajax post) they are in a rough place. Is there something built-in for this (something I'm clearly not finding)? A tutorial? Best practice?

Re: [jQuery] Ajax file upload

2007-02-16 Thread Lick
Hey, I think it's possible by using a file-upload-form that targets an iframe. When that iframe is loaded, you know the file is uploaded and you can simply request it using a simple AJAX image-insertion. [iframe name='iframe_file'][/iframe] [form method='post' action='fileHandler.php'

[jQuery] PanView for jQuery 1.1.1?

2007-02-16 Thread Phillip B Oldham
Hi all Anyone know of an update to the PanView plugin, or a replacement, that works with jQuery 1.1.1? Thanks. -- *Phillip B Oldham* The Activity People [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] *Policies* This

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Mike Alsup
I've got a fix for this. I'll upload it tonight. Mike On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target parameter -- using jQuery 1.1.1 Thanks, Brice. I'll have a

Re: [jQuery] Cascading data into text input boxes

2007-02-16 Thread Kristinn Sigmundsson
I did something similar once, so I just made some changes this should work: $( function () { $([EMAIL PROTECTED]).change( function() { var reg = /date(on|off)(\d+)/i; var ar = reg.exec($(this).attr(id)); //id=dateoff3 = ar = [dateoff3, off, 3]

[jQuery] blocking/skinning div cotents

2007-02-16 Thread Raymond Auge
Hello All, First of all, as a new jQuery lister, I'd like to thank you all for such a great community project resulting in a fantastic js toolset. I love great community driven projects (they make me feel all warm and fuzzy inside :) ). Anyway, after a long search with no answer, I have

[jQuery] jqModal: How to invoke functions after ajax has loaded?

2007-02-16 Thread dalvarado
Hi, Using jqModal, if I define that my dialog load its contents through ajax $('#editPanelTitle').jqm({trigger: '#editTitle1', focus: true, overlayColor: '#fff',

[jQuery] jQuery.flash plugin and ExternalInterface

2007-02-16 Thread spinnach
Hi, i'm using the jQuery flash plugin to embed a flash movie to a webpage, and the ExternalInterface to communicate between flash and javascript.. in firefox everything's working as expected, but i can't get it to work in ie.. these are the as and javascript snippets: flash: import

Re: [jQuery] blocking/skinning div cotents

2007-02-16 Thread Alexandre Plennevaux
You said: Note that the scrollable div in IE seems to often defeat the overlays I've tried, once the scroll bar appears... I believe that to address this, you have to put an iframe in your overlaying div . Other than that, blockUI is the closest thing to what you are trying to do i believe.

Re: [jQuery] accented chars

2007-02-16 Thread Web Specialist
Vaska I'm a brazilian(Portuguese haves accented chars too) and inserting charset parameter resolved: script charset=iso-8859-1 language=JavaScript type=text/javascript src=../js/jquery-latest.js/script Cheers 2007/2/16, Vaska [EMAIL PROTECTED]: I'm trying to internationalize something I'm

Re: [jQuery] Form Plugin curiosity

2007-02-16 Thread Brian Ronk
I've got an example page, basically a watered down version of what I'm working on. I'm actually using his sha1 implementation. Just put in some information (nothing is actually saved, the script just displays what you inputed). Oh, and the email address isn't really checked, you can put in

Re: [jQuery] Forms Plugin: target scripts evaluated TWICE

2007-02-16 Thread Benjamin Sterling
Thanks Mike. On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've got a fix for this. I'll upload it tonight. Mike On 2/16/07, Mike Alsup [EMAIL PROTECTED] wrote: I've noticed that scripts are evaluated twice if they're included in the responseText loaded via the Form's plugin target

Re: [jQuery] jQuery.flash plugin and ExternalInterface

2007-02-16 Thread Luke Lutman
I don't think you need window[] or document[], try: $('#flash_id')[0].callback(); Luke spinnach wrote: Hi, i'm using the jQuery flash plugin to embed a flash movie to a webpage, and the ExternalInterface to communicate between flash and javascript.. in firefox everything's working as

Re: [jQuery] Form Plugin curiosity

2007-02-16 Thread Benjamin Sterling
Brian, two things and a suggestion: try $( '#account_pass' ).val(hex_sha1( $( '#account_pass' ).val())); $( '#account_pass_confirm' ).val(hex_sha1( $( '#account_pass_confirm' ).val())); instead of accform.account_pass.value = hex_sha1( accform.account_pass.value );

Re: [jQuery] jQuery.flash plugin and ExternalInterface

2007-02-16 Thread spinnach
..been googling on this, and found that getElementById works only in firefox, but not in ie, that you have to use window[] for ie.. anyway, this is the approach i tried first and it also didn't work (in ie - never any problems in firefox).. could it be related to the fact that jquery.flash

Re: [jQuery] blocking/skinning div cotents

2007-02-16 Thread Benjamin Sterling
Do you have an example of what you have done already? My recommendation would be to use the dimensions plugin and get the position and dimensions of the element you want to block and then place a semi-tranparent layer over it. Now, if this will be a form you may need to put an iframe there

Re: [jQuery] jQuery.flash plugin and ExternalInterface

2007-02-16 Thread Benjamin Sterling
I had the same issue a while back and got it to work using this plugin http://malsup.com/jquery/media/. -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] is JQuery compliant to the OpenAjax Hub?

2007-02-16 Thread Tony Pederson
Great! Thanks so much John - just a side note: I'm rewriting my group's JS libraries using JQuery and reducing them to about 1/10 the size... Hoooray for JQuery! On 2/15/07, John Resig [EMAIL PROTECTED] wrote: It is now! I've added OpenAjax support to jQuery in the form of a plugin. You can

[jQuery] Google's Summer of Code

2007-02-16 Thread John Resig
Hey Everyone - Google's Summer of Code has just opened up for 2007, and I'd love to have jQuery be a part of it: http://code.google.com/soc/ If you're not familiar with how SoC works, Google pays a number of college students to work on an open source project for an entire summer. This is a great

Re: [jQuery] Form Plugin curiosity

2007-02-16 Thread Brian Ronk
Ok, I made those changes. I actually was doing the sha1 that way before, but changed it to see if that was the problem. If you take a look at it now, I think you'll laugh. Basically, the alert shows the correct info (the sha1'd password), but what is displayed is still plain text. I'm

[jQuery] Dynamic save objects height?

2007-02-16 Thread howard chen
How to dynamically saved the height of each object after selection? e.g. jQuery(.style) return objects with the same style, I want to save the objects ' height as an jQuery variables, how to do that? ideally, it should be something like that... my_obj['id_1'] = 100; my_obj['id_2'] = 100; ...

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Jake McGraw
When you mention charting, what method would you suggest for chart rendering? SVG? - jake On 2/16/07, John Resig [EMAIL PROTECTED] wrote: Hey Everyone - Google's Summer of Code has just opened up for 2007, and I'd love to have jQuery be a part of it: http://code.google.com/soc/ If you're

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Fil
Some examples of good ideas (which should be expanded upon): - Add jQuery support to a popular CMS/Framework Or, a less popular one, like SPIP ;-) And, would it make sense to have a jquery extension for firefox, implemented in C instead of javascript? Just to see how fast a browser could go

[jQuery] Odd safari failure

2007-02-16 Thread Tim Baxter
This is odd, and may be difficult to describe On my forum, I have a file upload field for images, along with a helper/formatter for inserting images that are on the web. Both of these are in a box that drops down when you click the icon (that's where jquery comes in). Problem is, in safari the

[jQuery] adding a class to positive and negative data cells in a table column

2007-02-16 Thread rolfsf
Is there a clever way in jQuery to find non-zero data in specific columns of a table, and assign them a class based on whether they are positive or negative? In plain English, I want to make positive numbers green (or the cell bg) and the negative numbers red, but only in certain columns.

Re: [jQuery] jQuery.flash plugin and ExternalInterface

2007-02-16 Thread spinnach
..i switched from swfobject to jquery.flash, to avoid redundancy, and this plugin uses swfobject.. but if it won't work any other way, i'll use it :).. thanks anyway.. Benjamin Sterling wrote: I had the same issue a while back and got it to work using this plugin

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Danny Wachsstock
I'd like to see a graphics plugin--porting Walter Zorn's wz_jsgraphics would be great. http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm Danny John Resig wrote: Hey Everyone - Google's Summer of Code has just opened up for 2007, and I'd love to have jQuery be a part of it:

[jQuery] Creating an empty jQuery object

2007-02-16 Thread Danny Wachsstock
I've been using jQuery for a few months now, trying to convert all my hand-rolled javascript and came across a minor problem that I could not find documented anywhere: I want to create DOM elements and add them into a jQuery object, as in; var result = [empty jQuery object]; $.each(... var

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Luke Lutman
John Resig wrote: - Add jQuery support to a popular CMS/Framework jQuery for Ruby On Rails would be fantastic :-) Luke ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

[jQuery] validate radios

2007-02-16 Thread Juan Pablo Aqueveque
Hi jQuery gurus!, this my very first post here. I have a very trivial question for you, I guess. How to validate this two radio buttons? - thanks. [html] liinput type=radio name=p3 value=1 /Excelente/li liinput type=radio name=p3 value=2 /Muy Buena/li liinput type=radio

Re: [jQuery] adding a class to positive and negative data cells in a table column

2007-02-16 Thread Kristinn Sigmundsson
First thought: $(table td).each( function () { var nr = parseFloat($(this).text()); if (nr 1.5) }); On 2/16/07, rolfsf [EMAIL PROTECTED] wrote: Is there a clever way in jQuery to find non-zero data in specific columns of a table, and assign them a class based on whether they are

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread John Resig
Fil - And, would it make sense to have a jquery extension for firefox, implemented in C instead of JavaScript? Just to see how fast a browser could go (on the css/xpath selectors especially)? That's my day job (I work for Mozilla). My current project is building a JS library for extension

Re: [jQuery] adding a class to positive and negative data cells in a table column

2007-02-16 Thread Kristinn Sigmundsson
Arg, stupid tabs not working here it comes again... $(table td).each( function () { var nr = parseFloat($(this).text()); if (nr = 1.5) $(this).addClass(positive); else if (nr = -1.5) $(this).addClass(negative); }); something similar to this should work...

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread John Resig
I think Canvas would be preferable (like porting Plotkit, for example). Considering that it's possible to make it work in all browsers. --John On 2/16/07, Jake McGraw [EMAIL PROTECTED] wrote: When you mention charting, what method would you suggest for chart rendering? SVG? - jake On

[jQuery] jquery tabs

2007-02-16 Thread Bruce
I just noticed on jquery tab pages I have that it seems to be adding a margin at the bottom of the page below the footer, this is on several pages where I have the tabs. I see nothing to cause that in the css...also selected tabs move to the left three or 4 pixels, again I see nothing in the

Re: [jQuery] jQuery.flash plugin and ExternalInterface

2007-02-16 Thread Luke Lutman
If it's an object vs. embed issue, you could overwrite jQuery.fn.flash.transform with a function that returns an object tag for IE. Getting object to work is a bit tricky, but this A List Apart article (http://alistapart.com/articles/flashembedcagematch) describes the known issues. Luke

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Yehuda Katz
I'm currently working on this with Steven Bristol, who was a winner of the Rails Hackfest (and a free ticket to RailsConf). We hope to have a release ready for RailsConf in May (before SoC starts). -- Yehuda On 2/16/07, Luke Lutman [EMAIL PROTECTED] wrote: John Resig wrote: - Add jQuery

Re: [jQuery] jquery tabs

2007-02-16 Thread Bruce
I lied, the sample doesn't move left. Just checked again, mayby was looking at wrong one... Apologies Bruce - Original Message - From: Bruce [EMAIL PROTECTED] To: jQuery Discussion. discuss@jquery.com Sent: Friday, February 16, 2007 12:13 PM Subject: [jQuery] jquery tabs I just

Re: [jQuery] Pending Release: jAssistant, a pop-out, tabbed, dialog window for jQuery

2007-02-16 Thread Lquid
No problem jack. i got your email and will be taking it down in an hour or so. Ill just make my own images for this, and prolly include the psd's. Ill reply back when the download is disabeled and the demo as well. -Lquid Jack Slocum wrote: I have been unable to find anywhere on your site to

Re: [jQuery] Pending Release: jAssistant, a pop-out, tabbed, dialog window for jQuery

2007-02-16 Thread Lquid
Ok jack, The site has been updated, the demo taken down, and the file banned from the xtrafile.com network. if there is anything else, please let me know. I replyed to your email so you should have mine if you dont already. -Lquid Lquid wrote: No problem jack. i got your email and will be

Re: [jQuery] jQuery.flash plugin and ExternalInterface

2007-02-16 Thread spinnach
thanks, will try that.. Luke Lutman wrote: If it's an object vs. embed issue, you could overwrite jQuery.fn.flash.transform with a function that returns an object tag for IE. Getting object to work is a bit tricky, but this A List Apart article

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Sam Collett
On 16/02/07, John Resig [EMAIL PROTECTED] wrote: Hey Everyone - Google's Summer of Code has just opened up for 2007, and I'd love to have jQuery be a part of it: http://code.google.com/soc/ If you're not familiar with how SoC works, Google pays a number of college students to work on an

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Tsz Ming WONG
On 2/17/07, John Resig [EMAIL PROTECTED] wrote: Hey Everyone - Google's Summer of Code has just opened up for 2007, and I'd love to have jQuery be a part of it: http://code.google.com/soc/ maybe a framework (MVC?) for building complex ajax application?

[jQuery] How to make Interface work for any ID

2007-02-16 Thread Mihai S
Hi anyone, I like the work made by Stefan (and specially his demo Floating windowshttp://interface.eyecon.ro/demos/windows.html[opens in new window] (uses Resizables, Transfer and Slide) and I'd like to use Interface on my website. I've looked his code but I do not know how to make for example:

Re: [jQuery] adding a class to positive and negative data cells in a table column

2007-02-16 Thread rolfsf
thanks Kristinn! So, if I only want to do this on the 4th column of a table, would I do something like: $(table td:nth-child(3)).each( function () { var nr = parseFloat($(this).text()); if (nr = 1.5) $(this).addClass(positive); else if (nr = -1.5)

Re: [jQuery] validate radios

2007-02-16 Thread Alex Cook
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juan Pablo Aqueveque Subject: [jQuery] validate radios Hi jQuery gurus!, this my very first post here. I have a very trivial question for you, I guess. How to validate this two radio buttons? - thanks. *snip* -- juan pablo

Re: [jQuery] blocking/skinning div cotents

2007-02-16 Thread Sam Collett
On 16/02/07, Alexandre Plennevaux [EMAIL PROTECTED] wrote: You said: Note that the scrollable div in IE seems to often defeat the overlays I've tried, once the scroll bar appears... I believe that to address this, you have to put an iframe in your overlaying div . Other than that, blockUI

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Alex Cook
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Luke Lutman Subject: Re: [jQuery] Google's Summer of Code John Resig wrote: - Add jQuery support to a popular CMS/Framework jQuery for Ruby On Rails would be fantastic :-) Luke - Didn't Yehuda start this? I would link the

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Alex Cook
Canvas, canvas, canvas, please dear lord make it canvas... -ALEX -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John Resig Sent: Friday, February 16, 2007 9:01 AM To: jQuery Discussion. Subject: Re: [jQuery] Google's Summer of Code I think Canvas would

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Kenneth
Oh, err, http://trac.visualjquery.com/jQueryRails is not though :o On 2/16/07, Kenneth [EMAIL PROTECTED] wrote: It's coming up for me: I also work on other projects, including: - jQuery on Rails, a relatively early-on project that aims to allow the replacements of Prototype and

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Kenneth
It's coming up for me: I also work on other projects, including: - jQuery on Rails, a relatively early-on project that aims to allow the replacements of Prototype and Scriptaculous with jQuery and Interface jQuery on Rails http://trac.visualjquery.com/jQueryRails On 2/16/07, Alex Cook

Re: [jQuery] validate radios

2007-02-16 Thread Juan Pablo Aqueveque
Sorry for the ambiguity Alex, well i just want to force to the user to do a selection in both groups. So, if p3 are not selected alert('do a election please') The same condition for p4. thanks again. On 2/16/07, Alex Cook [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Brian Miller
Here's the thing. jQuery, along with plugins, covers a lot of what other libraries do. I just went looking around in dojo and YUI, and while one can do most of what they do by combining plugins, what's missing is the kind of bullet-proofing that people Alex Russell and Eric Miraglia have gotten

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Alex Cook
http://trac.visualjquery.com/jQueryRails Spits out: File not found Change this error message for pages not found in public/404.html When I hit it, that's why I didn't link it. But it looks like from Y's message that he's pulled it until they are ready to reveal it in May.

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Brian Miller
Actually, I think that the best thing to do would be to detect what the browser has, and use whatever's there transparently. If Canvas is there, use it. If not, try SVG. If there's no SVG, try VML. If there's no suitable graphics system in the browser, signal the user to download and install a

Re: [jQuery] adding a class to positive and negative data cells in a table column

2007-02-16 Thread rolfsf
I posted a http://www.monkeypuzzle.net/testfiles/jquery/data_hilite/index.html working test page - thanks Kristinn!! Kristinn Sigmundsson wrote: Arg, stupid tabs not working here it comes again... $(table td).each( function () { var nr = parseFloat($(this).text()); if

Re: [jQuery] Form Plugin curiosity

2007-02-16 Thread Mike Alsup
plain text. I'm wondering if this is related to the issue with the plugin sending info twice (one of the other threads going around right now). The plugin does not send data twice. The other thread was about returned scripts being evaluated twice. Your code is encrypting the data that the

Re: [jQuery] accented chars

2007-02-16 Thread Ⓙⓐⓚⓔ
first you put it in your html. then you put it in your xml. then the javascript, then all the cgi applications, then you have to worry about the index pages from the server that have a non-standard character in the name, then you are stuck with those text files, you need for testing.. because

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Yehuda Katz
Yep. It is my fault. My initial attempt at jQoR failed, but I've made a LOT of progress recently. You guys will be seeing something soon; an early prototype is already running on a site Steven's developing. Keep the faith, comrades. -- Yehuda On 2/16/07, Alex Cook [EMAIL PROTECTED] wrote: I

Re: [jQuery] Creating an empty jQuery object

2007-02-16 Thread Danny Wachsstock
Yes, $('nonexistent-selector') works, but seems very inelegant. I think $([]) is the best solution, but I'd like to hear from the gurus. How much code depends on $() referring to document? Sam Collett wrote: On 16/02/07, Danny Wachsstock [EMAIL PROTECTED] wrote: I've been using jQuery for

Re: [jQuery] jqModal: How to invoke functions after ajax has loaded?

2007-02-16 Thread Brice Burgess
[EMAIL PROTECTED] wrote: Hi, Using jqModal, if I define that my dialog load its contents through ajax $('#editPanelTitle').jqm({trigger: '#editTitle1', focus: true, overlayColor: '#fff',

Re: [jQuery] Creating an empty jQuery object

2007-02-16 Thread Yehuda Katz
You know that you can create a DOM Element by doing $(div/div), right? I think that might be a better way to achieve what you're trying to achieve, but I'm not sure. :( I think $([]) is currently the most elegant way to get an empty object, but this is definitely something that should be pointed

Re: [jQuery] Creating an empty jQuery object

2007-02-16 Thread John Resig
More code depends on $() referring to document than you might think. Whenever no context is passed in to a jQuery object, the context is set to 'document'. That way when you do a .find(), it'll actually find some relevant elements. Since $() has no context, the context then defaults to document.

[jQuery] # or javascript:;

2007-02-16 Thread hcabbos
What's the best way to apply a behavior to an anchor tag? a href=# class=someClassmy text/a -- or -- a href=javascript:; class=someClassmy text/a ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] # or javascript:;

2007-02-16 Thread Tim Baxter
Your first example. Inline javascript on a link is bad. Actually, even in the first example, the link should do SOMETHING when JS isn't available, if that's not possible, than you should insert the link with your JS. On 2/16/07, hcabbos [EMAIL PROTECTED] wrote: What's the best way to apply a

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Kenneth
I like that idea, and I'd like to expand on it that it would be really neat to have something not unlike what w3schools implements, a try it yourself type thing: http://www.w3schools.com/js/tryit.asp?filename=tryjs_alert Give an example, and also let users change the parameters to see what the

Re: [jQuery] # or javascript:;

2007-02-16 Thread Kenneth
I actually prefer javascript:; since using # usually scrolls the page to the top which can be really annoying. If it's not a real link I don't see what the problem is there. Now, if it's an actual link that you're wanting to apply an onclick function to, you should use the

Re: [jQuery] # or javascript:;

2007-02-16 Thread Klaus Hartl
hcabbos schrieb: What's the best way to apply a behavior to an anchor tag? a href=# class=someClassmy text/a -- or -- a href=javascript:; class=someClassmy text/a The best way is to not use such dead links at all. With JavaScript disabled these links are useless and will at least

Re: [jQuery] # or javascript:;

2007-02-16 Thread Renato Carvalho
I see one problem in some situations using the # as anchor tag. If the page have a large content and you click the link with #, the position of scrollbar of the browser go to the top of page. If you click a link with the javascript:; anchor, the scrollbar stays at the same position.' On

Re: [jQuery] # or javascript:;

2007-02-16 Thread Tim Baxter
No... you don't put the onclick handler on the link either. Keep your JS out of your HTML. If it's a link that's ONLY there for the JS to do something, insert the link with the JS. If it's a link that can degrade gracefully (the preferred scenario), then put the link in, then override it's

Re: [jQuery] # or javascript:;

2007-02-16 Thread Klaus Hartl
Kenneth schrieb: I actually prefer javascript:; since using # usually scrolls the page to the top which can be really annoying. If it's not a real link I don't see what the problem is there. You shouldn't prefer any of those ;-) Now, if it's an actual link that you're wanting to apply an

[jQuery] IBM Developerworks article mentions jQuery

2007-02-16 Thread Daniel MacDonald
An IBM Developerworks article, Ajax and XML: Five cool Ajax widgets http://www-128.ibm.com/developerworks/web/library/x-ajaxxml1/index.html mentions jQuery and the jCarousel plugin. carousel: This widget is a rolling image viewer that customers can use to scroll through a list of items, each

Re: [jQuery] # or javascript:;

2007-02-16 Thread Yehuda Katz
Yes yes yes! Just a quick note: you can use return false perfectly fine in jQuery. In fact, it'll work for all browsers, even if it doesn't normally work exactly right. You can use preventDefault() as well, if you just want to stop the default action but not stopPropagation (return false in

Re: [jQuery] # or javascript:;

2007-02-16 Thread Kenneth
Yes, good points everyone and I stand corrected. I don't advocate inline JS, however I do produce mock-up/prototype/concept pages pretty frequently (not meant for public use or distribution) where I need to show functionally how an element will behave. In these cases, its easiest for me to

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread digital spaghetti
I know Drupal is in the SoC, I'd love to see some dual enhancments. For example, check out a plugin for Wordpress called Canvas (nothing to do with the tag!). It's functionality in Drupal could easily be replaces with interface sortables, and provide a more visual layout system - each block

Re: [jQuery] # or javascript:;

2007-02-16 Thread Yehuda Katz
Kenneth: Again, if you use return false, you don't need preventDefault(). -- Yehuda On 2/16/07, Kenneth [EMAIL PROTECTED] wrote: Yes, good points everyone and I stand corrected. I don't advocate inline JS, however I do produce mock-up/prototype/concept pages pretty frequently (not meant for

Re: [jQuery] validate radios

2007-02-16 Thread Jörn Zaefferer
Juan Pablo Aqueveque schrieb: Hi jQuery gurus!, this my very first post here. I have a very trivial question for you, I guess. How to validate this two radio buttons? - thanks. Try this: alert( $(input:[EMAIL PROTECTED]:checked).size() 0 ); -- Jörn Zaefferer http://bassistance.de

Re: [jQuery] Google's Summer of Code

2007-02-16 Thread Jörn Zaefferer
John Resig schrieb: In order to be able to apply, we'd have to come up with a list of things that we'd like them to do. So, I'm asking you (the jQuery community) what you think 1-3 decent coders could do for us for a summer? I'd like to see a complete suite of form plugins: Ajaxed submits,

Re: [jQuery] Odd safari failure

2007-02-16 Thread Ⓙⓐⓚⓔ
it is odd and difficult to describe! I looked around... none of the simple safari problems were obvious I assume you tried in ie , ff and opera too. only safari breaks. try a simpler page with just the problem! good luck! On 2/16/07, Tim Baxter [EMAIL PROTECTED] wrote: This is odd, and may be

  1   2   >