The two functions you have chained (empty, append) are both synchronous, so
the next line shouldn't execute until they are done. You say it sometimes
works, sometime not. When it doesn't work, is .message .content empty? or
does it have the old/not yet updated content?
- Richard
On Dec 14, 2007 2
Glen,
This is cool. I like it :)
My first thought is to have your drop handler move the draggable element to
a child container of the droppable, below the text. Then you just count the
elements in that container, and it gets removed if it goes to another one,
or back to the center/nowhere. The ot
I might be a little dense here, but when using Jorn's autocomplete
plugin
(http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/), I
don't see any way to determine/intercept when the hints div has been
displayed. What I'm after is to make the results have alternating row
colors.
I ran into a CSS issue with jQuery effects - some of the animations
add the overflow property for the duration of the effect. In FF2 - but
not IE7 - the overflow property changes the box model behavior. As far
as I can tell, the box model change caused by the overflow property is
part of the CSS2
Antonio, try something like this:
$('span.bt-more').bind('click', function(event){
var span = event.target || event.srcElement;
var $parent = $(span).parent();
$parent.after($parent.clone());
});
If my understanding of the 'this' keyword is correct, in your
anonymous clic
I have this followwing form:
I want whenever user clicks on Save Button, it will select the parent
element of button(in my case, it is FORM element),
then get the value of first input box in form!
I tried this but it's not working:
$(document).ready(function () {
$("inpu
Try $.extend:
http://docs.jquery.com/Utilities/jQuery.extend
- Richard
On Dec 14, 2007 4:41 PM, mundizzle <[EMAIL PROTECTED]> wrote:
>
> hey dudes and dudettes,
>
> below is some MooTools syntax for doing Class style JS (inheritance
> happens via the "Extends" property). my question: is there s
I think you want insertAfter(e), instead of after(e). Your after(e) call is
trying to move 'e' to be after its clone, which is disconnected from the
DOM, floating if you will. That's why you're getting 'this.parentNode has no
properties'
- Richard
On Dec 15, 2007 7:34 PM, Antonio Jozzolino <[EMAI
I had some more ideas for the plugin and so added them in just now. This is
rapidly turning from a single-purpose plugin (put "Add To" links on the
page) into something that may be of more general use and something that can
be more customized.
This version adds custom CSS Classes (so more than
> Event subscriber:
> $(subscriber_element).bind("myEvent", function() {
> alert("I received an event without subscribing!");
> });
>
> Event generator:
>
> $(*).trigger("myEvent");
>
> I am concerned though about the performance of $(*).
Couldn't you just $(document).bind("myEvent", ...) for
'tis true.
not sure I like it so much... I am up for progress, but maybe I fear
for this site. the bbc is a special case IMHO. I'm of the opinion it
should stay very lightweight a la google / yahoo (pre 2000). I already
pay for the license fee... why should I pay for the increased
bandwidth by t
That method will move the element into this new div, which messes up the
DOM. The outerHtml method below clones the element first so the original
stays untouched.
JK
-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Flesler
Sent: Friday, December
Thanks, David, but it don't work too:
this.parentNode has no properties
e(div.add-more)jquery-1.2.1.pack... (line 11)
e()jquery-1.2.1.pack... (line 11)
e([div.add-more], function(), undefined)jquery-1.2.1.pack... (line 11)
e()jquery-1.2.1.pack... (line 11)
e([div.add-more], function(), undefined)
I'm working with jquery such that many DOM elements have an expando
object. These objects need to send events to each other. I would
like to use jquery custom events to make a very simple subscription
event model. Instead of calling the event generator object to
subscribe to an event, one would
Josh,
I just found this group so I thought I would post my problem here. I
have ClockPick working very well with Firefox. I tried this with IE7
and all I get is a Grey box at the bottom of the page. I created a
plain html page with only the js and css files needed to make
ClockPick work and go
This scrolls the tbody part of a table. To use it you have to set up
some CSS for the scroll bar and buttons and pass it the size of the
scrolled region. There is a simple example at
http://ajaxtop.sourceforge.net/tablescroller/example1.html.
Any feedback would be appreciated.
Could someone point me to a tutorial or sample where:
- an RSS feed, from the same domain, is displayed in HTML on a tab,
- upon clicking a tab label or
- when document ready?
Beautiful! That worked wonderfully. Thanks, Karl!
Nick
On Dec 15, 12:23 pm, Karl Swedberg <[EMAIL PROTECTED]> wrote:
> Hi Nick,
>
> You're close!
>
> The first thing you might want change is your selector. You can use
> the common CSS notation for selecting an ID.
> So, $("input[id='plan']")
Sorry, looks like some of my sample code didn't quite come through.
So basically I started just trying to create an image and not actually
insert it into the page, but just create it so the image would be downloaded
to cache.
So I tried this originally:
$(' ').attr('src','/images/blah.jpg');
This really depends on what server-side language you're using to process the
form and how it handles form input.
For example, in PHP you can use its array syntax to group multiple fields
into logical groups (or allow a single field to have multiple values). For
more info, check this FAQ entry in t
hello!
this is slightly off topic as it is more a javascript/html question than
just jquery, but it will be implemented in jquery so i thought you guys
could be bothered with this :)
in short: i have a form where i ask "how many weeks" via a text input, that
the user must reply with the relevant
hey Sharique,
joke apart, jquery is javascript: javascript is clientside, meaning it runs
in the browser visiting the website. Serverside languages are PHP, ASP, ruby
on rails etc... These "serve" the data to the visitor's browser software,
and that data can be html, xml, css or javascript and jqu
No, it is not possible.
Unfortunately, John Resig made a mistake while designing jQuery. He
assumed that the window object is always defined.
I don't think that was a mistake. I'm sure if John had intended for jQuery
to be used on the server, he would have designed it as such.
There are lot
On 12/15/07, Sharique <[EMAIL PROTECTED]> wrote:
>
> Is it possible to run excute jquery on server side.
No, it is not possible.
Unfortunately, John Resig made a mistake while designing jQuery. He
assumed that the window object is always defined. This is too bad
because we can't run it server sid
At least one error is here:
var e = $(this).parent()[0];
should be just
var e = $(this).parent();
You were converting the jQuery object to a DOM object then trying to
run jQuery methods on it.
David
On Dec 15, 2:04 am, Antonio Jozzolino <[EMAIL PROTECTED]>
wrote:
>
>
Just a follow-up on having to specify width and height of an image
for the dropShadow plug-in to work properly.
I figured out that I can use the cfimage (ColdFusion) tag to determine
the width and height of an image, then turn those into variables that
I can then use in the plug-in.
Works like a
Hi Nick,
You're close!
The first thing you might want change is your selector. You can use
the common CSS notation for selecting an ID.
So, $("input[id='plan']") can simply be $('#plan')
This will be more efficient, because jQuery will look for a single
element with an ID of "plan." Otherw
Is it possible to run excute jquery on server side.
--
Sharique
someFunction is not defined in global scope, so you need to define it:
//Define variable
var someFunction = {};
$(document).ready(function() {
//Assign a function to the variable
someFunction = function() {
// some function that does stuff
};
});
$(document).ready
I'm very interested in this post. I go trough the same kind of issue a
couple month ago and I never found the solution.
Thanx !
On Dec 14, 1:48 pm, Karl Delandsheere <[EMAIL PROTECTED]>
wrote:
> Hello everybody!
>
> I'm building an application quite similar to the Mac OSX Finder with a
> massive
Hi, Liam, and thanks for the reply...
It turns out that the problem was with the case-sensitive
spelling of "dropShadow"... I had it as "dropshadow".
I also had left out the dimensions plug-in which was required.
And the final issue was, indeed, with the misspelling of "function".
The shadowDr
Empresas Coligadas ou Filiais
$('span.bt-more').bind('click', function(){
var e = $(this).parent()[0];
e.parent().clone().after(e);
});
Where is the error?
Thanks.
Anton
Eh nevermind... i changed my layout to avoid the conflict.
On Dec 14, 5:09 pm, tracyfloyd <[EMAIL PROTECTED]> wrote:
> I'm trying to use M. Alsup's cycle plugin (awesome, btw) with a
> suckerfish menu. But I'm having trouble getting the menu to appear on
> top of the slideshow in Internet Explor
Hey all,
This is my first post to the community. I'm a total jQuery n00b, and I'm
struggling with conditional statements & jQuery. Here's what I'm trying to
do:
The page is a form that uses the same template for both add and edit modes.
On page load, jQuery should detect whether or not a choice
I'm having problems with positioning the thumb is going great, but
the loader & image aren't...
http://www.1norton.com/index.php?mact=News,cntnt01,detail,
0&cntnt01articleid=2&cntnt01dateformat=%25b
%20%25Y&cntnt01returnid=18">www.1norton.com/chuck
Any suggestions?
.andSelf returns the jQuery object (well, adds it to the selection and
returns the set). This would be great if there was a jQuery object to
string method of some sort.
My Googling around suggests what I'm looking for is called outerHTML,
which is supported by every major browser but Firefox. Wha
There's a typo in the spelling of "function", so maybe the error message
that you're getting is misleading ?
e.g. if "funtion" was a variable, you wouldn't have brackets after it -
you'd have a semicolon.
L
Rick Faircloth wrote:
Hi, all…
I’m getting this error message:
missing ; before
On Dec 15, 2007 5:32 AM, Mario Moura <[EMAIL PROTECTED]> wrote:
> Hi Richard
>
> Thanks a lot. I will start read John Resign Book and study a lot
> JavaScript.
It will be time well spent. Great language. Great book.
> Yes the solution is declarate the variable before but I would like this
> va
Hi Richard
Thanks a lot. I will start read John Resign Book and study a lot JavaScript.
Yes the solution is declarate the variable before but I would like this
varaible be global.
I dont recommend use var because will turn it local
So I did
$(document).ready(function(){
check1 = null;
39 matches
Mail list logo