[jQuery] Does addClass overwrite property

2007-04-27 Thread joomlafreak
I have a very basic question. If I use addClass, will it overwrite a css property. Say for example I use $(.div1).click(funtion(){ $(this).addClass(div_active) }); The div1 had css property background-color set to white and in the class div_active background property is black. Will the

[jQuery] Re: plugin sizes, part 2

2007-04-27 Thread Klaus Hartl
Ariel Jakobovits schrieb: What I meant to ask before I submit hastily was whether all the feature requests we, I included, are sending to the plugin developers are bloating the plugins? (sorry for 2 emails) Yes, they do. I'm experiencing exactly the same with Tabs and especially with

[jQuery] Re: Getting href value

2007-04-27 Thread Klaus Hartl
Karl Swedberg schrieb: Hey, if you're impressed by that, you should see my Tabs plugin! Cool! I'm using it all of the time ;-) -- Klaus

[jQuery] Re: plugin sizes, part 2

2007-04-27 Thread Ariel Jakobovits
well, my suggestion is a plugin framework to accomodate plugins for plugins. i want to build one. but i want to research the issue with you all. I have been building a website based on events and listeners subscribing to them. I am thinking that a similar framework for plugins, where all

[jQuery] Re: Does addClass overwrite property

2007-04-27 Thread Dave Cardwell
joomlafreak wrote: I have a very basic question. If I use addClass, will it overwrite a css property. Say for example I use $(.div1).click(funtion(){ $(this).addClass(div_active) }); The div1 had css property background-color set to white and in the class div_active background property is

[jQuery] Re: plugin sizes, part 2

2007-04-27 Thread Dave Cardwell
Ariel Jakobovits wrote: well, my suggestion is a plugin framework to accomodate plugins for plugins. i want to build one. but i want to research the issue with you all. I have been building a website based on events and listeners subscribing to them. I am thinking that a similar framework

[jQuery] Re: plugin sizes, part 2

