Thanks Erik,
But how do i rebind something which has been unbound?
Erik Beeson wrote:
How about:
$('div#topLineHover').one('mouseover', function() {
$('#topLine').slideDown('slow');
});
Or:
$('div#topLineHover').bind('mouseover', function() {
I have tried many ways but it seems this is not possible. The css
function does not allow me to use two values for background position
with a space between the values and gives an error that ) is missing
when I use this
css(background-position,0 50%).
Even if I use this
[EMAIL PROTECTED] wrote:
Aha! Thanks Jorn!
btw - is there a problem with your comments system?
No, none that I'm aware of. And I got new comments since your first mail.
--
Jörn Zaefferer
http://bassistance.de
The first example you give works for me. If it's complaining about a
missing ) then the error is elsewhere.
The second is indeed invalid JavaScript. This:
background-position
Is the same as this:
background - position
So you should either use quotes around the CSS property (like you
Hi
I'm trying to get this working:
jQuery('#accordion [EMAIL PROTECTED]').click(function(){
var rank = jQuery('#accordion
p').index(function(){jQuery(this).parent('p').eq(0)});
});
my markup:
div id=accordion
h2bla blah/h2
p
input
Anyone have any idea on this? Non-existant selctors are breaking IE,
which is fairly bad news for me!
Thanks,
Luc Pestille
Web Designer
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Luc Pestille
Sent: 23 May 2007 15:19
To:
Does that mean i have to repeat the code or is there a way to do it without?
Gordon wrote:
The same way you bound it in the first place.
On May 29, 8:12 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Thanks Erik,
But how do i rebind something which has been unbound?
Erik Beeson wrote:
Yeah, you have to repeat the code. You could put the code in a
function though.
function doSlide ()
{
$('#myLine').slideDown ('slow');
}
$('div#topLineHover').bind('mouseover', doSlide);
On May 29, 11:03 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
Does that mean i have to repeat the
On May 28, 10:33 pm, Anders [EMAIL PROTECTED] wrote:
Nice plugin, very useful. What exactly are the differences to Sam's
orginal (without looking at the original...)?
Thanks! Not 100% sure on these (Sam, correct me if I'm wrong), but
should be mostly correct:
* Scrolls to the entered
Ok so I have payment page. When the page loads I fill in a list of
payments within a div using .load, and within the page being loaded in
the div, I have another .load that feeds in a total box. This all
works great in FF2, but for some reason in IE7 the paybox doesnt not
display.
So in the
It does have more features than mine (although I have added scrolling
to the entered time). It also uses another plugin (below) I did for
positioning, so there is no requirement to have the dimensions plugin.
I didn't know you had continued to develop the list version (which
I've been calling
no one can help me a little bit? sigh
On 25 Mai, 10:15, tlob [EMAIL PROTECTED] wrote:
Hi there
I work on a photographers site. She wants a slide show of her
photographs.http://www.siggibucher.com/preview/test.php
I used the innerfade plugin fromhttp://medienfreunde.com/lab/innerfade/
Jim,
there is a problem using load in IE when you have to load inside a
HTML table.
You should use $.get instead.
HTH,
Olive.
I assume this is a memory leak:
$(#id).empty();
$(#id).load(url, params, callback)
increases more and more the memory usage of firefox even if the
content is replaced (in my case about 0.5mb per request). since the
dev mailinglist did not work for me I
post it in here.
any sugestions? is this
Is the memory given back after a refresh?
--
Brandon Aaron
On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I assume this is a memory leak:
$(#id).empty();
$(#id).load(url, params, callback)
increases more and more the memory usage of firefox even if the
content is replaced (in my
Hi,
I made a simple port of Ext.Template [1] / Ext.MasterTemplate [2] to
be used with jQuery, removing Ext dependencies and so. The result is
tiny - 2,4KB packed, and given that it can make other codes smaller, I
think it is worth. Here's the code (feedback appreciated, I'm not a
javascript
If I reload, close the Tab or navigate somewhere else, it is not given
back. If I close the Browser and Re-open it, yes.
I checked out some tweaks from a firefox memory leak discussion
( http://www.freerepublic.com/focus/f-bloggers/1327586/posts ) but
nothing works so far. I'm using Process
Hi guys.
I have developed a web app and am making various AJAX popups using
Thickbox. However some of these popups use other JS libraries (eg:
scriptaculous). I have tried to implement the suggestions in this
link: http://docs.jquery.com/Using_jQuery_with_Other_Libraries but
didn't help, I
Hello list
Let's say I have a list of items (retrieved from a mysql-db with PHP).
To edit the records, one has to click a link (a href=# ...item 1/
a) which opens a form (achieved with the show/hide jquery).
How can I pass the id of an item back to php.
I guess I have to use the $.get or
David,
I've been using jquery to build an icon picker for FAMFAMFAM's Silk
icon set. I've got a working version (at http://dsingleton.co.uk/code/icon-
selector/),
but with 1000 images on the page everything is a little slow, i'm
wondering what I can do to optomize the JS make it a little
On 5/29/07, Diego A. wrote:
It's not only great for saving code, but it will come in handy for
customizing the html output of plugins...
much easier than having a bunch of individual options.
I thought that too! :) I'm using it in a plugin I'm writing to make
the output customizable. Also I
$(document).bind(click, function (e){
// get the target element (srcElement for IE, originalTarget for
W3C)
var el = e.srcElement || e.originalTarget;
if( el.tagName == A el.className == icon ){
alert(Hey, I'm an a.icon element!!!);
return
Hi John/Michael,
FOUND THE PROBLEM.
And John, I'm sure you'll be glad to know it's not a bug in jQuery.
I compress (remove white space and pointless concatinations) and re-
pack my scripts into one file with jQuery and all the plugins I use.
This error happened when I compressed and re-packed
I still have three global functions while I'm looking for alternatives
in the jQuery world. I'm looking for something that helps extending
classes / overriding class members in jQuery or any jQuery
plugin/utility. Something like the extend() function in YUI or Ext. Is
there any?
You mean like
http://docs.jquery.com/Ajax would be a good start =).
You'll want to make an Ajax call ($.ajax, $.get, $.post... whichever)
and use data to pass back data to PHP.
qt wrote:
Hello list
Let's say I have a list of items (retrieved from a mysql-db with PHP).
To edit the records, one has to
Hi all
do you know any example using BlockUI with normal form(otherwise Ajax)?
I have a very slow form(processing text files). I'll want to block UI when
user submits that form and, after execute that page, unblock again.
Cheers
On 5/29/07, John Resig wrote:
You mean like jQuery.extend()? You just pass in two objects and the
first one is extended with the second.
http://docs.jquery.com/JavaScript#.24.extend.28_target.2C_prop1.2C_propN_.29
Thanks, John. I tried it first, but it doesn't seem appropriate in
this case.
Can someone answer this question about frame and jQuery?
Thanks
On May 24, 11:37 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I have an html page with two frames named: A and B. All javascript
functions are in top object.
document A has an element div id=samplesample test/div, I'm
trying
I have a web page with a user-selectable number of quiz questions.
Each question is in a list element. Sometimes users select 250 quiz
questions which is a lot...
I wanted to solicit thoughts about automatically scrolling to the next
question when a choice is made (when a radio button is
Can you provide an online example? The issue may be in your callback method.
Cheers,
-Jonathan
On 5/29/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I assume this is a memory leak:
$(#id).empty();
$(#id).load(url, params, callback)
increases more and more the memory usage of firefox even
I could do a test, but discussion seemed like it might turn up
something else...
.parents(expr) supports an expression to filter parent elements,
e.g.,
.parents('.getme') // returns all parents with class getme
the $(expr) in general allows any css (or xml) selector. Does expr
extend this way
What is the HTML structure of your document?
Yes, it is possible though.
Cheers,
-js
On 5/29/07, SamCKayak [EMAIL PROTECTED] wrote:
I have a web page with a user-selectable number of quiz questions.
Each question is in a list element. Sometimes users select 250 quiz
questions which is a
I think the ScrollTo or ScrollToAnchors functions in the Interface FX
module would work well for what you're trying to achieve:
You can check out the documentation for them here:
http://interface.eyecon.ro/docs/fx
--Karl
_
Karl Swedberg
www.englishrules.com
I have a web page with a user-selectable number of quiz questions.
Each question is in a list element. Sometimes users select 250 quiz
questions which is a lot...
I wanted to solicit thoughts about automatically scrolling to the next
question when a choice is made (when a radio button is
Hi Olive thanks for the suggestion.
Usually I dont have a problem with .load in IE7, but I assume this is
because Im doing a .load within another file that was requested via
ajax.
On May 29, 5:00 am, Olive [EMAIL PROTECTED] wrote:
Jim,
there is a problem using load in IE when you have to
Well no luck with .get either. Guess Ill have to output the div as
the page is generated. So much for IE.
On May 29, 9:09 am, JimD [EMAIL PROTECTED] wrote:
Hi Olive thanks for the suggestion.
Usually I dont have a problem with .load in IE7, but I assume this is
because Im doing a .load
Anders wrote:
It does have more features than mine (although I have added scrolling
to the entered time). It also uses another plugin (below) I did for
positioning, so there is no requirement to have the dimensions plugin.
I didn't know you had continued to develop the list version (which
Dan G. Switzer, II wrote:
$(document).bind(click, function (e){
// get the target element (srcElement for IE, originalTarget for
W3C)
var el = e.srcElement || e.originalTarget;
if( el.tagName == A el.className == icon ){
alert(Hey, I'm an a.icon
Hey guys,
Great news! Hpricot has accepted my patches to make hpricot compatible with
jQuery, which means you'll only need to checkout the latest hpricot from svn
to use jQuery on Rails.
--
Yehuda Katz
Web Developer | Wycats Designs
(ph) 718.877.1325
Alternatively, instead of unbinding the event, you could have your
event handler check for some condition:
$('div#topLineHover').bind('mouseover', function() {
if($('#topLine').is(':hidden')) {
$('#topLine').slideDown('slow');
}
});
Also, when selecting by ID, no need to specify
You can't block across requests. You may achieve your desired effect if your
page is within an iframe and the blockui is in the parent document.
In short you can block when the user clicks submit but at an arbitrary point
in time the browser will clear the screen as it receives the response. So
I'm trying to get this working:
jQuery('#accordion [EMAIL PROTECTED]').click(function(){
var rank = jQuery('#accordion
p').index(function(){jQuery(this).parent('p').eq(0)});
});
I'm not sure why you would want to do this, but the following should
get the effect your desire.
The error was caused by using a $ instead of a # in the selector string.
-Mike
On 5/24/07, Roger Roelofs [EMAIL PROTECTED] wrote:
Mike,
On May 22, 2007, at 1:17 PM, Mike Chabot wrote:
I have a simple function to capture the OnChange event of a drop-down
select box. In MSIE, it works as
The short answer is absolutely. If you're not in a serious rush I
would appreciate you giving me a day to let me get the code cleaned up
- I decided to rebuild my domain over the weekend, so I'm still coming
up to speed. There is a lot of cruft there now from trial-and-
erroring IE performance
Hi John, I quickly tested jQuery 1.1.3a with my jVariations plug-in and it
crashed Safari (immediately). I'm going to take a look into it this week and
will hopefully be able to provide more information. The page I was testing
it on was quite complex and Safari was already struggling (taking a
Hi,
Sorry to reply to myself. :)
I've updated the Template plugin to use $.extend() in a new
$.extendClass() function. This is probably Javascript 101, but I
couldn't go ahead from this point. If somebody can point me an example
of a extended class/constructor/prototype in jQuery, maybe I can
Hi all,
before jQuery, I was used to check for existence of certain elements
like this:
if (!document.getElementById('myElem')) {
return false;
} else {
doSomething();
}
Is there some jQuery way of doing this, or should I use the old DOM
one?
Thanks!
Bohdan
What is jQuery on Rails? ;)
On May 29, 9:52 am, Yehuda Katz [EMAIL PROTECTED] wrote:
Hey guys,
Great news! Hpricot has accepted my patches to make hpricot compatible with
jQuery, which means you'll only need to checkout the latest hpricot from svn
to use jQuery on Rails.
--
Yehuda Katz
You can use a selector such as $('#myElem') to get an element by ID. $
('#myElem').size() gives you the size of the matched set - you can use
that in an if statement if you want.
One of the great things about jQuery, however, is the basic concept.
If it doesn't find the element it doesn't do
Are the dev and plugins lists up at the moment?
--
Mika Tuupola http://www.appelsiini.net/~tuupola/
It would appear that you idea does not work.
Just as a note about testing. Open any jQuery page and Firebug, and
viola, you have little playground to try quick jQuery lines.
~Sean
P.S. I wrote a plugin to find jQuery pages: http://www.sunsean.com/jquerydetect/
Its a mod of Ruby On Rails that replaces the default Prototype/Scriptaculus
with jQuery.
On 5/29/07, Daemach [EMAIL PROTECTED] wrote:
What is jQuery on Rails? ;)
On May 29, 9:52 am, Yehuda Katz [EMAIL PROTECTED] wrote:
Hey guys,
Great news! Hpricot has accepted my patches to make hpricot
How do I find the first text-node of a given DOM object?
Input: divphere is/p some text/div
Output: some text
Input: h1a href=#id1/aHeader 1/h1
Output: Header 1
~ ~ Dave
I believe it's something like $('div').text();
-js
On 5/29/07, DaveG [EMAIL PROTECTED] wrote:
How do I find the first text-node of a given DOM object?
Input: divphere is/p some text/div
Output: some text
Input: h1a href=#id1/aHeader 1/h1
Output: Header 1
~ ~ Dave
Indeed it is, thanks. I worked that out after posting -- I figured it had to be
something incredibly complicated ;)
~ ~ Dave
On Tue, 29 May 2007 14:56:58 -0500, Jonathan Sharp [EMAIL PROTECTED] wrote:
I believe it's something like $('div').text();
-js
On 5/29/07, DaveG [EMAIL
No I believe they are in the process of being transitioned to Google
Groups. Feel free the post anything to this list for now.
--
Brandon Aaron
On 5/29/07, Mika Tuupola [EMAIL PROTECTED] wrote:
Are the dev and plugins lists up at the moment?
--
Mika Tuupola
Actually, I withdraw that. .text() returns the text of all nodes combined (in
example 1: here is some text).
~ ~ Dave
On Tue, 29 May 2007 15:57:55 -0400, DaveG [EMAIL PROTECTED] wrote:
Indeed it is, thanks. I worked that out after posting -- I figured it had
to be something incredibly
I didn't find a way to do this yet, but I did discover a way to crash my
browser:
Warning: locks up FF2
Input: div id=id1phere is/p some text/div
jQ: $(#id1).text()
I also discovered a way to get the text of the first element:
Input: div id=id1phere is/p some text/div
jQ:
Good evening,
It is possible to call
1. $('#field').trigger(click);
2. $(document).trigger(myOwnEvent);
But it seems, that this is not possible to call
$(ducument).trigger(ready);
Is ready not an event? (Yes, I mean ready from $
(document).ready(function() {...})). I need to recall this
One of the great things about jQuery, however, is the basic concept.
If it doesn't find the element it doesn't do anything so there is no
need for conditional logic ;)
That's really great, thanks for making it clear for me...jQuery is
goodness, the more I know it, the more I love it :)
ready() is just a special method that handles the DOM Ready event. I
can't think of a use-case where one would need to force the call to
ready but you can do so by calling jQuery.ready(). Once the function
runs, it won't run again.
I'm not sure what, if any, the consequences of doing this are.
something like this (untested) returns an array of all the plain text nodes
in a jQuery object.
jQuery.fn.plainText = function() {
var text=[];
this.each(function(){
var children =this.childNodes;
for (var i = 0; i children.length; i++){
var child = children[i];
I'm writing this off the top of my head, but it should be at least
close to functional.
jQ: $(#id1).children().filter(function(){return
$(this).text()!=;}).filter(:eq(0)).text()
Or if you intend to use this a lot, you could write a small plugin:
(function($){
$.fn.textNode(index){
index =
Mathias,
The solution is simplier than it seems.
function foo(){...}
$(document).ready(foo);
//someplace where you want to call the document.ready again
foo();
By wrapping the code that you want to call from document.ready inside
a function it is easy to call again at any time.
Of course
don't use an anonymous function with ready. use a named one, and then just
call it again (and again).
On 5/29/07, Brandon Aaron [EMAIL PROTECTED] wrote:
ready() is just a special method that handles the DOM Ready event. I
can't think of a use-case where one would need to force the call to
Hi all
I have a very basic form with Jorn Form Validation and Tabs plugins inside.
Looks very simple like:
div
div id=AuxData
style=width:100%
ul class=anchors
I'm doing a related select dropdown here (bottom middle of the page):
http://w3.normreeveshonda.com/pages/page.cfm?pageid=80976
http://w3.normreeveshonda.com/pages/page.cfm?pageid=80976pagetype=26featu
reid=-1 pagetype=26featureid=-1
In FF, under New vehicles, the Make dropdown defaults to HONDA
I've done it this way:
$('#selectid')[0].options[1].selected = true;
JK
_
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Andy Matthews
Sent: Tuesday, May 29, 2007 2:46 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] Forcing a select box to select a
Dave, I was shocked when you got the first answer. I don't think there is
any way to get just the text using jQuery core functions.
If you get .html() you can use regexps to remove the complete nodes, it
seems messy.
if you write a plugin (there may already be one) it can go thru the dom
nodes
Andy,
$('#RedMakeSelect:first-child [EMAIL PROTECTED]')
I believe IE always has the value attribute defined--even if it's not
defined in your markup (ie. it essentially adds a value= to your tag.) If
you know the 2nd element should have a value attribute if it's present, then
I'd just do:
Hi All,
I'm looking for a jquery based menuing plugin ala:
http://jdsharp.us/jQuery/plugins/jdMenu/
It has to be able to do the following:
1. allow on/off images for top level menu items: either background
images or both foreground and background images (for typeset foregrounds)
2. have a
Hey Yehuda,
that's really great news! :)
Many thanks!
Alex
Yehuda Katz wrote:
Hey guys,
Great news! Hpricot has accepted my patches to make hpricot compatible with
jQuery, which means you'll only need to checkout the latest hpricot from
svn
to use jQuery on Rails.
parents(expr) is equivalent to parents().filter(expr)
SamCKayak wrote:
I could do a test, but discussion seemed like it might turn up
something else...
.parents(expr) supports an expression to filter parent elements,
e.g.,
.parents('.getme') // returns all parents with class getme
tested.
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
head
title
plainText()
/title
script type=text/javascript src=/js/jquery.js/script
script type=text/javascript src=/js/my.js/script
script type=text/javascript
$(function(){
Is there a post which has more details somewhere?
Yehuda Katz wrote:
Hey guys,
Great news! Hpricot has accepted my patches to make hpricot compatible
with jQuery, which means you'll only need to checkout the latest hpricot
from svn to use jQuery on Rails.
--
Yehuda Katz
Web Developer |
Hi
BjQ (before jQuery) I can do this:
document.getElementById('foo').clientWidth
to get a DOM value that Firebug tells me is set to something other
than 'undefined'.
I can't figure out how to the do same in AjQ (after jQuery). I've
tried the following:
$('#foo').attr('clientWidth')
but
$('#foo')[0].clientWidth
On 5/29/07, pd [EMAIL PROTECTED] wrote:
Hi
BjQ (before jQuery) I can do this:
document.getElementById('foo').clientWidth
to get a DOM value that Firebug tells me is set to something other
than 'undefined'.
I can't figure out how to the do same in AjQ (after
You can access the regular dom properties/methods by extracting the
element from the jQuery collection.
$('#foo').get(0).clientWidth
You can also just use bracket notation.
$('#foo')[0].clientWidth
You could also use the Dimensions plugin which helps abstract some
cross browser issues with
Here are the docs for .get( Number )
http://jquery.bassistance.de/api-browser/#getNumber
--
Brandon Aaron
On 5/29/07, pd [EMAIL PROTECTED] wrote:
Thanks guys, super-fast reply :)
Is this documented anywhere? I've scanned through the API and didn't
see anything for what seems to be a pretty
I'm using Drupal 5.1 and jquery to build a site where members can
create content. I wrote a module to display a list of available images
and videos in a list in a block. I'd like to be able to select an item
from the list and drag it into the article body textarea, and
wondering if this can be
On May 30, 5:48 am, DaveG [EMAIL PROTECTED] wrote:
How do I find the first text-node of a given DOM object?
Input: divphere is/p some text/div
Output: some text
Input: h1a href=#id1/aHeader 1/h1
Output: Header 1
I'm not sure what you are really after. If you are after the text
content
Please forgive the self-advertisement, but I just wanted to share that I've
added jQuery to the list of featured projects I've been coordinating this
year:
http://www.garfieldtech.com/blog/potm-jquery
For the rest of the featured projects, see here:
http://www.garfieldtech.com/potm
82 matches
Mail list logo