[jQuery] Re: mery christmas!

2007-12-24 Thread Rey Bango
The same to you Feijo!! :D Feijó wrote: and great 2008 to ya'll !! huge hug baita abraço Feijó

[jQuery] Re: (this).next problem

2007-12-24 Thread [EMAIL PROTECTED]
You'll need to do something along the lines of: $('a.collapse_device').click(function() { $(this). // this gets the a.collapse_device itself parent(). // this gets the span parent(). // this gets the li parent(). // this gets the ul parent(). // this gets the div.device_header

[jQuery] Re: Problems with clueTip

2007-12-24 Thread KnoxBaby
Hello, thanks for your help again. Thanks, I want to say that I didn't upload the new "version" because it worked everything ... Second, I want to ask you if you can add the possibility to split the local content too if spitTitle is set because than I would not have a redundant data as title aga

[jQuery] Re: Select elements in order

2007-12-24 Thread McLars
You should be able the use $(":header") selector to select all of the headers simultaneously. I imagine they'd be stored in the document order, but I haven't tried it. Larry On Dec 24, 9:23 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I want to select some items on my page in the order

[jQuery] local ajax development?

2007-12-24 Thread [EMAIL PROTECTED]
I am trying to pull in some data, but I can't get it to work when I develop locally. I keep getting the following error:[Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING

[jQuery] Using JSONP...I'm clueless.

2007-12-24 Thread Ryura
Basically, I'm trying to pull data from a database on a different server. On the site without the database (we'll say http://thisdomain.com/index.html), I have var gomon = new Array(); gomon[0] = "Test"; gomon[1] = "Testx"; gomon[2] = "Test3"; $.ajax({ type: "GET", url: "http://somedomain.ne

[jQuery] Re: Beginner help with highlight effect

2007-12-24 Thread Glen Lipka
Check out this page in the docs. http://docs.jquery.com/Effects/animate I am in the airport in Phoenix on public wifi, so I cant make a demo right this sec. But that page should help. Glen On Dec 24, 2007 8:35 AM, rics <[EMAIL PROTECTED]> wrote: > > Hello, > > I'm a PHP developer, but all this

[jQuery] Re: check if an id exists

2007-12-24 Thread Michael Geary
$('#id').size !== 0 would not work. I'll bet that your actual code has .size() instead of .size without the parentheses, right? The size property is a method, so the !== 0 test would always return true (since a function reference is never equal to 0). .length is slightly more efficient than .size

[jQuery] Re: check if an id exists

2007-12-24 Thread Michael Geary
$('#id').length may not be a boolean value, but $('#id').length>0 is. However, in the contexts where you're likely to use this, it doesn't matter: if( $('#id').length ) ... or: $('#id').length ? ... : ... In either of those cases, the length property works fine for the test, regardless of whe

[jQuery] mery christmas!

2007-12-24 Thread Feijó
and great 2008 to ya'll !! huge hug baita abraço Feijó

[jQuery] Re: (this).next problem

2007-12-24 Thread Karl Swedberg
Hi Jody, The .next() method only works for *sibling* elements. Let's take a look at your HTML again, but with another element added and with some indentation: Device Name -

[jQuery] Re: (this).next problem

2007-12-24 Thread Erik Beeson
Siblings are tags who have the same parent. For example: . bar and far are siblings, foo and wax are siblings, far and wax aren't siblings. Maybe try this: $('.collapse_device').click(function() { $(this).parents('.device_header').next().hide(); }); That will walk up the hierarchy to

[jQuery] Re: Select elements in order

2007-12-24 Thread Erik Beeson
See my responses regarding this issue in this thread: http://groups.google.com/group/jquery-en/browse_thread/thread/c21d5c20bfd25f6c/f42894299920f05d?lnk=gst --Erik On 12/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > I want to select some items on my page in the order they appear, b

[jQuery] Thickbox Fixed Position?

2007-12-24 Thread blemming
Is it possible to fix the position of the thickbox? I have a client that wants the thickbox exactly 115px off the top regardless of the scrollbar position. I tried to adjust the following css but I had different results depending on the size of the thickbox. The problem is that we have 3 differen

[jQuery] (this).next problem

2007-12-24 Thread jody
hi all, I'm new to the list and new to jQuery, so I hope you can bear with me. I'm having a problem getting a specific div to hide without hiding similarly classed divs. The HTML looks something like this: Device Name - ---Device Information--- The jQuery I'd like to use looks like this

