[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 05:06, expresso [EMAIL PROTECTED] wrote: I figured maybe I could just append an addClass after the element.parent(td).next(td) but not sure if that's correct that's correct if you want to add tha class to the table cell which is next to the element you pass (to the function). if

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 10:15, andrea varnier [EMAIL PROTECTED] wrote: that's correct if you want to add tha class to the table cell which is next to the element you pass (to the function). I'm sorry this is completely wrong!!! :))) don't know what I wrote. like you would put addClass inside the appendTo,

[jQuery] Re: a small accessibility rant

2008-02-18 Thread Gordon
On Feb 15, 4:46 pm, Rick Faircloth [EMAIL PROTECTED] wrote: Gordon... How do you propose I handle making my site accessible to those who are blind and deaf? Should all developers be required to code sites that can be printed in Braille by specially designed million dollar systems? All

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread expresso
Actually I already included my .css page. How do I just add a class to the td here is what I'm really asking. I'm new to JQuery. I know you can add a CSS class to an element. But here, it's sort of tricky for this one. $(function(){

[jQuery] Trigger a toggle when page loads

2008-02-18 Thread Mang
I have several buttons whose SRC is toggled each time they are clicked. This is accomplished by: //deactivate activate click handler var destroy = function() { $(this).unbind('toggle').unbind('click'); }; var init = function() {

[jQuery] Re: Updated API browser

