From: Feed
Thanks Ian, it seem to be working perfectly. I just have one more
question: isn't there a big performance impact using this
piece of code? It looks like the page it taking a while do
load, but I guess you have to choose between the time the
page takes to load and the time
I load images with
$('#pictures').html('img src='+files[pos]+' id=file'+pos+'
class=picture');
and want to save the loaded width,height afterwards. It seems this is
only possible after the image is fully loaded. Is there an event which
I could bind a function?
O. Wyss
my idea.
content = klik= fade out new
'''
new ()
''
oke,plz withd html
The event is not passed down to the underlying event but rather it
bubbles up through the dom tree from the event where the event was
triggered.
http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-bubbling
An example is probably easier to digest. This code has click handlers
at
What's the difference of $.getJSON versus $.get? I currently use
$.getJSON to load JSON data but I can't see any advantages.
Is $.getJSON just another way for
$.ajax({
type: GET,
url: link name,
dataType: json,
complete: function name
})
or is the callback excuted only when
Hi Mike,
Just start with something simple, like this:
I was getting lost in a water glass many thanks for your help and
great script, now is more clear.
--
Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/
It's easier to invent the future than to predict it. -- Alan Kay
On Apr 24, 2:54 pm, Kelvin Luck [EMAIL PROTECTED] wrote:
Hi,
I'd like to announce the beta release of v2 of my datePicker plugin for
jQuery. This release is a complete rewrite which makes the date picker
considerably more powerful and flexible than it previously was. Check out the
[...] isn't there a big performance impact using this piece of code?
That's why I said play around a bit ;^) I threw that idea out there
mostly because it is sort of inside-out from style that I would
probably have tried first and it was just building off the previous
example. That sort of
From: Ian Struble
Just out of curiosity is there a way to break out while
iterating with .each()? Again building on the previous
example (Mike's #2 this time):
$(function() {
$('tr').each( function() {
var allEmpty = true;
$('td', this).each(funcion() {
On 4/28/07, Michael Geary [EMAIL PROTECTED] wrote:
Indeed there is, return false. See my #1 example which is similar to
yours...
I should have used my eyes before I started typing. My question's
code is almost exactly what you wrote, just cosmetic differences. I
missed the assignment +
Thanks for your replies on this.
I only just got around to trying out the suggestions to use jquery to
update the div contents.
Unfortunately, they don't seem to work and produce the same result as
my initial code?
There must be a way to do this.
Any advice most appreciated.
Thanks.
On 27
Dan G. Switzer, II schrieb:
Stefan,
as i highlight multiple hits (search for jo ro in the single person demo)
i need to disable jörns
markup, but i did not find out how.
formatItem: false,
did not help. any hit for me?
Last time I checked, disabling the automatically highlighting
Looking at the code for newticker, you might/should be able to just
recall $(ul).newsticker() and it should reset the ul. If for some
reason it doesn't work, then this might be the change that the plugin
needs:
stopTicker = function(el) { if(el.tickfn) clearInterval(el.tickfn); }
~Sean
Try this:
$('#pictures').html(...).bind(load,function(){...});
~Sean
I need for one application relatively big size background images which
change every few seconds. I was wondering if it is possible to load
the images one by one using ajax and then set some clause to use it
from the DOM after it is loaded for the cycle and not loading it from
the server. The
On Apr 28, 2007, at 1:02 AM, Shelane wrote:
when you click
one of the categories from the Home page, a horizontal scroll bar
appears and the focus outline is extended out just past the original
size of the fieldset element.
Hey Mike,
To get rid of that horizontal scrollbar*, looks like you
Ah! In that case you can pull your Javascript form submit code into a
function and then call that function in the callback of the ajax
load. Whenever new content is added to the DOM, we need to re-bind
events so they recognize the new DOM elements. Actually, there are
other ways to do
Michael! So great to see you on the list again! You have a brilliant
mind, and I always learn something new whenever you post.
I was beginning to wonder where you've been. Glad to have you back. :-)
--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com
On Apr
xavier schrieb:
Hello,
I want to have an application that works both with and without ajax.
Eg: without ajax, I get /contentWithMenu and with ajax I .load /
contentonly into #content
jQuery([EMAIL PROTECTED]/]).bind(click,function(){
jQuery(#main).load
For those of you that have been asking about the recorded
presentation, here's the URL:
https://admin.adobe.acrobat.com/_a17673838/p30028287/
And here's a link to the files used in my presentation so that you can
follow along:
http://www.ncfug.com/archive/AndyMatthews_April2007_CSS.zip
Hope
wyo wrote:
What's the difference of $.getJSON versus $.get? I currently use
$.getJSON to load JSON data but I can't see any advantages.
Is $.getJSON just another way for
$.ajax({
type: GET,
url: link name,
dataType: json,
complete: function name
})
or is the callback excuted
nbsp; is html. not javascript!
Does IE do this any differently than firefox?
?xml version=1.0 encoding=utf-8 ?
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.1//EN
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=en
head
title
Karl
I really appreciate the responses. I'm not new to programming but I
am very much a noob where javascript is concerned. What I'm now
looking for is an explicit example of how to do what I'm trying. The
code in this group helps, but it seems to be either confusing or
slightly off target.
I am using jquery 1.1.2, interface 1.2, working with drag/drop.
When user drops an image onto the drop area, I want to retrieve the
src value, so that eventually I can send that value to the server
and do some Ajax stuff. But so far, in my code below,
I have only gotten this to work:
var
Try drag.src
~Sean
On Apr 28, 4:00 pm, Sean Catchpole [EMAIL PROTECTED] wrote:
Try drag.src
~Sean
Hi Sean,
drag.src returns undefined. Here is a partial list of various things
I've tried.
var thePhoto = drag.innerHTML.(img).attr(src); // no
var thePhoto = drag.innerHTML.attr(src); // no
var thePhoto =
dennis wrote:
If this makes a difference, the image is defined within this set of
divs:
div id=theImages
div id=drag class=dropaccept
img src=static/galleries/JQm49CWi09/_t/lilly01_fuy.jpg/a
/div
/div
I haven't used draggables, but it looks like drag in this case is a
jQuery object. In
On 28 Apr., 15:39, Sean Catchpole [EMAIL PROTECTED] wrote:
Try this:
$('#pictures').html(...).bind(load,function(){...});
I've tried
$('#pictures').html('img src=...').bind ('load', sizeImage);
function sizeImage() {
alert ('sizeImage');
}
The alert is never shown, see
Thanks for your reply. I figured it out from the post.
thanks again
On Apr 28, 11:37 am, Dave Cardwell [EMAIL PROTECTED] wrote:
joomlafreak wrote:
I need for one application relatively big size background images which
change every few seconds. I was wondering if it is possible to load
I had some down time this afternoon so I thought I would throw
something together real quick. I just checked it in:
http://dev.jquery.com/browser/trunk/plugins/behavior
This allows you to register any number of behaviors that will run any
jQuery method/plugin with any number of arguments. It
Wyo,
Try something like this:
var $img = $('img src='+files[pos]+' id=file'+pos+'class=picture')
.appendTo('#pictures')
.bind('load', function() { alert('loaded') });
But be aware that if the image is already in the browser cache the
load event will not fire in IE. You can use the
Brandon,
That is really slick!
Mike
http://dev.jquery.com/browser/trunk/plugins/behavior
Maybe $('#pictures').html(...).children().bind(...)
But I think you're trying to hard to use jQuery. How about this
(tested on FF2/Mac):
var img = new Image();
img.onload = function() { img_width = this.width; img_height = this.height; };
img.src = '...';
$('#pictures').html(img);
Or if you
Try this: $('img', drag).attr('src');
--
Brandon Aaron
On 4/28/07, dennis [EMAIL PROTECTED] wrote:
On Apr 28, 4:27 pm, Dave Cardwell [EMAIL PROTECTED] wrote:
I haven't used draggables, but it looks like drag in this case is a
jQuery object. In that case, you want drag.attr(src).
On Apr 28, 5:25 pm, Brandon Aaron [EMAIL PROTECTED] wrote:
Try this: $('img', drag).attr('src');
Brandon, that idiom works. I'll stop banging my head now.
Thanks BIG!
/dennis
Not sure if the author is on this list, but awesome job either way!
Check it out: http://fmarcia.info/jquery/tetris/tetris.html
And vote it up if you think its good -- how could you not ;)
@DZone: http://www.dzone.com/rsslinks/tetris_with_jquery.html
@Digg:
I used the code posted by Mr. Sean on this group and a working example
is at this url
http://www.levelfield.com/ticker.html. Thanks Sean and all who helped
him develop further.
I added few lines to this code to make something like Yahoo movie home
page module. It works nicely but I have noticed
Here is link to the live page where I am using this code. See how it
behaves on repeated clicks
http://www.joomlaprodigy.com/test/index.php?option=com_weblinksItemid=23
On Apr 28, 8:58 pm, joomlafreak [EMAIL PROTECTED] wrote:
jQuery.noConflict()
var ppdelay = ?php echo $ppdelay; ?;
var
What might we expect in the next release? You mentioned a few things
related to faster selectors, animations, etc. What bug fixes might
we see? IE issues?
Why is IE always the problem child? Oh yeah, M$. OK, off my soapbox
now.
On Apr 26, 7:21 pm, John Resig [EMAIL PROTECTED] wrote:
Here is a list of fixes thus far that will be in 1.1.3:
http://tinyurl.com/2t2we5
--
Brandon Aaron
On 4/28/07, Shelane [EMAIL PROTECTED] wrote:
What might we expect in the next release? You mentioned a few things
related to faster selectors, animations, etc. What bug fixes might
we see?
Hi,
The this.$events is never existing as far as I understand (based on
firebug), no matter if the link has an event or not.
I have events associated to the click that are created with the jquery
accordion plugin. I suppose they are normal events, and that's not why
they aren't seen.
Any idea?
41 matches
Mail list logo