[jQuery] Re: Access denied to jQuery library

2007-12-24 Thread cFreed
Solved but remains puzzling. It was with Vista, where the jQuery.js file was seen as missing proprietary rights. Copyied into another folder, it became accessible. Then deleting the original file and moving the copy to the original folder made it to work. Don't understand why this was possible: w

[jQuery] Select elements in order

2007-12-24 Thread [EMAIL PROTECTED]
I want to select some items on my page in the order they appear, but it seems that jQuery selects them in the order that my selectors are written instead. So: $('h1,h2,h3') gets me all the h1s, then all the h2s, then all the h3s. Is there a way to get them in the order they appear in my document

[jQuery] Re: MSIE 7.0 and slide() function...

2007-12-24 Thread Adam Greene
Hi Andrea, I found that IE is really susceptible to displaying odd behavior based off of the css properties of the element you are toggling. I don't have a sure-fire solution, but there are a few things you can try: 1) make sure the element you are toggling has no other css properties 2) make sur

[jQuery] Beginner help with highlight effect

2007-12-24 Thread rics
Hello, I'm a PHP developer, but all this javascript thing is new to me. It's the first time I try to do something with javascript and I'm using JQuery to help me do things fast (and best). I wish to make some highlight effect, but can't figure it out by myself. Can you help me? I wish to click

[jQuery] Re: unbind keypress for input boxes

2007-12-24 Thread Jeroen
On Dec 24, 2007 6:49 PM, Michael Geary <[EMAIL PROTECTED]> wrote: > > How does "the user is filling in a form" equate to "the mouse is over an > input element"? Those seem like two quite different and unrelated things. > > I've watched a lot of people fill in forms, and quite often they will click

[jQuery] Need to make a class or plugin...

