I don't know about if there is a plugin that does exactly the same
thing, but if you're familiar with jquery this can be a good starting
point: http://www.google.com/search?q=jquery+tree
Choose a plugin and try to bind extra click events that would do what you need.
Read jQuery HowTo Resour
Put this code before your tableSorter code (if you are not loading
your data using ajax call)!
If you are loading table data through ajax then put it in an ajax
callback function: docs.jquery.com/Ajax
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Tue, Jan 20, 2009 at
You can also try this:
$('#testlink')[0].getAttribute('href');
Returns whatever is in your href...
Read jQuery HowTo Resource - http://jquery-howto.blogspot.com
On Mon, Jan 26, 2009 at 7:14 AM, Jumpfroggy wrote:
>
> Here's the short version:
> I have a link:
>page.html
>
> But wh
That won't work, [0] will give you the DOM element.
$('#testlink').attr('href')
jQuery will take care of getting the actual attribute value only.
On Jan 26, 12:57 am, brian wrote:
> $('#testlink')[0].attr('href')
>
> On Sun, Jan 25, 2009 at 9:14 PM, Jumpfroggy wrote:
>
> > Here's the short ve
http://sitebuilder.websitewelcome.com/Wizard/Pages
http://sitebuilder.websitewelcome.com/Wizard/Pages
Hello everyone,
Please go to that link and click on "Pages"
They are using prototype on that site, but I rather use Jquery.
When you check a page checkbox, you are able to send it to the right
Thanks! That is exactly what I needed. I didn't think about the fact
that the event target would give me the specific element even if the
listener was higher up the propagation chain.
On Jan 25, 6:48 pm, Ricardo Tomasi wrote:
> Use event delegation, will give you better performance:
>
> $(docume
OK, I now see the console message where jQuery refuses to set the
unsafe header, so it looks like this behavior is expected. I am having
trouble finding a good explanation of what is unsafe about it though.
Is it that this header is unsafe when used in combination with some
other header value (say
$('#testlink')[0].attr('href')
On Sun, Jan 25, 2009 at 9:14 PM, Jumpfroggy wrote:
>
> Here's the short version:
> I have a link:
>page.html
>
> But when I do this:
>alert($('#testlink')[0].href);
>
> I get this:
>http://localhost/page.html
>
> How do I get the *actual* HREF of the li
I'm sure a lot smarter folks than me will have an easy answer for you,
but:
If you're having this problem in IE, I seem to recall that you have to
give the div some kind of height in the starting CSS or it won't
recalculate properly with changes. Hopefully that would be as easy as
specifying heigh
Here's the short version:
I have a link:
page.html
But when I do this:
alert($('#testlink')[0].href);
I get this:
http://localhost/page.html
How do I get the *actual* HREF of the link ("page.html"), and not the
mangled version?
Thanks!
--
The long version:
I have a few l
I'm trying to make an Ajax request, specifically requesting a non-
gzipped response. Here's how I am going about it:
$.ajax({
url : 'http://my.valid.url/',
method : 'get',
beforeSend : function (xhr) {
xhr.setRequestHeader('Accept-Encoding', 'identity');
Hi Ram,
I'm not sure what you mean. In any case, to give a little bit of
background to my question. I'm using jQuery with a custom creation
form in drupal and conditional fields. Fields that are hidden in the
first place all appear - independently from what radio button has been
selected - if you
hi,
i'm using JQuery to add a Class when a row is hovered over - i have it
working, however, each row of data has 2 rows in the table - I want to
have both rows change background color whenever i hover over either of
them. The table already has 'stripes' for alternating records and
readability.
Exactly. $("div.image")[4] gives the raw dom element from the jQuery
collection, and not a jQuery "wrapped" element like the OP was expecting
(thus the .show() function isn't available).
Re-wrapping the element like so: $($("div.image")[4]).show() would work. Of
course you'd be better off using
Something along the lines of
$('#first').click(function(){
$(this).after( $(this).clone(true) );
});
?
On Jan 25, 10:43 am, sem101 wrote:
> This sentence totally freaks me out...
>
> "Create a button that's able to clone itself - and have the clones
> themselves be clonable."
Use event delegation, will give you better performance:
$(document).mouseup(function(e){
if (conditionsMet)
$(e.target).trigger('customevent', [customdata]);
});
If you want to stick with binding all elements, try:
$("*").mouseup(function(e) {
if (conditionsMet)
$(this).trigger('
A JSON object can only contain either other objects, arrays, numbers
or strings. In your case the #test is just a text string, not an
element. So yes, you need to append it to the document so that it's
parsed and becomes part of the DOM tree. But you can also create the
element without appending i
> Hello,
>
> I'm trying to write a script to move a element from one unordered
> list to another after it fades. Here is my code, I can get it to fade
> but not move. If I remove the fade I can get it to move correctly.
> Thanks for the help.
>
> $(document).ready(function(){
> $(".color"
Hello,
I'm trying to write a script to move a element from one unordered
list to another after it fades. Here is my code, I can get it to fade
but not move. If I remove the fade I can get it to move correctly.
Thanks for the help.
$(document).ready(function(){
$(".color").click(function
On Jan 25, 2009, at 6:50 AM, will wrote:
Hi,
I've got a bunch of thumbnails, each with a category and a client name
as a class. For example:
Thumbnail
Thumbnail
Thumbnail
Thumbnail
I need to create a way of filtering those thumbnails using a class.
For example, I click on the button to
jQuery 1.3 finally got rid of the '@' in selectors. Just use 'img[src
$=.png]'
On Jan 25, 8:04 am, mcologne wrote:
> hi,
>
> there comes an error with the following selector... i'm using
> jquery.ifixpng2.js or (jquery.ifixpng.js) and jquery-1.3.1.min.js
>
> $('i...@src$=.png]').ifixpng();
>
> E
Hi,
please check out
http://www.mirox-media.com/blog_add/media/data/film_festivals.html
When loading it the first time into safari, the "next" button and the
dot array at the top are disabled.
It works only if you click on the refresh button in safari a couple of
times.
Can anyone help??
thank
Hello,
please check out
http://www.mirox-media.com/blog_add/media/data/film_festivals.html.
It works fine in Firefox 3.0 (on Mac), but it has some very weird
problems in Safari.
The first time you load it in safari, the next button is disabled.
Then, only if you click on the "refresh" button in
Hi there.
I found out (and probably you all did) that sometimes jquery slideUp,
slideDown and slideToggle functions may be a bit choppy.
I think it's something about the padding and heights that causes the
problem, but if anyone knows how to fix this problem i would be
grateful to hear it.
Than
"But this does NOT
$("div.image")[4]."
Because that is not a jQuery object
On Jan 25, 4:52 pm, donb wrote:
> Try
>
> $("div.image").eq(4).show()
>
> I would only be guessing, but $("div.image")[4] must gets you
> something that's not an object possessing a show() method.
>
> On Jan 25, 4:
Try
$("div.image").eq(4).show()
I would only be guessing, but $("div.image")[4] must gets you
something that's not an object possessing a show() method.
On Jan 25, 4:41 pm, bartee wrote:
> bump..
>
> Anyone have any ideas why this does not work..
>
> On Jan 25, 11:01 am, bartee wrote:
bump..
Anyone have any ideas why this does not work..
On Jan 25, 11:01 am, bartee wrote:
> This works...
>
> $("div.image").slice(4,5).show()
>
> But this does NOT
>
> $("div.image")[4].show()
>
> Seems like the [4] should work !!
Thanks Jörn,
but is there a way to change param dynamically during JS runtime?
As example in your custom-methods-demo.html I'd like 11 to be a
function of value ...
math: {equal: 11}
In my barcoding example, I'd like not only tell user that barcode
number is wrong, but also what the check digit
"how can i talk to an html object $('#test') that is in the JSON
Object. "
That doesn't make any sense $("#test") will be a DOM object, not
a "JSON Object"
On Jan 25, 2:35 pm, Trend-King wrote:
> hello, i have another question about JSON i received the JSON Objekts
> well, so my question
i have the iframe hardcoded in the html. if you are adding it to the
dom with js, it won't get the load event binding. you might try
livequery or something like it.
On Jan 25, 10:21 am, "laredotorn...@zipmail.com"
wrote:
> Hi dbzz,
>
> I tried the code you provided, but went from this ...
>
> ht
I am trying to define a custom event that may or may not fire after a
given mouseup event. I want it to be bindable to any element but now
this is causing problems with jQuery 1.3 custom event propagation. My
current implementation is something like this:
jQuery(function() {
jQuery("*").mouseup
It's success not succcess.
--
Ariel Flesler
http://flesler.blogspot.com
On Jan 25, 2:36 pm, Olivier wrote:
> I try to use jQuery.ajax with dataType : 'json' :
>
> jQuery.ajax({
> url : "poll.json",
> dataType : 'json',
> cache : false,
> succcess : function(jsonObj, textStatus){
>
http://demos.flesler.com/jquery/scrollTo/
On Jan 25, 7:28 pm, "biofob...@gmail.com" wrote:
> I'm new to jQuery so I have a noob question.
> What´s the plugin to do the horizontal scroll similar to this site?
>
> http://lukelarsen.com/
>
> I search for accordion on the official site but I can´t f
Thank you, that worked like a charm.
On Jan 25, 2:22 pm, Jörn Zaefferer
wrote:
> Try to move the code in your own submit handler to the submitHandler-callback:
>
> $(document).ready(function() {
> $.validator.addMethod("phone", function(ph, element) {
> if (ph == null) {
>
Ack! Sorry, Greg. After replying to you I checked the jquery-dev
moderation queue and, lo and behold, you had already posted there.
I've promoted you to member of the jquery-dev list, so your emails
shouldn't get stuck in moderation from here on out.
cheers,
--Karl
On Jan 25, 2009, at 2:3
Hi Greg,
Since this sounds like it could be a bug in the jQuery source code,
not just in the FAQs, would you mind posting what you've discovered to
the jquery-dev list (http://groups.google.com/group/jquery-dev)? It'll
probably get more attention there, and someone may suggest that you
fi
hello, i have another question about JSON i received the JSON Objekts
well, so my question is i receive an object like this data.items this
has html in it.
how can i talk to an html object $('#test') that is in the JSON
Object.
do i have to inject the html first by $('#putitthere').html
(data.it
Try to move the code in your own submit handler to the submitHandler-callback:
$(document).ready(function() {
$.validator.addMethod("phone", function(ph, element) {
if (ph == null) {
return false;
}
var stripped = ph.replace(/[\s()+-]|ext\.?/gi, "");
//
I'm new to jQuery so I have a noob question.
What´s the plugin to do the horizontal scroll similar to this site?
http://lukelarsen.com/
I search for accordion on the official site but I can´t find anything.
Sorry for the noob question
Thanks in advance
Hi dbzz,
I tried the code you provided, but went from this ...
http://screencast.com/t/W8lOtgKO
to the iframe disappearing entirely ...
http://screencast.com/t/jCTjOLhpeX
I put your code in a $(document).ready() block (below). Are there any
other modifications I should make to get it to disp
Mike
Perfect advice. You're awsome. Works now. Thank you.
acuitas
On Jan 25, 12:55 pm, Mike Alsup wrote:
> > Can someone help? I have two problems. Both I think are tiny.
>
> > First problem: I'm almost done successfully installing the Cycle
> > plugin.
> > If you use FireFox to go here:
>
> >
> Can someone help? I have two problems. Both I think are tiny.
>
> First problem: I'm almost done successfully installing the Cycle
> plugin.
> If you use FireFox to go here:
>
> http://acuitas.com/index.php
>
> then click on the Refresh button, you'll see it works great.
> Please tell me why I n
Hello
Can someone help? I have two problems. Both I think are tiny.
First problem: I'm almost done successfully installing the Cycle
plugin.
If you use FireFox to go here:
http://acuitas.com/index.php
then click on the Refresh button, you'll see it works great.
Please tell me why I need the re
Hello, I am using a few plugins together for AJAX forms and
validation. I have validation on the name and phone fields. If you add
a class of required to the fields, the validation plugin will
automatically validate them. If you want to do more advanced
validation you have to tell it so.
I have t
> I am using cycle to display ads and messages on my website. Some of
> the "slides" contain text with imbedded URL links and others are just
> linked images.
>
> However, when you click on the link it just continues to the next
> slide. Is there a way to have the Cycle script allow embedded links
This sentence totally freaks me out...
"Create a button that's able to clone itself - and have the clones
themselves be clonable."
I have a div wich is showed when the user clicks a button.
The div have a forma with a textarea when tiny_mce is.
But when the form is showed, I cannot write to the textarea and
firefox throws me "t.win.document is null".
In IE works well.
What can I do, I have already tried to do this (http://
hi all,
I am using jQuery.autocomplete package to write a jsp. When I
finished the input box by "autocomplete",The focus point can't be
released. Then I can't continue to use another js plugin.
my codes r follows:
function getTermno(){
var orgId = document.getElementById("org
I try to use jQuery.ajax with dataType : 'json' :
jQuery.ajax({
url : "poll.json",
dataType : 'json',
cache : false,
succcess : function(jsonObj, textStatus){
},
error : function(XMLHttpRequest, textStatus, errorThrown){
.
},
async : false
});
it seems not runn
I am using cycle to display ads and messages on my website. Some of
the "slides" contain text with imbedded URL links and others are just
linked images.
However, when you click on the link it just continues to the next
slide. Is there a way to have the Cycle script allow embedded links
instead of
I am using cycle to display ads and messages on my website. Some of
the "slides" contain text with imbedded URL links and others are just
linked images.
However, when you click on the link it just continues to the next
slide. Is there a way to have the Cycle script allow embedded links
instead of
Hi,
is there a possibility to really name the panels somehow?
I would like to have links like this:
with the anchor inside the associated div.
to get the side easier to search for searchengines.
hi,
there comes an error with the following selector... i'm using
jquery.ifixpng2.js or (jquery.ifixpng.js) and jquery-1.3.1.min.js
$('i...@src$=.png]').ifixpng();
Exception... "'Syntax error, unrecognized expression: [...@src$=.png]'
when calling method: [nsIDOMEventListener::handleEvent...
w
Hi,
I've got a bunch of thumbnails, each with a category and a client name
as a class. For example:
Thumbnail
Thumbnail
Thumbnail
Thumbnail
I need to create a way of filtering those thumbnails using a class.
For example, I click on the button to show all thumbnails by client2
and hide
I am using cycle to display ads and messages on my website. Some of
the "slides" contain text with imbedded URL links and others are just
linked images.
However, when you click on the link it just continues to the next
slide. Is there a way to have the Cycle script allow embedded links
instead of
Thanks for all the responses, much much appreciated.
Funny you mentioned that method Ramanathan, as it's the one I've ended
up using!
Cheers,
osu
On Jan 24, 11:07 pm, Ramanathan RV wrote:
> Hi,
>
> Checkout the non-intrusive labelover
> plugin.http://remysharp.com/2007/03/19/a-few-more-jquer
jBind is jQuery plugin for binding any complex data to templates in an
easy way. By using $(template).bindTo(data) you can bind your data to
the template.
This version 1.5.0 allows you to define your own function and apply it
during binding.So you can treat a special item in your aggregate
object
Labelify is pretty good also.
http://www.kryogenix.org/code/browser/labelify/
On Jan 24, 11:55 am, osu wrote:
> Hi,
>
> Apologies for this noob question, but I really need help and I have
> tried numerous techniques to get this right.
>
> A client has asked me to create an accessible form that
let me change that - i actually went and looked at the place i had
this working and it goes like this -
$('#fileTreeIframe').load( function() {
var $ifbody = $(this).contents().find( 'body' );
$ifbody.css( 'height','auto' );
$(this).height(
Hi,
I am using jquery.swapimage.min.js: http://www.morvimmer.com/wp/
for one image ("Blog" on the top main menu). When I click on it, I
have a blue border, and when hover, I have a red border, both in
FireFox mac and PC, Opera and Safari. In my CSS I have removed all
appearance for such behavior.
hi there i read about the live() function and fount that
Currently not supported: blur, focus, mouseenter, mouseleave, change,
submit
will in future versions of jquery this be included?
Greet Jens
This works...
$("div.image").slice(4,5).show()
But this does NOT
$("div.image")[4].show()
Seems like the [4] should work !!
Ex:
- you have two selects, #1 and #2
- #2 options change according to #1
- selecting a value in #2 shows/hides different fields of a form
- you choose an option on #1 and then update options in #2 via ajax,
the change event will not be fired
- then you trigger('change') to show/hide the proper fo
see if this works. chances are that the iframe content hasn't loaded
yet when onready runs, so bind the height change to the iframe load
callback.
var $ifbody = $('#fileTreeIframe').contents().find( 'body' );
$ifbody.bind( 'load', function() {
$('#fileTreeIframe').
Karl,
My solution appears to be along the line of:
var elem = getdocument...
$(elem).children() ...
I hadn't realized that I can pass a DOM element as a selector.
Thanks,
Chris
Hello all,
I created a Kwicks style nav and I am trying to make each of the buttons
fade in a certain area of content.
Each of the buttons fades in their areas correctly, but after I hit one
button, it won't do anything when I hit another button after that. I'm
pretty sure it has something to d
You can use $.format to create dynamic messages, but that works only
when the dynamic part is specified as a parameter.
$.validator.addMethod("dynamic_check", function(value, element, param) {
if(incorrect(value, param)){
return false;}
}, $.format('dynamic message goes here with pa
It looks like you got an old version of the plugin. Try the latest
release, it has built-in support for repositioning the tooltip at the
viewport border:
http://bassistance.de/jquery-plugins/jquery-plugin-tooltip/
Jörn
On Sat, Jan 24, 2009 at 11:26 PM, CNN_news wrote:
>
> Hello,
>
> I have a th
> it's firing the function that has just been bound to the
> change event, to start things up.
You mean, it's running the function right before it that I set up to run
on the change of the select value?
If so, what would be a scenario where I'd want to start the function
using 'trigger' without
Yes, it does. Many thanks!
On Jan 25, 4:55 am, Joel Birch wrote:
> Hi Bob,
>
> To add two multiple classes to one element, you put them both within
> the one class attribute and separate them with a space, like so:
>
> ...
>
> Hope this clears it up for you.
>
> Joel Birch.
Wo.. awesome !! Thanks a ton !!
On Jan 25, 11:38 am, Ricardo Tomasi wrote:
> Use setInterval instead:
>
> $(document).ready(function(){
> var words = ['one', 'two', 'three', 'four', 'five'],
> tweet = $('#tweet'), i = -1;
> var slideshow = setInterval(function(){
> var
How to encode special caracters when requesting a **HTML
fragments** using the jQuery AJAX method load() ?
There are tons of discussions on this subject but I didn't realize the
right
(best) way to go. Or how many ways ("bullet proof") are there?
Please have a look at a test case:
http://www.
It's is a bug.
I copy&paste you code, and I see an alert "123".
You can simple try it, buy paste this code in FireBug console in any
website that support jQuery (like jQuery.com)
On Jan 23, 5:14 pm, nk wrote:
> Hi Ami,
>
> Thanks for your response.
> I am still not getting the value.
>
> Plea
Thank you
On Jan 23, 6:08 pm, Ricardo Tomasi wrote:
> Live uses event delegation. It will capture events on the 'document'
> element and then find out which element was clicked, if it matches
> 'span[attr=value]' then your function is called.
>
> Read all about it at the docs:http://docs.jquery.
haven't tested it, bu I guess the "this" variable is the problem in
your callback
$("#date_"+$(this).attr("id")).html("Done!");
try:
var el = $(this);
$.post("includes/updateleverans.php",{id:el.attr("id"), date:date},
function (data) {
$("#date_"+el.attr("id")).html("Done!");
}
Hi Bob,
To add two multiple classes to one element, you put them both within
the one class attribute and separate them with a space, like so:
...
Hope this clears it up for you.
Joel Birch.
76 matches
Mail list logo