[jQuery] How to make a methode in jQuery

2007-04-23 Thread wyo
Sorry my question might be rather basic stuff but none of the tutorials, sample code or API description helps me solving my question. I've a function cropImage which I'd like to use as a methode. What's the correct syntax for function cropImage () { ... $(this).css ({width:

[jQuery] DOM traversal: changing XHTML attributes w/ jquery???

2007-04-23 Thread ldexterldesign
hey all, wondering if anyone could help with this... i have two jquery functions that act independently on two separate columns of text in my webpage. $(document).ready(function() { $("#articles .view_more").toggle(function() { $("#articles .bullet_text").addClass("bullet_text_go"); }

[jQuery] Re: Why does my ajax call fail ? (when it is called the second time) ??

2007-04-23 Thread Olaf Gleba
Am 24.04.2007 um 07:49 schrieb naveman: that is my code, my comments show my problem. i tried not onle jquery.html() but also any other possibilty to update the innerHTML. so i am really wierd about that, since it has no error. Since the call is excecuted correctly the first time, it may has

[jQuery] Why does my ajax call fail ? (when it is called the second time) ??

2007-04-23 Thread naveman
Hi Guys, i have following problem: i have a div (#lineups) that is updated but fails for an second update, fired by the same event. jQuery('div.playerContainer').Droppable({ accept: 'player', tolerance: 'intersect', onDrop: function(drag){ jQuery.ajax({ type: 'POST',

[jQuery] Why is "getScript" not working?

2007-04-23 Thread [EMAIL PROTECTED]
Hi, For some reason, my call to "getScript" isn't working. I'm calling $.getScript("draw_modules_script.php", function(){ alert("Script loaded and executed."); }); The alert statement is never called. I have verified the file name is cor

[jQuery] Re: Google AJAX Feed API

2007-04-23 Thread Karl Swedberg
Very cool, Mike! Excellent job. I started playing around with the Google Feed API this weekend. Lots of fun. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 23, 2007, at 9:02 PM, Mike Alsup wrote: I decided to make this a more polished plugin.

[jQuery] Re: Autocomplete plugin

2007-04-23 Thread James Trix
Sorry Dan I think I keep jumping between the different implementations of the Autocomplete mod at the end of the day its a great addon to Jquery thanks for your time to kill the bugs James On 4/24/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: You're using Joern's mod. I know not all the

[jQuery] Re: parent/parents - children/?

2007-04-23 Thread Dan G. Switzer, II
Ariel, >parent() - returns one level up >parents() - returns multiple levels up > >children() - returns one level down >? - returns multiple levels down > >Q: is this a missing feature or is there a reason to not have a function in >place of the '?' This would be the equivalent: var oContext =

[jQuery] Re: what's the best way to catch malformed xml in an ajax call?

2007-04-23 Thread Ⓙⓐⓚⓔ
now I have this for the browsers I use, I wonder what IE would whine about! var surveyComplete = function(xrh, status){ var xml = xrh.responseXML if (status!="success") form.html("" + status.toUpperCase() + " requesting:" + url +"") .append("" + xrh.resp

[jQuery] Re: Alternative way of reacting to clicked link?

2007-04-23 Thread Ⓙⓐⓚⓔ
Have you thought of starting with a blank page and filling it with ajax, then only showing the items based on the #name??? then you would only have to bind 1/26 of them at a time. On 4/23/07, Alessandro Portale <[EMAIL PROTECTED]> wrote: Hi, thanks for the suggestions. > While not unobtrusiv

[jQuery] Re: parent/parents - children/?

2007-04-23 Thread Karl Rudd
There's not explicit function for that but you could just us '*'. For example: var something = $('#something'); var children = something.children(); var childrenAndGrandchildren = something.find('*'); I'd hazard a guess that the reason there is no "childrenAndGrandchildren()" function

[jQuery] parent/parents - children/?

2007-04-23 Thread Ariel Jakobovits
I know this is for Dev, but I have not been approved for that list yet... parent() - returns one level up parents() - returns multiple levels up children() - returns one level down ? - returns multiple levels down Q: is this a missing feature or is there a reason to not have a function in plac

[jQuery] Re: Google AJAX Feed API

2007-04-23 Thread Mike Alsup
I decided to make this a more polished plugin. You can find the new version here: http://malsup.com/jquery/gfeed/ Mike Excellent Mike. I've started using it in my application as a feed reader, was very easy to implement with a backend for defining feeds, I just loop them out and include th

[jQuery] Re: Autocomplete plugin

2007-04-23 Thread Dan G. Switzer, II
James, >The only other part that I would love to see with the code is to some how >in the drop down list of Autocomplete results would be to highlight the >top record. I will have a play today and see if I can get that working I >saw there are ways to apply a style sheet but dont think I would b

[jQuery] Re: Autocomplete plugin

2007-04-23 Thread James Trix
Thanks Dan its aways the simple things that get me stuck, I did not even think to check the Autocomplete code untill I had hit my head on the wall a few times and then it was so simple. The SQL is quite fast but not as fast as the array but I will see if I can do any thing with the database to spee

[jQuery] Re: DOM manipulation white space issues

2007-04-23 Thread Ariel Jakobovits
figured it out: I had ' ' between empty div's that get filled after the page loads and those were the culprits. I don't remember why I put those there, but I thought it was because the browsers don't like empty div's. Anyone know anything about this? - Original Message From: Ariel Jak

[jQuery] Re: DOM manipulation white space issues

2007-04-23 Thread Josh Nathanson
I am experiencing spacing issues with my divs that is apparently fixed when I delete white space between DIV's using firebug. I am having trouble with jEditable/textarea that seems to be related to your issue. When I do a POST, and the textarea kicks back to the div, a space and two newline

[jQuery] Re: vertical fisheye menu? OSX dock or tsunami

2007-04-23 Thread Sapphire
Very nice. Will it work for images? Patrick Hall wrote: Here's my crummy attempt: http://ruphus.com/code/jquery/fisheye.html -p@

[jQuery] Re: Alternative way of reacting to clicked link?

2007-04-23 Thread Alessandro Portale
Hi, thanks for the suggestions. > While not unobtrusive, you'd be better off generated that content w/embedded > onclick events. > This seriously goes against the jQuery philosophy, but DOM parsing is just > sluggish when you have thousands of elements. I could live with not being 100% philosop

[jQuery] DOM manipulation white space issues

2007-04-23 Thread Ariel Jakobovits
I am experiencing spacing issues with my divs that is apparently fixed when I delete white space between DIV's using firebug. is there a CSS way around this? do we need a trim functionality added to append() and such?

[jQuery] Re: ext dialog and form

2007-04-23 Thread Dan G. Switzer, II
Eli, >I'm trying to use extjs to replace all the popup windows in my system >(currently using thickbox) to change pref, add members etc'. You might find quicker help over at the Ext JS forums: http://extjs.com/forum/ There's a lot of expertise over there and it's all specific to Ext JS. I haven

[jQuery] ext dialog and form

2007-04-23 Thread Eli
Hey guys, I'm trying to use extjs to replace all the popup windows in my system (currently using thickbox) to change pref, add members etc'. i managed to create the window, managed to create the forum (well, srota), but i can't seem to "submit" the form and hide the dialog. I've created the dial

[jQuery] Re: Browser Dom Performance

2007-04-23 Thread lacroix1547
>This is very interesting. Is it something you can share with this group? http://beta00.logient.com/cat/dom-analysis.rar You are not supposed to have any js error in ff2 or ie6. Its really just experimental. Still I have some nice demos. Start with domAnalysisDemo.html The basic idea was to do t

[jQuery] Re: vertical fisheye menu? OSX dock or tsunami

2007-04-23 Thread Patrick Hall
Here's my crummy attempt: http://ruphus.com/code/jquery/fisheye.html -p@

[jQuery] Re: Blink effect

2007-04-23 Thread Alexandre Plennevaux
i just found out the interface plugin has the "pulsate" effect :) grreat! _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh Nathanson Sent: lundi 23 avril 2007 20:42 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Blink effect How about callb

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

2007-04-23 Thread Mike Alsup
OK, after lunch I knocked together a quick and very dirty php page that contains a form that submits back to itself. In my testing, this form displays the much of the same behavior that I described originally. Works fine in FF. Form doesn't submit in IE 6 or 7. This example, however, does not pr

[jQuery] Re: Show()/Hide() Bug?

2007-04-23 Thread Brandon Aaron
Explicitly set a background color on the text to try and prevent the text smoothing issue. Otherwise you can checkout interface plugin as I believe it has some color animating options which might suit your needs better. http://interface.eyecon.ro/ -- Brandon Aaron On 4/23/07, d3 <[EMAIL PROTECT

[jQuery] Re: Alternative way of reacting to clicked link?

2007-04-23 Thread Dan G. Switzer, II
Alessandro, >I have a page with about 12000 links in it. A few of these links point >to anchors on the same page. A function should be called when those >"intra page" links are clicked. The bottom line is anything you do to parse 12,000 DOM objects on the same page is going to be slow--even more

[jQuery] Re: Show()/Hide() Bug?

2007-04-23 Thread d3
But in IE opacity draw with DirectX and not support smoothing. This text when is not smoothed. On 24 апр, 00:21, "Brandon Aaron" <[EMAIL PROTECTED]> wrote: > The opacity is set to 0. to avoid a Firefox flicker back in 1.0. > It is no longer in the latest SVN and soon to be 1.3. > > -- > Brand

[jQuery] Re: library conflict

2007-04-23 Thread Brian Miller
PeriodicalUpdater is actually pretty easy to extract from Prototype, or to simply rewrite yourself. It's just a wrapper around the window.setInterval method, combined with the equivalent of $.load(). In fact, I think there's a plugin that does just that, called jHeartbeat. Check the plugins pag

[jQuery] Re: Show()/Hide() Bug?

2007-04-23 Thread Brandon Aaron
The opacity is set to 0. to avoid a Firefox flicker back in 1.0. It is no longer in the latest SVN and soon to be 1.3. -- Brandon Aaron On 4/23/07, d3 <[EMAIL PROTECTED]> wrote: In FireFox 2.0.0.3 and in IE7 after show and hide with speed parameter opacity of element not restored to 1. Be

[jQuery] Re: Blink effect

2007-04-23 Thread Brandon Aaron
You can just use the fadeOut and fadeIn methods to animate just the opacity: $('#mydiv').fadeOut().fadeIn().fadeOut().fadeIn(); You could loop a set number of times with something like this: var blinkCount = 2*2;// two blinks, 4*2 for four blinks do { $('#mydiv')['fade'+(blinkCount%2==0?'Ou

[jQuery] JavaScript Inclusion

2007-04-23 Thread Brad
Hi all, I'm just getting started working with jQuery but have been impressed thus far by its capabilities. Here is my problem: I'm developing a Java application utilizing Struts and tiles which has a main "layout" page that includes separate .jsp files for sub-pages. I've been able to create a

[jQuery] IE not executing JS loaded on the fly

2007-04-23 Thread [EMAIL PROTECTED]
Hi, I have this code // loads modules for the selected tab. function loadAllModules() { $.get('draw_modules.php', {}, function(data){ $("#container").empty().append(data);

[jQuery] Re: Show()/Hide() Bug?

2007-04-23 Thread d3
In FireFox 2.0.0.3 and in IE7 after show and hide with speed parameter opacity of element not restored to 1. Before execute script: Test text After execute script: Test text See it in FireBug or in IE DOM explorer: element P is now with minimal transparency. On 23 апр, 22:17, "Sean Catchpole" <

[jQuery] Alternative way of reacting to clicked link?

2007-04-23 Thread Alessandro Portale
Hi, I have a page with about 12000 links in it. A few of these links point to anchors on the same page. A function should be called when those "intra page" links are clicked. $("[EMAIL PROTECTED]").click(...) seems to be too slow for some browsers on some machines if 12000 links need to be filte

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

2007-04-23 Thread Stuart
OK, after lunch I knocked together a quick and very dirty php page that contains a form that submits back to itself. In my testing, this form displays the much of the same behavior that I described originally. Works fine in FF. Form doesn't submit in IE 6 or 7. This example, however, does not pres

[jQuery] Re: Blink effect

2007-04-23 Thread Alexandre Plennevaux
no it does not work: it seems show() / hide() works on the width, height, or opacity. but then i guess i could try to build this effect by using a timeout and display:none / auto or something like that _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh

[jQuery] Re: How to Trigger link , without click event

2007-04-23 Thread Benjamin Sterling
this is assuming that your php is wrapped in the javascript tag of course this is not tested, but I am assuming you want this to show when your page loads, so you would also put that code in the $(document).ready(function(){}); statement. On 4/23/07, akiratsu <[EMAIL PROTECTED]> wrote: Hi

[jQuery] Re: library conflict

2007-04-23 Thread Mike Alsup
For the record, recent version of the jQuery corner plugin do not have a problem with $ usage. http://dev.jquery.com/browser/trunk/plugins/corner/jquery.corner.js?format=txt Mike Think perhaps that jQuery rounded corners in one of those that needs to be re-done, 'cos no matter what order I c

[jQuery] Re: Blink effect

2007-04-23 Thread Josh Nathanson
How about callback = function() { $("#mydiv").hide().show().hide().show() } -- Josh - Original Message - From: Alexandre Plennevaux To: jquery-en@googlegroups.com Sent: Monday, April 23, 2007 1:27 PM Subject: [jQuery] Blink effect hi, i've been playing with the effects

[jQuery] Re: library conflict

2007-04-23 Thread Sapphire
Think perhaps that jQuery rounded corners in one of those that needs to be re-done, 'cos no matter what order I call the libraries, whether I use jQuery.noConflict() or not, it just will not round the box corners. The sole reason of trying to use prototype is cos of PeriodicalUpdater which m

[jQuery] Re: How to Trigger link , without click event

2007-04-23 Thread akiratsu
Hi Benjamin, How could i execute that 'javascript function'(without click) from my php ? for example: $('#ex3a').jqm . ' } ?> thanks for help, Rudy bmsterling wrote: > > .jqmShow(); will execute the show. > > $().ready(function() { > $('#ex3a').jqm({ > trigger: '#ex3aTrig

[jQuery] Blink effect

2007-04-23 Thread Alexandre Plennevaux
hi, i've been playing with the effects built in jquery and had a lot of fun playing with such flexibility. However, i could not achieve what i wanted: having an element blink twice when its html content get loaded via ajax. The problem is the blinking of course, jquery has mad ajax so easy. i

[jQuery] Re: library conflict

2007-04-23 Thread Karl Swedberg
On Apr 23, 2007, at 2:43 PM, Mike Alsup wrote: However, as I pointed our earlier, some older plugins still assume that $ == jQuery. Thickbox is an older plugin that is known to rely on $ but Klaus Hartl is currently rewritting it and a new and improved version will be available soon(ish). The

[jQuery] Re: Browser Dom Performance

2007-04-23 Thread Scott Sauyet
lacroix1547 wrote: > [ ... ] I tried to made a trivial ( or gory I am not sure anymore ) dom query system with such dom static analysis to be used allong jquery. Nothing very serious but results were there. Everything looked instantaneous. This is very interesting. Is it something you can sha

[jQuery] Re: How to Trigger link , without click event

2007-04-23 Thread Benjamin Sterling
.jqmShow(); will execute the show. $().ready(function() { $('#ex3a').jqm({ trigger: '#ex3aTrigger', overlay: 30, /* 0-100 (int) : 0 is off/transparent, 100 is opaque */ overlayClass: 'whiteOverlay'}).jqmShow(); }); -- Benjamin Sterling http://www.KenzoMedia.com http://www.KenzoHosting

[jQuery] Browser Dom Performance

2007-04-23 Thread lacroix1547
Lately I have been crazy about jquery. Maybe I abused a little but, I made an experience wich consisted in replacing all my css rules(well, some basic css understandable for ie6 ) for more intelligent 'styling rules' expressed with jquery. Wow, I had a PORTABLE intelligent style engine. But oups,

[jQuery] How to Trigger link , without click event

2007-04-23 Thread akiratsu
I tried to used your plugin 'jqModal' and run 'Example 3a'. http://dev.iceburg.net/jquery/jqModal/ How to 'trigger' the function without 'click' it on view(link) ?? for example, i have condition(php) that have to call/trigger the function like : Thanks in advance -- View this message in con

[jQuery] Re: Recommended way to overload jquery method?

2007-04-23 Thread Mike Alsup
For example, if jQuery were to define their trim() method as a prototype to the String object, then it would/could override a pre-defined version of the function. If the two functions did not behave *exactly* a like, now you have some issue that's very hard to debug and track down. I agree. O

[jQuery] Re: library conflict

2007-04-23 Thread Mike Alsup
Kelly, I assume that "your code" is jQuery based. The easiest approach is to simply scope your code like this: (function($) { // your code here })(jQuery); This lets you write in typical jQuery style (using the $ symbol) without worrying about collisions with other libraries. Most jQuer

[jQuery] Re: Recommended way to overload jquery method?

2007-04-23 Thread Dan G. Switzer, II
Matt, >Is there any reason why it's not done this way? Perhaps there are >things I'm not thinking of :) You can access the functions using $.trim(), etc. While I had no part in planning, I suspect the decision to place all this code w/in the jQuery object was to avoid having the jQuery code inte

[jQuery] Re: Interface Slider - Clicks don't trigger onChange event

2007-04-23 Thread Geoffrey Knutzen
Yeah, I see the hidden slider too when clicking and dragging. Looking at firebug, it looks like a copy of the handle is made while sliding, and that is what is showing up. Maybe there is a solution with unbind? May not even need to have the hidden handle if we could just unbind the action from t

[jQuery] Re: Recommended way to overload jquery method?

2007-04-23 Thread Matt Kruse
On Apr 23, 4:36 am, Remy Sharp <[EMAIL PROTECTED]> wrote: > Though if you're thinking of overloading functions like trim, wouldn't > it be better to extend the String object? Why doesn't jQuery extend existing objects (other than Object, of course) and then reference those methods instead of defi

[jQuery] Re: Sortable reverting to original state

2007-04-23 Thread John C. Bland II
No, the elements don't exist at the same time. On 4/23/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: John, >No, I went straight to the container vs walking it with #left > >div.sortables. My question was does the selector "#left > div.sortables" also retrieve the specific ID? I'm wonder

[jQuery] Re: library conflict

2007-04-23 Thread kerford
I'd like to piggyback on this thread if I could. I'm writing for an environment that may or may not have other libraries included in the page. It's not something I can know beforehand. I also won't know in what order libraries (if any) are loaded. What is the best, most defensive approach to take

[jQuery] Re: Show()/Hide() Bug?

2007-04-23 Thread Sean Catchpole
I ran you code in FireFox and in IE6 and recieved no such error. ~Sean

[jQuery] Re: Recommended way to overload jquery method?

2007-04-23 Thread Jörn Zaefferer
howard chen schrieb: I want to overload some core jQuery method, e.g. trim() method any codes sample or recommendation to do this? Save a reference to the original method in a closure and call that when appropiate. An example for this can be found here: http://dev.jquery.com/browser/trunk/pl

[jQuery] Re: Interface Slider - Clicks don't trigger onChange event

2007-04-23 Thread skimber
Thanks for the suggestion! On first try I've got some strange stuff happening if i click and inadvertently drag a little. The hidden slider appears while being dragged and then disappears again when let go... but maybe some tweaking can solve that... Maybe we could override the click event som

[jQuery] iUtil has no properties??

2007-04-23 Thread Ad4m
Hi! I'm using Interface and Thickbox plugin for clientside image resizing and when trying to resize image i'm getting an error: *Error: jQuery.iUtil has no properties* Script was already working and suddenly stopped. I got back to the last working version and the error didn't disappear! Enyo

[jQuery] Re: jVariations = new plug-in/tool

2007-04-23 Thread Scott Sauyet
Brian Cherne wrote: jVariations is a developer tool that generates a control panel (with checkboxes and radio buttons) to show and hide variations (aka corner cases) in a single HTML template. This is a very nice little tool! One thing that would make it more useful for me would be to hide t

[jQuery] 2 separate Sortables

2007-04-23 Thread Michael
I have two separate sortable divs on one page. Each sortable can not interact with the other and can't seem to get this working properly. IE the first sortable works fine, but the second doesn't. FF Niether sortable works properly. Should I have 2 separate sortable functions with different namin

[jQuery] Show()/Hide() Bug?

2007-04-23 Thread d3
Source HTML file: --- http://www.w3.org/ TR/xhtml11/DTD/xhtml11.dtd"> http://www.w3.org/1999/xhtml"; > Show/Hide Test

[jQuery] Re: Can it be done? (Modifying plugin parameters at runtime)

2007-04-23 Thread skimber
Hi Sean, Thanks for that... I'd tried that and it didn't work... however i worked it backwards and found a handy little function that outputs the content of an object and found what I was looking for... I actually had to refer to them via: this.resizeOptions.maxHeight So I guess I'll have t

[jQuery] Re: what's the best way to catch malformed xml in an ajax call?

2007-04-23 Thread Ⓙⓐⓚⓔ
success isn't successful, it just gets back the xml if successful or in the case of firefox, it seems to get a special parsererror (formatted as xml)! I've removed all callbacks except complete, I have to do a lot of browser specific code to determine if the xml is malformed or the file is missin

[jQuery] Re: jVariations = new plug-in/tool

2007-04-23 Thread Diego A.
You could always use the excellent metaData plugin to extract information about each test div via the 'class' or 'data' attribute... things like the group it belongs to and what kind of control to display... Having said that, I agree about the more explicit and meaningful labels and I think you'v

[jQuery] Re: jVariations = new plug-in/tool

2007-04-23 Thread Brian Cherne
Thanks Diego. I'll think about this for a little bit and see what shakes out of the tree. I sort of like the recipe being more explicit and have meaningful labels for the checkboxes. I'm not sure how I could do that with "#tests div" without adding/assuming stuff about the HTML DOM. Brian. On 4

[jQuery] Re: Taconite question...

2007-04-23 Thread Shelane Enos
OK, so as a workaround for IE, I assigned the click event to the img. My lasso code looks something like this: [if:client_browser >> 'MSIE'] $j('#mystatusimg').click(function(){ setStatus('mystatus', 'statusID', 'update status to this value'); }); [else] [/if]

[jQuery] Re: Arbitrary Number of Parents

2007-04-23 Thread Sean Catchpole
Kim, I think you are right. $(this).parents("div.foo") should work. The following might also work: $("../div.foo",this) But I haven't had time to punch that in myself yet. ~Sean

[jQuery] Re: Interface Slider - Clicks don't trigger onChange event

2007-04-23 Thread Geoffrey Knutzen
If you can get by without the ability to click on the slider to get the handle to move, you might try a real ugly hack. You can put two handles on the slider, and then hide the first handle. Only the first handle is affected by clicking on the slider. It is ugly, but might solve your problem.

[jQuery] Re: automatic scroll like google calendar

2007-04-23 Thread Sean Catchpole
Javascript has a built in scrollTo(x,y) function. One would only need to get the .offsetTop of the element and viola. Ok well perhaps that was over simplified, but at least there's some stuff to point you in the right direction. ~Sean

[jQuery] Re: ajax and links

2007-04-23 Thread Sean Catchpole
Good example Klaus! Here's another reference for checking the url if you need it: http://www.sunsean.com/Jistory/ ~Sean

[jQuery] Re: Can it be done? (Modifying plugin parameters at runtime)

2007-04-23 Thread Sean Catchpole
Hello Simon, Yes, your onResize function can change the values of maxWidth. Here is an example: $('#resizeMe').Resizable( { minWidth: 50, minHeight: 50, maxWidth: 400, maxHeight: 400, // etc. etc. onResize

[jQuery] Re: OT: How to request something from the google groups folks?

2007-04-23 Thread Sam Collett
On Apr 23, 1:22 am, Chris Jordan <[EMAIL PROTECTED]> wrote: > Does anyone know if you can request a feature for GoogleGroups? > > Just in case someone from Google is monitoring (... they *do* do that > don't they?) here's my request: > I've got a request for the web based interface. I'd like to se

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

2007-04-23 Thread Stuart Batty
The form is not submitted by ajax. It is a http post. I'll simplify the form down to something manageable and post. malsup wrote: > > > Stuart, > > Is the form submitted via normal browser invocation or via ajax? > Also, it would be immensely helpful if you could put together a simple > html

[jQuery] Re: Getting an elements classes

2007-04-23 Thread Dan G. Switzer, II
>I'm missing the blatantly obvious... > >jQuery can .addClass(), .removeClass(), and .toggleClass(). The following code would alert "true" if the #myElement had the class of "myClass". alert( $("#myElement").is(".myClass") ); -Dan

[jQuery] Re: Getting an elements classes

2007-04-23 Thread Aaron Heimlich
On 4/23/07, wls <[EMAIL PROTECTED]> wrote: How does one tell if an element has a class if( $("#myElement").is(".myClass") ) { // do super cool stuff... } or alternatively, get a list of classes? Try this: var classes = $("#myElement").attr("class").split(" "); -- Aaron Heimlich Web

[jQuery] Re: Getting an elements classes

2007-04-23 Thread Sam Collett
On Apr 23, 4:51 pm, wls <[EMAIL PROTECTED]> wrote: > I'm missing the blatantly obvious... > > jQuery can .addClass(), .removeClass(), and .toggleClass(). > > How does one tell if an element has a class, or alternatively, get a > list of classes? > > -wls You can do: if( $("#mydiv").is(".myclass"

[jQuery] Re: Getting an elements classes

2007-04-23 Thread Sean Catchpole
On 4/23/07, wls <[EMAIL PROTECTED]> wrote: How does one tell if an element has a class, or alternatively, get a list of classes? The following would return an array of the classes the first item has. var classes = $(query)[0].className.split(" "); ~Sean

[jQuery] Getting an elements classes

2007-04-23 Thread wls
I'm missing the blatantly obvious... jQuery can .addClass(), .removeClass(), and .toggleClass(). How does one tell if an element has a class, or alternatively, get a list of classes? -wls

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

2007-04-23 Thread Mike Alsup
Stuart, Is the form submitted via normal browser invocation or via ajax? Also, it would be immensely helpful if you could put together a simple html page (ignore the server component) that demonstrates the problem. Mike On 4/23/07, Stuart Batty <[EMAIL PROTECTED]> wrote: Mike, I don't immed

[jQuery] Re: List of all images showing

2007-04-23 Thread cheesegrits
Hey Dan, Thanks for the response, but I finally spotted my Deliberate Mistake (ha ha). I posted a follow-up, but it got delayed somewhere inside the Nabble gateway. And just to compound my embarrassment, I ended up duplicating the followup! Anyway, problem solved. Helps if you rename the mai

[jQuery] Re: library conflict

2007-04-23 Thread Mike Alsup
Thickbox and jTip are not written correctly to work in noConflict mode. Try doing a search/replace on those plugins to replace the $ with jQuery. Also, if you're going to include prototype before jQuery then remember to invoke the noConflict function. Mike http://liniverse.com/index.php?id=

[jQuery] Re: library conflict

2007-04-23 Thread Sapphire
Well I did not consider that aspect, but just tried it and here's what I found: If I reference prototype/scriptaculous before jQuery and it's plugins, jquery works, but prototype breaks. If I reverse the order, then jQuery fails and prototype works. The site I'm using this on is not yet meant

[jQuery] Re: Sortable reverting to original state

2007-04-23 Thread Dan G. Switzer, II
John, >No, I went straight to the container vs walking it with #left > >div.sortables. My question was does the selector "#left > div.sortables" also retrieve the specific ID? I'm wonder if you're attaching 2 different behaviors to the same element. -Dan

[jQuery] Re: Sortable reverting to original state

2007-04-23 Thread John C. Bland II
No, I went straight to the container vs walking it with #left > div.sortables. I keep drudging through it and see if I can get it working. Is there a way to use the non-compressed version of JS? On 4/23/07, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote: John, >I wish I could show the page bu

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

2007-04-23 Thread Stuart
I just did an experiment where I added an explicit call to submit after the block and it works in IE. I just added $ ("#myForm").submit(); after the call to block. It still takes about 6 seconds for the modal to appear but this does show that the submit event is getting clobbered somehow.

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

2007-04-23 Thread Stuart Batty
Mike, I don't immediately see any way to post a sample page since the application is a intranet java webapp running on Tomcat using MyFaces. I could possibly post the compiled output from the .jsp but I fear that may mask the original problem. I could probably work around the odd modal alignment

[jQuery] binding problem with content added after the document ready

2007-04-23 Thread willy
Hi, I have probleme binding generated content with the events I binded on load: my dom il like that my nodeName In my app, a html / js tree, I can create node adding in the existing li node: ma new node name but then I want to bind it to the same event I binded the li node with $(docume

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

2007-04-23 Thread Mike Alsup
Stuart, Can you post a sample page? Mike

[jQuery] Re: library conflict

2007-04-23 Thread Mike Alsup
Well it looks like jQuery and prototype will never play on the same page That's not true either. jQuery and [insert library name here] *do* work together. If you're still having a problem it is likely due to the order in which you are including the libraries on your page. If your code looks

[jQuery] problem with Interface plugin

2007-04-23 Thread Ad4m
Hi! I'm using Interface and Thickbox plugin for clientside image resizing and when trying to resize image i'm getting an error: *Error: jQuery.iUtil has no properties* Script was already working and suddenly stoped. I got back to the last working version and the error didn't disappeared! Eny

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

2007-04-23 Thread Stuart Batty
Pardon me for replying to my own thread but I can't seem figure out why it's not getting accepted to the mailing list. I'm subscribed but I keep getting email saying that it's still pending. I posted it 3 days ago so I'm thinking that's not normal. By the way, if this gets on the mailing list, I

[jQuery] Re: library conflict

2007-04-23 Thread Sunday
Well it looks like jQuery and prototype will never play on the same page, and I find the behavior strange. Take this example call: *jQuery.noConflict();* jQuery(document).ready(function($j) { $j("#box").corner("round 20px"); $j("#banner").corner("bottom 20px").corner("top bevel"); });

[jQuery] Re: library conflict

2007-04-23 Thread Mike Alsup
Dan, "Lazy" is definitely not a word I would use to describe you! Cheers! Mike That was the problem--I didn't look at the actual event.js file to see what ready() does. :) That'll teach me never to be lazy when looking up answers.

[jQuery] Re: library conflict

2007-04-23 Thread Dan G. Switzer, II
>Yeah, that's just the shortcut for passing the user fn. You need to >look at the ready impl: That was the problem--I didn't look at the actual event.js file to see what ready() does. :) That'll teach me never to be lazy when looking up answers. ;) -Dan

[jQuery] Re: library conflict

2007-04-23 Thread Mike Alsup
Oops! I just took a look at the $() ready shortcut--which looks to pass in the selector--not the jQuery object. 25 var jQuery = function(a,c) { 26 // If the context is global, return a new object 27 if ( window == this ) 28 return new jQuery(a,c); 29 30

[jQuery] Re: library conflict

2007-04-23 Thread Dan G. Switzer, II
Mike, >jQuery.noConflict(); > >jQuery(document).ready(function($) { >// use the $ here safely to ref jQuery >$().ajaxStart($.blockUI).ajaxStop($.unblockUI); >}); Oops! I just took a look at the $() ready shortcut--which looks to pass in the selector--not the jQuery object. 25 var j

[jQuery] Re: library conflict

2007-04-23 Thread Mike Alsup
The ready function gets a copy of the elements specified in the selector--not a reference to the jQuery object. That's not true. The ready fn is passed a jQuery object so that you can alias it as needed. A common usage pattern is: jQuery.noConflict(); jQuery(document).ready(function($) {

[jQuery] Can it be done? (Modifying plugin parameters at runtime)

2007-04-23 Thread skimber
Hi Everyone, I asked something along these lines a while back but got no responses, so I'm assuming it's not possible, but if there's anybody out there who would be kind enough to give me a definitive answer then I'll be able to stop worrying that i've missed something blindingly obvious whic

  1   2   >