2007-04-27 Thread Ariel Jakobovits
can you explain what JSAN does? - Original Message From: Dave Cardwell [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Friday, April 27, 2007 12:14:29 AM Subject: [jQuery] Re: plugin sizes, part 2 Ariel Jakobovits wrote: well, my suggestion is a plugin

[jQuery] Re: Does addClass overwrite property

2007-04-27 Thread joomlafreak
You were on dot Sir, Thanks I changed the order and t works as I dream. Thanks again Have a nice day. People like you inspire everyone to help others. On Apr 27, 3:11 am, Dave Cardwell [EMAIL PROTECTED] wrote: joomlafreak wrote: I have a very basic question. If I use addClass, will it

[jQuery] Re: Line Wrap on Multiple Select Box

2007-04-27 Thread Rob Desbois
My suggestion would be to set the title attribute of those options to equal the text. Then, when you hover over the whole text will be shown. Not entirely sure how you'd select the ones which are longer though - probably some checking of widths would achieve that. On 4/26/07, Ⓙⓐⓚⓔ [EMAIL

[jQuery] Re: Show and Hide DIV

2007-04-27 Thread Massimiliano Marini
Hi Sean, You're on the right track. To only show one at a time, simply store the last one open in a variable and close it before opening the new one, here's an example: Thank you for your help, your suggest have inspired me and I've writed this code, I don't know if have sense or not, but

[jQuery] Re: plugin sizes, part 2

2007-04-27 Thread Dave Cardwell
Ariel Jakobovits wrote: can you explain what JSAN does? - Original Message From: Dave Cardwell [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Friday, April 27, 2007 12:14:29 AM Subject: [jQuery] Re: plugin sizes, part 2 Ariel Jakobovits wrote: well, my

[jQuery] Re: Show and Hide DIV

2007-04-27 Thread Dave Cardwell
Massimiliano Marini wrote: Hi Sean, You're on the right track. To only show one at a time, simply store the last one open in a variable and close it before opening the new one, here's an example: Thank you for your help, your suggest have inspired me and I've writed this code, I don't know

[jQuery] test if element as a class

2007-04-27 Thread Alexandre Plennevaux
hello, i'm trying to test a condition whether a link has a given class, and have it return true or false. if ($(this).attr(class)=='refresh') { alert(changing page); return true; } else { return false; } but it does not work, any idea how to do that best ? thank you !! alex

[jQuery] Re: test if element as a class

2007-04-27 Thread Michael Price
Alexandre Plennevaux wrote: hello, i'm trying to test a condition whether a link has a given class, and have it return true or false. if ($(this).attr(class)=='refresh') { alert(changing page); return true; } else { return false; } Try, from memory: if ($(this).is(.CLASSNAME))

[jQuery] Re: blockUI plugin blocking form submit on IE 6 7

2007-04-27 Thread Mike Alsup
This issue is now fixed. http://dev.jquery.com/browser/trunk/plugins/blockUI/jquery.block.js?format=txt Mike On 4/26/07, Mike Alsup [EMAIL PROTECTED] wrote: Ugh, that's nasty. Yes, this is a layout issue with IE due to its whacky hasLayout notion. The plugin should force that property to

[jQuery] Re: test if element as a class

2007-04-27 Thread pixeline
hi Michael, i just did : if ($(this).filter(.selected)) { return true; } else { and it worked ! On Apr 27, 10:44 am, Michael Price [EMAIL PROTECTED] wrote: Alexandre Plennevaux wrote: hello, i'm trying to test

[jQuery] Re: test if element as a class

2007-04-27 Thread Dave Cardwell
pixeline wrote: hi Michael, i just did : if ($(this).filter(.selected)) { return true; } else { and it worked ! That's not quite right. .filter() returns a jQuery object, which will always evaluate to true. To

[jQuery] convert code from prototype

2007-04-27 Thread mmjaeger
Hello I'd like to get started with jquery and I was wondering whether somebody could give me a little hand or point me into the right direction. How would I properly convert something like the following to jquery: var Multi = new Class ({ options: {

[jQuery] Re: Update on new travel site

2007-04-27 Thread withoutwax
Andy, Thanks for your comments - the same thing has been happening to me - I will need to examine the order I call the fade() and $.ajax functions. On Apr 26, 2:51 pm, Andy Matthews [EMAIL PROTECTED] wrote: Okay... I played around with the site for a few minutes and it works really well.

[jQuery] path and selectors

2007-04-27 Thread Alexandre Plennevaux
hello! i would like to know if there is a way to have jquery tell you what is the DOM path to an element. For example: $(this).click(function(){ alert($(this).getPath(); }); which would output html body div.col ul.menu li a.selected ?? thank you!! alex Alexandre

[jQuery] Determining the optimal page width,height

2007-04-27 Thread wyo
My cropping image function works just after loading the image but not during window resizing. The problem is if there's a width=100% somewhere in the page but no height=100%, enlarging vertical only adds white space instead of cropping larger. Any size calculation based on actual values fails so

[jQuery] Re: plugin sizes

2007-04-27 Thread Sam Collett
On Apr 27, 6:22 am, Ariel Jakobovits [EMAIL PROTECTED] wrote: Is anyone else concerned by the fact that the datepicker plugin, which I love and appreciate, is 32K? unpacked, of course, but that's half the size of jQuery itself. What figures are people shooting for for the size of their

[jQuery] Re: path and selectors

2007-04-27 Thread Alexandre Plennevaux
Thank you my preciousss, it is very useful to debug !! -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dave Cardwell Sent: vendredi 27 avril 2007 13:13 To: jQuery (English) Subject: [jQuery] Re: path and selectors Alexandre Plennevaux

[jQuery] Re: Autocomplete plugin

2007-04-27 Thread Jeff Fleitz
I'm confused. Which example are you referring to? I would like to see for each text value selected in a multiple, the associated pk in the db table associated in a delimited list, e.g., Item1,Item2, Item3 pk1,pk2,pk3 so that when we process the form input, we can reference by position. Does

[jQuery] Re: Estimated 1.1.3 release date?

2007-04-27 Thread MikeR
Oh ok. Thanks for checking in! Definitely looking forward to the next release. On Apr 26, 9:07 pm, Ariel Jakobovits [EMAIL PROTECTED] wrote: just wondering, why not call it jquery 2.0? what's with all this 1.0, 1.1, 1.1.3? - Original Message From: John Resig [EMAIL PROTECTED] To:

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Klaus Hartl
Fabyo Guimaraes schrieb: I did not like, and of bug Pardon? What do you mean and what exactly are you refering to? -- Klaus

[jQuery] Re: Order in which styles are applied

2007-04-27 Thread Dave Cardwell
PragueExpat wrote: I am wondering when external css styles are applied to the DOM elements. My external style sheet has a display:none for element A. With JQ on document.ready, I call the show() method on the element. (this is so people w/out javascript enabled will not see the element) Is

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Klaus Hartl
Fabyo Guimaraes schrieb: It tries to select a text, dumb it of pagina this not is good it uses the effect only on of the border and not of the document all I'm sorry, I really don't know what you're talking of... -- Klaus

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Fabyo Guimaraes
its example not this functionary, is not practises ** 2007/4/27, Klaus Hartl [EMAIL PROTECTED]: Fabyo Guimaraes schrieb: It tries to select a text, dumb it of pagina this not is good it uses the effect only on of the border and not of the document all I'm sorry, I really don't know

[jQuery] Re: Cascading Stylesheets presentation tonight

2007-04-27 Thread Andy Matthews
Will do. I should have the link shortly. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Friday, April 27, 2007 10:00 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Cascading Stylesheets presentation tonight I

[jQuery] Re: Interface: bounce with fixed positioning?

2007-04-27 Thread Klaus Hartl
Jörn Zaefferer schrieb: I wanted to use Interface's bounce effect for a fixed positioned element - an element that gets moved into view from the top and than bounces a little at the end (like it was falling down). Should I commit my fix? I'd find that quite useful. I've committed the fix

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Fabyo Guimaraes
http://stilbuero.de/jquery/tabs/mouseover.html if to select the text tab 2 change active tab1 etc... 2007/4/27, Fabyo Guimaraes [EMAIL PROTECTED]: its example not this functionary, is not practises ** 2007/4/27, Klaus Hartl [EMAIL PROTECTED]: Fabyo Guimaraes schrieb: It tries to

[jQuery] jQuery Examples pack

2007-04-27 Thread Shelane
I was only introduced to jQuery at a Lasso Summit the beginning of March and I have already been able to do so much with it. I have been able to solve some long standing problems I had with user interface elements requiring greater javascript and ajax manipulation that my skills had previously

[jQuery] Re: interface / tooltip / Demo error

2007-04-27 Thread Rick Faircloth
Took me awhile to fined the “lable” error! From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Plennevaux Sent: Friday, April 27, 2007 12:03 PM To: jquery-en@googlegroups.com Subject: [jQuery] interface / tooltip / Demo error Just would like to inform the

[jQuery] Re: jQuery Tabs: activate on rollover instead of click?

2007-04-27 Thread Klaus Hartl
Fabyo Guimaraes schrieb: http://stilbuero.de/jquery/tabs/mouseover.html if to select the text tab 2 change active tab1 etc... Ah, now I see. As I wrote a few mails before, this is *intended*: In that demo, after mouseout and a delay of one second the 1st tab is activated again (because

[jQuery] jQuery and forms created using ajax (Form plugin)

2007-04-27 Thread vielos
Hello. (excuse me for my bad english ^^) I started using jQuery a few days ago and it looks pretty powerful :) I then discovered the form plugin and it's doing exactly what i was looking for. But i have an issue with a feature i would like to create. I would like to submit a pretty heavy form

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

2007-04-27 Thread Sam Collett
On Apr 27, 3:57 pm, Fabyo Guimaraes [EMAIL PROTECTED] wrote: Use jquery = ) $(document).ready(function() { $(#news).newsTicker();} ); function showdiv() { $(#news).css(display, block); } function hidediv() { $(#news).css(display, none); } function replacecontents() {

[jQuery] Re: jQuery Examples pack

2007-04-27 Thread Dan G. Switzer, II
Shelane, So far I only have one example complete although there are more to come. http://education.llnl.gov/jquery/ajax.html You might not like this answer, but why not just use an iframe? :) You'll be able to load a complete example that runs w/in it's own context. I personally feel sometimes

[jQuery] Re: jQuery Examples pack

2007-04-27 Thread Shelane Enos
I could. However, that would not solve another page problem I have outside of this example where that really isn't a a possibility due to a complexly structured web app. On 4/27/07 8:59 AM, Dan G. Switzer, II [EMAIL PROTECTED] wrote: Shelane, So far I only have one example complete

[jQuery] Re: jQuery and forms created using ajax (Form plugin)

2007-04-27 Thread Mike Alsup
The easiest way to handle this is to define a function that does what you need and then call that function when appropriate. For example: function bindForm() { var opts = { // form options here target: '#myTarget', success: bindForm // rebind form on success };

[jQuery] Re: behaviors?

2007-04-27 Thread Chris W. Parker
On Thursday, April 26, 2007 2:19 PM Starbow said: I was just watching the video of John Resig at Yahoo, and in one slide he talked about behaviors... Are you talking about this? Advancing Javascript with Libraries http://video.yahoo.com/video/play?vid=410472 Thanks, Chris.

[jQuery] newsticker plugin updated

2007-04-27 Thread Sam Collett
I've updated my news ticker plugin with some bug fixes and added a few more examples of how to use it: http://www.texotela.co.uk/code/jquery/newsticker/

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

2007-04-27 Thread xavier
Hello, I want to add a default javascript function to all my internal links that DON'T already have a behaviour. If i do : jQuery([EMAIL PROTECTED]/]).bind(click,function(){ //jQuery(#main).empty().append(Loading...).load (/test); jQuery(#main).load

[jQuery] Re: behaviors?

2007-04-27 Thread Jonathan Sharp
Could you see this possibly being built directly into the browser or becoming part of the JavaScript/DOM standard? -js On 4/26/07, John Resig [EMAIL PROTECTED] wrote: .behavior() does not exist - but it could (without too much effort) the current solution with jQuery is shown in the

[jQuery] About form upload

2007-04-27 Thread Massimiliano Marini
Hi all, I'm having problem with the upload form and I don't understan where I'm in error, I'm trying to reproduce the example of Mike Alsup. I explain what I've done file index.html html head titleTitle/title script type=text/javascript src=js/jquery-latest.pack.js/script script

[jQuery] Re: path and selectors

2007-04-27 Thread d . wachss
My quickie one-liner: $.fn.getPath = function(){ return $.map (this.add(this.parents()), function(el) { return el.tagName + (el.className ? '.'+el.className : ''); }).reverse().join(' '); } On Apr 27, 6:59 am, Alexandre Plennevaux [EMAIL PROTECTED] wrote: hello! i would like to know

[jQuery] Re: About form upload

2007-04-27 Thread Mike Alsup
Massimiliano, That code wasn't meant to serve as an example. It had a bunch of extra stuff in there so that I could display the responses, etc. You neglected to indicate what it not working for you. Are you getting an error? There is nothing special that you need to do to take advantage of

[jQuery] Find a element - Basic issue

2007-04-27 Thread Mario Moura
Hi Folks My DOM is something like this select id=edit-taxonomy-1 class=form-select name=taxonomy[1] option value=0none/option option selected=selected value=1820services/option option value=1839Products/option I am trying find the option that have selected=selected of course is very random in

[jQuery] AJAX parameter problem

2007-04-27 Thread wyo
I've done my first AJAX call but since the documentation isn't clear about how parameter passing is done, it's not working on the first try. My code = var files = new Array(); $.getJSON (getfiles.php, {basedir: gallery}, function (data){

[jQuery] Re: Find a element - Basic issue

2007-04-27 Thread Scott Sauyet
Mario Moura wrote: select id=edit-taxonomy-1 class=form-select name=taxonomy[1] option value=0none/option option selected=selected value=1820services/option option value=1839Products/option I am trying find the option that have selected=selected of course is very random in many inputs. This

[jQuery] Re: Find a element - Basic issue

2007-04-27 Thread Josh Nathanson
This is a tricky one, you use the contextual selector: $(option:selected,#edit-taxonomy-1) This is like saying find the selected option in the context of element id edit-taxonomy-1. Give that a shot. -- Josh - Original Message - From: Mario Moura To:

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

2007-04-27 Thread Jeffrey Kretz
This is not a terribly elegant way to do it, but it does work. $('whatever_elements').each(function(i) { var hasclick = false; if (this.$events this.$events['click']) { for (j in this.$events['click'])

[jQuery] Re: Help Modifying the Action Page of an AJaX Form

2007-04-27 Thread Rob Wilkerson
Okay, I found a way to do what I want to do, but ran into something else. Using the jQuery Form plugin, I've managed to serialize the form inputs and, via ajax, post the values to a page which returns a JSON result: $('[EMAIL PROTECTED]/run.png]').click ( function ( e ) {

[jQuery] Re: newsticker plugin updated

2007-04-27 Thread Sean Catchpole
Glad to see this is still alive Sam, excellent plugin. ~Sean

[jQuery] Re: Help Modifying the Action Page of an AJaX Form

2007-04-27 Thread Mike Alsup
The problem is that formSerialize() doesn't properly encode checkbox values. Given a set of checkbox options with the same name, normal form encoding passes the values as a comma-delimited list. N, that's not true at all. Normal, and proper, serialization would take the following

[jQuery] Re: About form upload

2007-04-27 Thread Mike Alsup
I've also just tried it out but where is upload.php? As with any form processing, there must be a server component that handles the data. upload.php is just the action target for Massimiliano's form. Mike

[jQuery] Re: About form upload

2007-04-27 Thread wyo
On 27 Apr., 20:38, Mike Alsup [EMAIL PROTECTED] wrote: I've also just tried it out but where is upload.php? As with any form processing, there must be a server component that handles the data. upload.php is just the action target for Massimiliano's form. Oh, I though it would be nice to

[jQuery] Re: Help Modifying the Action Page of an AJaX Form

2007-04-27 Thread Jeffrey Kretz
Correct. And although I haven't tried this on PHP servers, on a .NET server, the following form data passed: cb=1cb=2cb=3 Would be interpred on the server side: Request.Form[cb] == 1,2,3; JK -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[jQuery] Re: About form upload

2007-04-27 Thread Mike Alsup
Oh, I though it would be nice to have some small sample code. All I'm interested is how the POST parameter input name=file type=file is accessed. Just as an ordinary $_POST['file'] variable in PHP? You'll use $_FILES. http://us2.php.net/features.file-upload Mike

[jQuery] Re: Help Modifying the Action Page of an AJaX Form

2007-04-27 Thread Rob Wilkerson
You can look at the spec here: http://www.w3.org/TR/html401/interact/forms.html Hmmm. I hadn't read the spec. I'm used to dealing with these things on the server side and never really had to think about how they were handled. PHP doesn't seem to be handling it the same way ColdFusion and,

[jQuery] Re: Help Modifying the Action Page of an AJaX Form

2007-04-27 Thread Aaron Heimlich
http://www.php.net/manual/en/faq.html.php#faq.html.arrays This should point you in the right direction On 4/27/07, Rob Wilkerson [EMAIL PROTECTED] wrote: You can look at the spec here: http://www.w3.org/TR/html401/interact/forms.html Hmmm. I hadn't read the spec. I'm used to dealing with

[jQuery] Re: Help Modifying the Action Page of an AJaX Form

2007-04-27 Thread Mike Alsup
Correct. And although I haven't tried this on PHP servers, on a .NET server, the following form data passed: cb=1cb=2cb=3 Would be interpred on the server side: Request.Form[cb] == 1,2,3; In PHP you'd need to name the inputs cb[] to achieve the same.

[jQuery] Re: Help Modifying the Action Page of an AJaX Form

2007-04-27 Thread Rob Wilkerson
Apologies for my ignorance. I've been away from PHP for a long time and guess I forgot that I had to name my checkbox fields with array notation (e.g. input type=checkbox ... name=mycheckbox[] /). Once I did that and used implode() on the server side I got what I needed. Thanks. On 4/27/07,

[jQuery] Re: path and selectors

2007-04-27 Thread Ariel Jakobovits
thats cool. But what if an element has no id or is not the only sibliing with that class? you need to add its position within the parent in that case, which is actually more useful. but, this is only only worth it if jQuery supports td:1 vs td:first which I'm not sure it does. - Original

[jQuery] Re: jQuery Examples pack

2007-04-27 Thread Ariel Jakobovits
here's my suggestion: instead of embedding the $(document).ready code in your pages, create Javascript classes for each page that receive as an argument a container DIV that after they make the AJAX call for the page they are responsible for, they put their content into. Then, when that's

[jQuery] Re: jQuery Examples pack

2007-04-27 Thread Shelane
I'm going to admit that this is a bit over my head. I'm not really sure what's going on in each of these sections. I'm not sure where '#mydiv' is supposed to go. Does the url have to hard coded? Currently the menu is built and reads the value of the href to determine the page to load. Where

[jQuery] Slightly OT: Ajax Loading Images

2007-04-27 Thread Christopher Jordan
Hi folks, I'm wondering where folks are getting their loading images for ajax purposes. I've tried ajaxload.info, but after several experiments, those only seem to look good when specifying the background color. When using a transparent background color, they seem to be... well, less than

[jQuery] Re: jQuery Examples pack

2007-04-27 Thread Scott Sauyet
Ariel Jakobovits wrote: instead of embedding the $(document).ready code in your pages, create Javascript classes for each page that receive as an argument a container DIV that after they make the AJAX call for the page they are responsible for, they put their content into. Then, when that's

[jQuery] Re: datePicker v2 beta

2007-04-27 Thread withoutwax
Wow absolutely fantastic! I played around with the previous version on a travel website I was developing but found it just wasn't quite right. But this new version looks awesome. It works perfectly in IE7 - any news on backwards compatability with IE6 for example? Also - how difficult would it

[jQuery] Re: path and selectors

2007-04-27 Thread d . wachss
Oooh..that's a much harder problem than the one originally presented. jQuery supports the :nth-child() selector; you want a string that uniquely selects 'this' . The following ought to work: (function ($){ function toString(el){ console.log (el); var ret = el.tagName.toLowerCase();

[jQuery] $(...).children() vs $().childNodes()

2007-04-27 Thread Jonathan Sharp
So we have a situation where we need to clone all of an elements childNodes (including whitespace text nodes). The code below is an attempt to add a childNodes() function that behaves similar to children() except for it includes the childNodes. Comments/houghts/suggestions/feedback?

[jQuery] Re: Ajax application history

2007-04-27 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Hi. The original link I sent: http://codinginparadise.org/projects/dhtml_history/README.html Had callbacks as well. In other words, your application would log history waypoints where each waypoint represented a state change in the application. These waypoints would consist of a name for the

[jQuery] Re: $(...).children() vs $().childNodes()

2007-04-27 Thread John Resig
If you wanted to do it right, you'd want to do something like this: jQuery.fn.childNodes = function() { return this.pushStack( jQuery.map( this, jQuery.makeArray(a.childNodes) ) ); }; HUGE WARNING! (this is why we don't include this method in jQuery right now) jQuery does not expect itself

[jQuery] Re: jQuery Examples pack

2007-04-27 Thread Shelane
I have not attempted to make any of Ariel's changes. Scott, I would say that yes that would be the goal. The only thing I haven't done for that is to include the jQuery src file on the subsequent pages. That would be my intent to check if jQuery isn't there, to load it. Meanwhile, I have these

[jQuery] Re: $(...).children() vs $().childNodes()

2007-04-27 Thread Ⓙⓐⓚⓔ
I've used this code with xml returned from ajax ... it may work for Jon. John, how would you make this code better? $.fn.xml = function () {return $.xml(this[0])} $.xml = function(xml) { // dump the xml back to html text if (!xml) return var res = var tag = xml.nodeName var

[jQuery] firefox and ie button onclick

2007-04-27 Thread Dave
I'm relatively new to javascript and REALLY appreciate the jQuery library. Its made learning how to do thing much easier. That said, I'm having a fit with an application I'm developing. I'm using Code Igniter with jQuery and under Firefox 2 (OS X and Win) things work great. IE however does

[jQuery] Re: firefox and ie button onclick

2007-04-27 Thread Karl Swedberg
Hi Dave, I think you should be attaching the event to the form submit. Also, jQuery makes unobtrusive JavaScript really easy, so instead of attaching a handler in the HTML, you can put it in a separate file. Try something like this: $(document).ready(function() {

[jQuery] Re: jQuery Examples pack

2007-04-27 Thread Ariel Jakobovits
absolutely. if Javascript is enabled anyway, your pages can simple create that lone object and provide the body as the container. - Original Message From: Scott Sauyet [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Friday, April 27, 2007 1:04:14 PM Subject: [jQuery] Re: jQuery

[jQuery] firefox mac text fade bug

2007-04-27 Thread Alex F
I'm new to jQuery, and enjoying it very much so far. One issue I'm having is limited to firefox on mac, but that's my regular browser, so it's rather painful. I've googled and seen the issue come up before, but no remedies or suggestions offered. The problem is that whenever I use any kind of

[jQuery] Interacting with TR an TD

2007-04-27 Thread Feed
Hello all, I'm getting used to the excellent jQuery library and I need some help of more experienced programmers. I have this simple table: table class=table tr tdcontent/td tdcontent/td tdcontent/td /tr tr

[jQuery] Re: Interacting with TR an TD

2007-04-27 Thread Karl Swedberg
This should do the trick, although there's probably a way to do it without the .each(), too. $(document).ready(function() { $('td').each(function() { var $this = $(this); if ($this.html() == 'nbsp;') { $this.parent().addClass('some-class'); } }); }); --Karl

[jQuery] Re: plugins page!!!!

2007-04-27 Thread Mike Hostetler
Hello- Thanks for the feedback regarding the new jQuery plugins page. I am the person who developed the new plugins site, and we are currently putting the finishing touches on it before announcing it to the entire community. One of the issues we are facing is migrating all of the old plugins

[jQuery] Lightbox w/ JQuery

2007-04-27 Thread ejverslu
I just recently jumped on the JQuery bandwagon. Love it. I am trying to integrate some JQuery script into my blog, where I use a version of lightbox that runs off of the Mootools library. However, when I try to run both at the same time, they start causing conflicts. I'm assuming its from each

[jQuery] Re: Interacting with TR an TD

2007-04-27 Thread Feed
Feed wrote: Hello all, I'm getting used to the excellent jQuery library and I need some help of more experienced programmers. I have this simple table: table class=table tr tdcontent/td tdcontent/td tdcontent/td /tr tr

[jQuery] Re: Interacting with TR an TD

2007-04-27 Thread Ian Struble
Building on Karl's example and your new all-td's-must-be-empty requirement; mark all the TR's with a target class then sweep through the TD's and get rid of the target class if you find a td that is not empty. Play around a bit and see what else you can come up with. Ian

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

2007-04-27 Thread xavier
Well my question was rather looking for a dirty hack anyway... I will use your way and then move to something cleaner, either using a class or a rel attibute to define what can't be altered. Thanks, Xavier On Apr 27, 8:16 pm, Jeffrey Kretz [EMAIL PROTECTED] wrote: This is not a terribly

[jQuery] Re: Interacting with TR an TD

2007-04-27 Thread Feed
Thanks Ian, I'll play around with this piece of code! jQuery is really helping me in my project, it's awesome. On Apr 28, 1:20 am, Ian Struble [EMAIL PROTECTED] wrote: Building on Karl's example and your new all-td's-must-be-empty requirement; mark all the TR's with a target class then sweep

[jQuery] Re: plugins page!!!!

2007-04-27 Thread Shelane
The new page is looking nice. A couple of comments - when you click one of the categories from the Home page, a horizontal scroll bar appears and the focus outline is extended out just past the original size of the fieldset element. Also, if you click into one of the categories, the Browse

[jQuery] Re: plugins page!!!!

2007-04-27 Thread Larry Garfield
Um, you mean this page: http://www.jquery.com/plugins/project/Plugins/name Or if you want just names, you can either theme it or install the Views module and create your own custom view (list) of project nodes. (Yes, I'm a Drupal guy. g) On Friday 27 April 2007, Mike Hostetler wrote: Hello-

[jQuery] history in ajax and setting the ajax url

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

[jQuery] Re: Interacting with TR an TD

2007-04-27 Thread Feed
Thanks Ian, it seem to be working perfectly. I just have one more question: isn't there a big performance impact using this piece of code? It looks like the page it taking a while do load, but I guess you have to choose between the time the page takes to load and the time you take to do