2007-12-24 Thread Alexey Blinov
Hi! I have this code in my 'Learn jQuery' project... $(document).ready(function() { //try idle events var _events = [[window, 'scroll'], [window, 'resize'], [document, 'mousemove'], [document, 'keydown']]; jQuery.each(_events, function(i, e) { // console.log(e.toString());

[jQuery] Re: check if an id exists

2007-12-24 Thread McLars
Well, just to split hairs, the length property returns a number, not a true boolean. You could also use: $('*').is('#myId') or you can reverse it like so: $ ('#myId').is('*') The .is() method does return a boolean. An advantage is that you can apply this to a subset of elements, for example:

[jQuery] Re: check if an id exists

2007-12-24 Thread Alexey Blinov
Personally I do it with `$('#id').size !== 0` but length is goood to i think :) On Dec 24, 2007 5:55 PM, Cloudream <[EMAIL PROTECTED]> wrote: > > $('#id').length>0 ? > > On Dec 24, 10:11pm, debussy007 <[EMAIL PROTECTED]> wrote: > > Hi, > > > > what is the best way in jquery to check wether an id

[jQuery] Re: FlyDOM + New Input Field != New Field being Submitted

2007-12-24 Thread hj
On Dec 21, 3:15 pm, Bitruder <[EMAIL PROTECTED]> wrote: > I'm using jQuery + FlyDOM to add new elements dynamically after page > load to the DOM tree. I'm adding new input fields this way. They are > clearly within tags (added as children to a within > the ). However, when I submit the form, on

[jQuery] Re: Problems with clueTip

2007-12-24 Thread Karl Swedberg
Okay, after investigating a bit more, I discovered that there is an error in the Metadata plugin that you're using. On line 95 the left curly bracket is not escaped in the regexp: if ( !/^{/.test( data ) ) it should be this: if ( !/^\{/.test( data ) ) Actually,

[jQuery] Re: unbind keypress for input boxes

2007-12-24 Thread Michael Geary
How does "the user is filling in a form" equate to "the mouse is over an input element"? Those seem like two quite different and unrelated things. I've watched a lot of people fill in forms, and quite often they will click in an input element and then move the mouse out of the way so they can see

[jQuery] Re: check if an id exists

2007-12-24 Thread Michael Geary
That won't work because $() *always* returns a valid jQuery object even if there are no matching elements. This allows you to write code like $('.foo').hide() without worrying about whether there are any elements with class="foo" or not. Instead (as pointed out elsewhere in the thread), check the

[jQuery] Re: Problem with toggle

2007-12-24 Thread Karl Swedberg
But i am not getting the desired functionality of toggling. Please help Like Josh, I can't help much without seeing html, but I would suggest using .show() and .hide() rather than .css('display',...). FF uses (the more appropriate) display: table-row for elements, so setting to display

[jQuery] Re: Problem with toggle

2007-12-24 Thread Josh Nathanson
Try changing this: $($trId).css("display",""); To this: $($trId).css("display","block"); Don't know if that's the whole problem, kinda hard to tell without seeing the html, but it's a start. -- Josh - Original Message - From: "JQueryProgrammer" <[EMAIL PROTECTED]> To: "jQuery (Eng

[jQuery] Re: Problems with clueTip

2007-12-24 Thread Karl Swedberg
Ok I got it to work with verion 1.0: http://jqueryjs.googlecode.com/svn/tags/plugins/metadata/1.0/jquery.metadata.pack.js I just looked at your test page, and the tips are still showing [object object]. Did you change it back? Until this bug is fixed, you might want to just change lines

[jQuery] unbind keypress for input boxes

2007-12-24 Thread Jeroen
Hi, I have a few keys bound to a function, but I want it to be temporary disabled when a user is filling in a form. I thought this would do it: $('input').hover( function() { $('input').unbind("keypress"); }, function() { // Rebind stuff }

[jQuery] Re: check if an id exists

2007-12-24 Thread Cloudream
$('#id').length>0 ? On Dec 24, 10:11 pm, debussy007 <[EMAIL PROTECTED]> wrote: > Hi, > > what is the best way in jquery to check wether an id exists ? > > Thank you for any kind help !! > -- > View this message in > context:http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488007...

[jQuery] Problem with toggle

2007-12-24 Thread JQueryProgrammer
I am facing an issue with the toogle API. I have a tr with dynamic Id's as Id1, Id2 etc. Within that tr I have many td's in which one td has an image which needs to be toggled to plus image and minus image. That is when I click on the image, it should toggle between plus and minus images. Also

[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007
Thanks this works great !! Richard D. Worth-2 wrote: > > From: > > http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F > > if ( $('#theId').length ) { > // exists > } else { > // doesn't exist > } > > - Richard > > On Dec 24, 2007 9:11 AM, debus

[jQuery] Re: check if an id exists

2007-12-24 Thread Richard D. Worth
From: http://docs.jquery.com/Frequently_Asked_Questions#How_do_I_test_whether_an_element_exists.3F if ( $('#theId').length ) { // exists } else { // doesn't exist } - Richard On Dec 24, 2007 9:11 AM, debussy007 <[EMAIL PROTECTED]> wrote: > > > Hi, > > what is the best way in jquery to chec

[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007
(the error is "elem has no properties" in the jquery js) debussy007 wrote: > > I tried : > if( ! $('#tooltip') ) { > ... > } > > it gives me a javascript error if I add this :( > > > > > > Eridius wrote: >> >> not sure, this is untested but might work(not sure what jQuery return if >> n

[jQuery] Re: check if an id exists

2007-12-24 Thread debussy007
I tried : if( ! $('#tooltip') ) { ... } it gives me a javascript error if I add this :( Eridius wrote: > > not sure, this is untested but might work(not sure what jQuery return if > nothing is found) > > if($('#id')) > { > //it exists > } > else > { > //it does not > } > > debuss

[jQuery] Re: check if an id exists

2007-12-24 Thread Eridius
not sure, this is untested but might work(not sure what jQuery return if nothing is found) if($('#id')) { //it exists } else { //it does not } debussy007 wrote: > > Hi, > > what is the best way in jquery to check wether an id exists ? > > Thank you for any kind help !! > -- View t

[jQuery] Re: Filter out innerhtml of div #id

2007-12-24 Thread Flesler
try removing the get(0) Ariel Flesler On Dec 24, 6:21 am, KnoxBaby <[EMAIL PROTECTED]> wrote: > ahh, this would be a nice idea, than it would work like the code is on > the page itself :) I try this, thanks :) > > On Dec 24, 1:21 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > > > > > Are you tryi

[jQuery] check if an id exists

2007-12-24 Thread debussy007
Hi, what is the best way in jquery to check wether an id exists ? Thank you for any kind help !! -- View this message in context: http://www.nabble.com/check-if-an-id-exists-tp14488007s27240p14488007.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.

[jQuery] Re: Problems with clueTip

2007-12-24 Thread KnoxBaby
OK I tried it, and it works without the metadata ... But I need a working version of metadata for tablesorter plugin ... What to do now?? Further: How to split the content of the local div (like the title attribute) so that I can have a local content: "title|content" and it's splitted for the to

[jQuery] Access denied to jQuery library

2007-12-24 Thread cFreed
Having installed jQuery on my main development machine, it works fine. But from another machine, through the network, if I call a .htm page which uses jQuery, I get a "403 Forbidden" error, with "You don't have permission to access ...my path through network.../jQuery 1.2.1/ jquery.js". All the ot

[jQuery] Re: general unique id for new append element

2007-12-24 Thread Byron
you could use $.data() to get a unique id, something like: $.extend($.fn, { id : function () { return this.each(function () { $(this).attr("id", "jQuery_" + $.data(this)); }); } }); example usage : $('').id().appendTo('body'); result : hope this helps :)

[jQuery] Re: Problems with clueTip

2007-12-24 Thread KnoxBaby
WOW thanks, I try this ... the problem is: I need metadata plugin for the table sorter to work correctly :( Do you think there's a nother version of metadata, that would work? jtip.js can be removed as it is only necesary on the login page! Thanks for your effort, I hope, that the problem with th

[jQuery] Re: general unique id for new append element

2007-12-24 Thread Karl Delandsheere
Bah... Test if there's something in a document.getElementById( your_id ). If there is, choose another id, if not, go on. No? On Dec 24, 12:18 am, Guy Fraser <[EMAIL PROTECTED]> wrote: > > On Dec 23, 5:09 am, dn2965 <[EMAIL PROTECTED]> wrote: > > >> hello everyone > >> i want to know a way to g

[jQuery] Re: Problems with clueTip

2007-12-24 Thread KnoxBaby
grml, I go crazy with IE :( I posted, that everything works fine except splitting ... that's not right. Without metadata plugin, it works from local content for IE and FF! Here I just need the option to split the content. With metadata 1.0, it works in FF, but not in IE (in IE, it doesn't show a

[jQuery] Re: Problems with clueTip

2007-12-24 Thread KnoxBaby
>This is because you need to attach the event handler to the abort link >after the clueTip is populated with the content. Actually, if you're >using local content and jQuery 1.2.x, it should work. Otherwise, >you're going to have to re-bind the click event to the link. Shawn >Grover wrote an exce

[jQuery] wymeditor in thickbox

2007-12-24 Thread Joe Shaw
I am having trouble getting the wymeditor to load in a form that is opened into a thickbox from a separate html file. The form html file by itself, with proper scripts for wymeditor loaded, works fine; in the thickbox it is a plain textarea. Is this even possible? Has anyone else tried it? Any

[jQuery] Re: Problems with clueTip

2007-12-24 Thread KnoxBaby
Ok I got it to work with verion 1.0: http://jqueryjs.googlecode.com/svn/tags/plugins/metadata/1.0/jquery.metadata.pack.js so now, I just need the opportunity to split the local content into title and content of the tooltip :) Further: I don't understand why the link is followed even though I cl

[jQuery] Re: Filter out innerhtml of div #id

2007-12-24 Thread KnoxBaby
ahh, this would be a nice idea, than it would work like the code is on the page itself :) I try this, thanks :) On Dec 24, 1:21 am, "Glen Lipka" <[EMAIL PROTECTED]> wrote: > Are you trying to get it while its in the variable? Maybe put the html into > a dom element first, like > > $("div#someHid

[jQuery] Re: general unique id for new append element

2007-12-24 Thread McLars
Just generate a random number with Javascript, and throw in a few characters for good measure. Like maybe the tagName followed by a four or five (you could go higher if you'er paranoid) digit random number. And/or you could use a time stamp of some sort. If you want to go the extra mile, you coul

[jQuery] Re: general unique id for new append element

2007-12-24 Thread Shawn
A quick Google search should give you a JS function that can return a GUID type string that can be used as an ID. Here's a snippet I modified for a custom object I needed once: //create a GUID type identifier. //NOTE: note truely unique, but duplicates are unlikely. // based on code found at :

[jQuery] a simple XML value change

2007-12-24 Thread pere roca
hi, I've seen in the forum many requests that take and show parameters coming from XML. But what about modifiying these values dynamically? I tried something like this: $("p").click(function(){ $.ajax({ ty