The same to you Feijo!! :D
Feijó wrote:
and great 2008 to ya'll !!
huge hug
baita abraço
Feijó
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
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
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
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
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
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
$('#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
$('#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
and great 2008 to ya'll !!
huge hug
baita abraço
Feijó
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
-
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
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
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
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
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
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
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
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
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
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());
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:
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
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
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,
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
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
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
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
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
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
}
$('#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...
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
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
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
(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
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
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
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
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.
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
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
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 :)
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
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
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
>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
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
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
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
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
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 :
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
53 matches
Mail list logo