2008-02-18 Thread Remy Sharp
@Jack - I'm tinkering with the idea of converting the XML either on the server-side, or as a one hit on the client side - to a JSON object. That way there's no more XML queries to run, each time you search. Once that's in place, it'll be easier (on your browser) to run the '*' query (though I

[jQuery] Re: a mix of normal javascript and jquery?

2008-02-18 Thread Cronlajoon
Have you tried JQuery UI draggable, it has a parent (actually called containment) parameter which works fine for my project... You should be able to get to work with this code (not tested): $('#box').draggable( { containment: '#main' // it's also possible to specify 'parent' or any DOM

[jQuery] drag element w/o interface library

2008-02-18 Thread jquertil
Hello, I'm trying to drag an element without the use of any plugin or library. The code below works - except when I invoke the mousedown on an image element. In that case, the browser seems to think I want to drag the image off the page. Is there a way to override that? Again, code below works

[jQuery] [validate] Error messages displayed a second time are given block display mode

2008-02-18 Thread kapowaz
I've created a new ticket (http://dev.jquery.com/ticket/2359) with a patch for a quirky bug I've discovered, which may or may not be a bug in the .show() method of jQuery itself, or perhaps just a bug within the validation plugin. The problem is manifest when error messages are configured to be

[jQuery] Request for a simple basic Ajax call with loading gif

2008-02-18 Thread gh0st
One of the things that is frustrating me in learning jQuery is that there isn't enough examples, case-studies or tutorials on how to use the .ajax call; most web pages I've seen seem to be for the .load or .get. That being said, can someone post a very basic Ajax call complete with a loading

[jQuery] Re: slider bar in jQuery

2008-02-18 Thread Ariel Flesler
The 2nd link is awesome! :) Ariel Flesler On Feb 17, 10:38 pm, alex [EMAIL PROTECTED] wrote: Hello, I am new to both jQuery and YUI.  While jQuery has an easy slideUp slideDown mehtods..YUI has an easy slider widget (http:// developer.yahoo.com/yui/examples/slider/slider-simple.html). I

[jQuery] Re: returning variable from extension function

2008-02-18 Thread jquertil
thanks cherry for bumping this! and THANKS MIKE for pointing out the async aspect of $.get() I rewrote my function and now it works! For the benefit of others, there are soem add'l comments loadXML2array: function(url,variable) { // is an extension function, see original post above

[jQuery] Re: IE/Opera problem using ClueTip

2008-02-18 Thread fshuja
thnx for ur response. Yes i have test the code by removing the onActivate and onShow functions but still the same problem. One more thing i forget to tell that the code is 100% ok on local. Sould i send u the whole code? thnks Faraz

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 13:59, andrea varnier [EMAIL PROTECTED] wrote: $(element.parent('td').next('td').addClass('myClass'); errata corrige: element.parent('td').next('td').addClass('myClass'); assuming var element already contains a jQuery object. I'm sorry, I really should have stayed home today :|

[jQuery] Re: How to add a CSS Class to this

2008-02-18 Thread andrea varnier
On 18 Feb, 05:17, expresso [EMAIL PROTECTED] wrote: Actually I already included my .css page. How do I just add a class to the td here is what I'm really asking. $(element.parent('td').next('td').addClass('myClass'); this doesn't work?

[jQuery] Re: Request for a simple basic Ajax call with loading gif

2008-02-18 Thread johan . borestad
var loader = $('div.ajaxloader').fadeIn(500) $('#ajax-placeholder').load('/content_to_load.php', function(){ // This is a callback function loader.fadeOut(500) }) Something like that. The div.ajaxloader is for you to style correctly with css to make it appear in the middle of the page, or

[jQuery] Re: Request for a simple basic Ajax call with loading gif

2008-02-18 Thread Remy Sharp
I've written a few, but there's a whole bunch out there (http:// docs.jquery.com/Tutorials). Using Ajax to validate forms: http://jqueryfordesigners.com/using-ajax-to-validate-forms/ Ajax'ifing forms (screencast): http://remysharp.com/2007/03/05/jquery-ajaxed-forms/ What you're after boils

[jQuery] Re: Slideshow for divs (with AJAX?)

2008-02-18 Thread Ariel Flesler
Hi Christoph Added a new release that includes the option 'lazy' that makes the plugin go look for the items again each time, this way you can add/ remove/reorder the items and it still works. You need to do something like the last example in the demo:

[jQuery] Interface Sortables Crash On IE

2008-02-18 Thread RepThe415
I had this bug, when opening the page in IE it always caused to crash. I was trying to use the sortables on a simple ul li. Here's the fix / the thing you shouldn't do when implementing /* * THIS FAILS / div id=sort ul li class=sortableitem1/li li

[jQuery] Re: Interface, jQuery, Sortable

2008-02-18 Thread RepThe415
I got the same issue.. IE crashes completely when trying to open the page. Using Interface Sortables with jquery 1.2.3. Here's a code snippet. Runs fine for FF but crashes in IE 6 ul id=category_list li rel=1 id=category_6906 class=sortableitem img src=/styles/trans.gif class=icon

[jQuery] Re: IE/Opera problem using ClueTip

2008-02-18 Thread fshuja
Ok i am sending u the code at ur email @englishrules.com I have IIS test server.

[jQuery] Re: error in jquery.validate.pack.js ie6

2008-02-18 Thread RandyJohnson
Jörn ... One other thing is the IE6 version that I am using: 6.0.3790.1830 Hope that helps Randy On Feb 17, 5:40 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: RandyJohnson schrieb: Jörn ... I just downloadedValidate1.2.1 and tried to use the pack version and I am also getting an

[jQuery] Re: error in jquery.validate.pack.js ie6

2008-02-18 Thread RandyJohnson
Jörn ... www.chs67.net/logintest.php type in any old email address and as soon as you tab into the password field you should get the following message: Line 41 Char 60 Error Object doesn't support this property or method Code 0 URL http://www.chs68.net/logintest.php hope this helps. I have

[jQuery] Re: finding if element is focused

2008-02-18 Thread Eridius
anyone? Eridius wrote: i know i bind a function to the event focus of an element but is there a way i can see if a element is focused like? if(element.focus()) { //true } else { //false } -- View this message in context:

[jQuery] Parallax scrolling, background foreground elements

2008-02-18 Thread Ty (tzmedia)
A recent site launch has a bit of a buzz surrounding the use of parallax backgrounds. When resizing the window width at: http://silverbackapp.com/ you will see what I mean the leaves have a very three dimensional effect. This effect would be great to use with any of the jquery scrolling plugins

[jQuery] Re: finding if element is focused

2008-02-18 Thread andrea varnier
On 18 Feb, 16:22, Eridius [EMAIL PROTECTED] wrote: anyone? I think that if you don't post some more infos it will be very difficult to think of an answer. what do you need this for? maybe someone can suggest another approach... :)

[jQuery] [TreeView] Old version

2008-02-18 Thread John Morrison
Hi Jörn, Is it possible to download the 1.3 zip. I need to try and resolve http://groups.google.com/group/jquery-en/browse_thread/thread/e9e86cd90855c1af/1a2284134cb381bb?. Thanks, J.

[jQuery] Re: Change stylesheets if images are off

2008-02-18 Thread Danny
Unfortunately, no. You can't tell whether a .load will fail until it does fail, and that's true of any asynchronous method. You can't say if it's failed or just not succeeded yet. All you can do is set a time limit and check if you've succeeded in that time and if not, assume you've failed.

[jQuery] Re: Parallax scrolling, background foreground elements

2008-02-18 Thread Mika Tuupola
On Feb 18, 2008, at 5:57 PM, Ty (tzmedia) wrote: A recent site launch has a bit of a buzz surrounding the use of parallax backgrounds. When resizing the window width at: We did something vaguely similar, but not as cool and only with two layers (scroll and check the moon). It was done

[jQuery] Re: ajax file uploads: getting strange error

2008-02-18 Thread Jake McGraw
Ah, I traced the issue to a PHP error, make sure your server scripts aren't spitting out HTML errors! - jake On Feb 14, 2008 3:05 AM, Yılmaz Uğurlu [EMAIL PROTECTED] wrote: Can you try upload your file without upload plugin. Create simple file form and just post to data your uplaod action.

[jQuery] Re: Parallax scrolling, background foreground elements

2008-02-18 Thread timothytoe
I remember when Shadow of the Beast came out on the Amiga. Crappy gameplay, but great parallax scrolling. This is a great effect. Old Disney films used this well. Looks like 4 layers there. Anyone look at the code yet? Is there Javascript controlling the positioning or is it all CSS? On Feb

[jQuery] fadeOut and IE6

2008-02-18 Thread George
I'm currently building a widget which contains multiple deep dives into sections of a website in a limited amount of space and have run into an issue when using the fadeOut function with IE6. Per the requirements of this section, the client wants to have the currently selected item fade out and

[jQuery] User Interface: How to query the dropped element?

2008-02-18 Thread jmar777
When using draggables and droppables, I'm having difficulty understanding how to query the dropped element. For example, right now I can do something like the following: $('.droppable').droppable({ accept: '.draggable', tolerance: 'pointer',

[jQuery] Re: slider bar in jQuery

2008-02-18 Thread George
There is slider functionality in the jQuery UI project ( http://ui.jquery.com ) which will do pretty much what you're looking for. On Feb 18, 7:01 am, Ariel Flesler [EMAIL PROTECTED] wrote: The 2nd link is awesome! :) Ariel Flesler On Feb 17, 10:38 pm, alex [EMAIL PROTECTED] wrote:

[jQuery] Ajax Post URL - unterminated regular expression literal

2008-02-18 Thread MikeP
Hello. I'm using an Ajax Post. It works fine when I use the path in the url... url: controllers/processajax.cfm, However, If I want to use a url string like: url: index.cfm?Action=processajax, Then I get the following error: unterminated regular expression literal It blows up in what appears

[jQuery] Re: Parallax scrolling, background foreground elements

2008-02-18 Thread Mika Tuupola
On Feb 18, 2008, at 8:15 PM, timothytoe wrote: Looks like 4 layers there. Anyone look at the code yet? Is there Javascript controlling the positioning or is it all CSS? All CSS. Different position-x values for three layers. position-x 20% position-x 40% etc AFAIK same kind of effect can

[jQuery] Re: Counting numbers from X to Y

2008-02-18 Thread [EMAIL PROTECTED]
Thanks for the help! Though I'd rather not include another big plugin just for the sake of this ticker thingie, so I'll try to find another one. It also wasn't that demo page I had seen before, but that one might have also just been a showoff for another plugin. I found this page:

[jQuery] Re: How to dynamically load jQuery plugins?

2008-02-18 Thread Nazgulled
I really wanted some thought on this from you people, cause you understand of this more than I do... On Feb 18, 1:54 am, Nazgulled [EMAIL PROTECTED] wrote: After lots of google searching and reading this and then, I created a little function like this: function includeScript(scriptName) {

[jQuery] Re: finding if element is focused

2008-02-18 Thread Karl Swedberg
this should help... http://www.softwareunity.com/sandbox/JQueryMoreSelectors/ --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Feb 8, 2008, at 10:36 AM, Eridius wrote: i know i bind a function to the event focus of an element but is there a way i

[jQuery] Re: Parallax scrolling, background foreground elements

2008-02-18 Thread Ty (tzmedia)
I sort of wondered about maybe it just being a Centered set of images of varying widths, but hadn't gotten around to deciphering the layout for myself.. With jQuery, I'm just wondering if a more advanced set of features could be accomplished, something along the lines of clicking different scroll

[jQuery] Re: ajax form plugin question

2008-02-18 Thread Mike Alsup
Hi Mike, I've faced exactly the same problem. When I upload a file via the .ajaxFrom all seems to be well, except that success function doesn't fire. But json response that the server returns is ok. As it was written in Jquery Form code samples I return json in textarea tags. I've searched

[jQuery] Re: Fading effects and anti aliasing in IE/Opera

2008-02-18 Thread Nazgulled
Thanks. It worked a bit... I mean, when the animation ends, the text gets smooth as it should be, but during the animation it's all fuzzy... But through my searching, I believe there isn't a fix for it. Only the team behind IE can fix it internally, correct or wrong? On Feb 16, 4:04 am, Karl

[jQuery] Re: fastest way to load both jquery thickbox

2008-02-18 Thread polyrhythmic
What version of PHP is your server running? Minify is PHP5 by default, there's a PHP4 version available here: http://www.vulgarisoip.com/2007/06/21/minify-your-external-javascript-and-css-with-php/ Otherwise it appears you're doing everything correctly. If you turn on PHP error_reporting (

[jQuery] A problem I can't figure out alone

2008-02-18 Thread rics
I don't even know where the problem is exactly. Please, if you could show me some way to go... I want to check the checkbox that have the specifc ID. Here is my code: if (sgconfs.default_domain != '') { $ (#+sgconfs.default_domain).attr(checked, checked); } Ok. The sgconfs is an object. The

[jQuery] add to favorites link that works in IE AND Firefox

2008-02-18 Thread johnwboyd
Can it be done and NOT opening the bookmark in a side window in firefox?

[jQuery] Re: [TreeView] Old version

2008-02-18 Thread Jörn Zaefferer
John Morrison schrieb: Hi Jörn, Is it possible to download the 1.3 zip. I need to try and resolve http://groups.google.com/group/jquery-en/browse_thread/thread/e9e86cd90855c1af/1a2284134cb381bb?. http://plugins.jquery.com/node/657 Each plugin site has a View all releases link. Jörn

[jQuery] Re: [validate] Error messages displayed a second time are given block display mode

2008-02-18 Thread Jörn Zaefferer
kapowaz schrieb: I've created a new ticket (http://dev.jquery.com/ticket/2359) with a patch for a quirky bug I've discovered, which may or may not be a bug in the .show() method of jQuery itself, or perhaps just a bug within the validation plugin. Thanks for the ticket. I'll try to get it

[jQuery] Re: A problem I can't figure out alone

2008-02-18 Thread Klaus Hartl
On Feb 18, 9:24 pm, rics [EMAIL PROTECTED] wrote: I don't even know where the problem is exactly. Please, if you could show me some way to go... I want to check the checkbox that have the specifc ID. Here is my code: if (sgconfs.default_domain != '') { $

[jQuery] Re: finding if element is focused

2008-02-18 Thread George
Yep do give it a go. It's probably the :focus selector that you're after. I'm sorry to say that I've not yet tested it with v1.2.3 and I fear it will probably break because of the changes to the way selector expressions must be defined in the latest version (as functions instead of eval text).

[jQuery] [TreeView] added active class

2008-02-18 Thread sozzi
Hi Joern, A tinsy change in treeview allows for an active class to open the tree: under: switch(settings.persist) { I just added: case active: var current = this.find(.cur_cat); if ( current.length ) { current.addClass(selected).parents(ul, li).add(

[jQuery] $(el).html() Removes Line Breaks In IE6

2008-02-18 Thread Justin
I've been experimenting with client-size markdown transformation and have hit a stumbling block. It seems that $(this).html() returns the inner html of the element with the line breaks stripped out in IE6 (not sure about IE7 right now). Am I missing something? Obviously, markdown assigns meaning

[jQuery] How to center div horizontally + vertically?

2008-02-18 Thread Ryura
Hi everyone, I'm wondering the best way to center a div horizontally and vertically on the fly. I have: jQuery(a).click(function () { jQuery(#box)./*verticalCenter().*/ add(#loading).show(); }); Basically I just want #box to be centered on the screen and then shown.

[jQuery] Rounded corners and drop shadow?

2008-02-18 Thread Shawn
I'm using the roundcorners-canvas plugin, and the dropshadow plugin. I have a div on the page I would like to have rounded corners AND a drop shadow. However running code like the following doesn't do quite what you would think: $(#navigation).corner(20px).dropShadow(); The corners of

[jQuery] Re: How to center div horizontally + vertically?

2008-02-18 Thread Shawn
I seem to remember seeing a center() plugin once. But that was pre 1.2 days, so it may not be applicable anymore. Regardless, the best way I know of to center a DIV is to use CSS. Something like this: #mydiv { margin: 20%; } or even { margin: auto } in some cases. There's PLENTY on this

[jQuery] Re: [TreeView] added active class

2008-02-18 Thread sozzi
Added as: Ticket #2362 (new enhancement) PS: how to heck do you add the [TreeView] to the post title? I entered it and it just vanished. On Feb 18, 2:26 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: sozzi schrieb: Hi Joern, A tinsy change in treeview allows for an active class to

[jQuery] Re: How to center div horizontally + vertically?

2008-02-18 Thread Hamish Campbell
Talked about this over here: http://groups.google.com/group/jquery-ui/browse_thread/thread/35a33d1c50f0e724/e527c8f47ba183e0?lnk=gstq=extend+center#e527c8f47ba183e0 This is my extension to centre a div to the screen: $(document).ready(function() { jQuery.fn.centerScreen =

[jQuery] I can't seem to break out of this frame.

2008-02-18 Thread Justin
Here's the page http://guestbook.spinskins.net It's just a guest book/comment section of my site. If you click main menu or any of those three nav links at the top of the page, you can see that it does break out of the frame but it opens in a new window. I want it to break out of frame and

[jQuery] Re: Using val() vs text()

2008-02-18 Thread Hamish Campbell
Could do it like this: $('#myElement:not(input)').text(s); $('#myElement:input').val(s); So you could have a function like: function setElement(id, s) { $('#'+id+':not(input)').text(s); $('#'+id+':input').val(s); }; So that whenever you set an element you can call:

[jQuery] Re: jQuery Cycle + Lightbox = Error!

2008-02-18 Thread Mike Alsup
If you remove Cycle completely from that page you will see that you still have the error. So I would suggest attacking the problem from the Lightbox side of things. Mike On Feb 18, 2008 5:57 PM, simond [EMAIL PROTECTED] wrote: Bump - anyone? I'm pulling my hair out over here.. -- View

[jQuery] Re: I can't seem to break out of this frame.

2008-02-18 Thread Hamish Campbell
What if you name the top frame 'topFrame' and make the link into target='topFrame'? Or, better yet, ditch frames altogether :P :P :P On Feb 19, 1:16 pm, Justin [EMAIL PROTECTED] wrote: Here's the page http://guestbook.spinskins.net It's just a guest book/comment section of my site. If you

[jQuery] jQuery Cycle + Lightbox = Error!

2008-02-18 Thread simond
Hi guys, IE throws up an error when I add this Lightbox script to my page with a jQuery Cycle script. Both scripts use the jQuery 1.2.1 framework and work fine on Firefox and Opera. jQuery Cycle (works fine): http://www.elysiumdesign.net.au/lightboxprob/fadertest.html jQuery Cycle + Lightbox

[jQuery] Re: jQuery Cycle + Lightbox = Error!

2008-02-18 Thread simond
Bump - anyone? I'm pulling my hair out over here.. -- View this message in context: http://www.nabble.com/jQuery-Cycle-%2B-Lightbox-%3D-Error%21-tp15453257s27240p15550284.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] digits: false;

2008-02-18 Thread TheChrisPratt
It appears that the digits validator doesn't check it's value. I have a situation where, depending on the value of one field, a second field may or may not be required to contain only digits. The only way I can see to achieve this within the framework would be: $(document).ready(function() {

[jQuery] Re: drag element w/o interface library

2008-02-18 Thread Richard D. Worth
e.preventDefault() in your mousedown. - Richard On Feb 18, 2008 6:28 AM, jquertil [EMAIL PROTECTED] wrote: Hello, I'm trying to drag an element without the use of any plugin or library. The code below works - except when I invoke the mousedown on an image element. In that case, the

[jQuery] Re: Can JQuery support iCab 3 (for legacy Mac OS9)

2008-02-18 Thread Charles Stuart
Since this page (http://docs.jquery.com/Browser_Compatibility) and your post do not agree, could you clarify if Firefox 1.5+ on Mac OS X is supported? best, Charles On Jan 8, 7:06 am, John Resig [EMAIL PROTECTED] wrote: Nope, definitely not. We already don't support anything less than