Doh...thank you Karl for saving my behind. Parse Int won't work...coffee
hadn't kicked in yet.
Cheers,
- Jonathan
On Mon, Oct 5, 2009 at 6:58 PM, Karl Swedberg wrote:
>
> On Oct 5, 2009, at 11:43 AM, Jonathan Sharp wrote:
>
> You can run a parseint on the number: var myI
Hi Dennis,
We had some issues with jqModal and unfortunately only the minified source
is available so we ended up using the jQuery UI dialog component with great
success.
(Note the filesize listed on the jQuery UI page is for the entire zip file,
the library itself is much smaller)
http://jqueryu
$.fn.myPlugin = function(options) {options $.extend({ callback: null },
options);
// Your plugin
if ( $.isFunction(options.callback) ) {
options.callback.call();
}
};
$('div').myPlugin({
callback: function() {
// Your callback code
}
});
A better approach mig
What are you trying to do?
On Mon, Oct 5, 2009 at 11:37 AM, m.ugues wrote:
>
> HAllo all.
> This piece of code works fine in FIrefox but does not work in IE.
>
> http://pastie.org/642444
>
> The problem is on textContent attribute that in IE is undefined.
>
> Any workaround?
>
> Kind regards
>
>
Hi Donnie & Pirco,
You can use the .text() jQuery method to get at the CDATA.
The error though is coming from how you're selecting the ID:
Instead of:
html = $.trim($(xml).find("html").text());
alert($("#mydiv", html).attr("id"));
Try:
// XML is already a XML Document object
var cdata
Hi Nitin,
Something similar to the following should work:
$('div.modan > p > a').each(function() {
$(this).parent().after( $('').find('li').append( this
).end() ).remove();
});
Cheers,
- Jonathan
On Mon, Oct 5, 2009 at 10:19 AM, Nitin Gautam wrote:
>
> I have following code
>
>
> Center
>
You can run a parseint on the number: var myInt = parseInt( '15,000', 10);
Cheers,
- Jonathan
http://jqueryminute.com
On Sun, Oct 4, 2009 at 7:49 AM, runrunforest wrote:
>
> cool, but that leads to another problem
>
> The computer now thinks 15,000 is just 15 instead of fifteen thousands
Hi Eric,
The browser will replace the image first before loading it. What you can do
to preload the image is as follows:
var newBackgroundImage = '/new/image/url.png';
$('')
.attr('src', newBackgroundImage)
.bind('load', function() {
$('div').css('background-image', 'url(' + newBac
Hi Dan,
Can you post a URL to a page that includes the smallest amount of code to
reproduce this issue?
Cheers,
- Jonathan
On Tue, Apr 7, 2009 at 2:44 PM, DynamoDan wrote:
>
> Hi All
>
> I've used jQuery a lot over the years, mostly in the joomla CMS
> context. I think I've found a bug in th
Another approach you can take is:
var table = $('')
.appendTo( parent )
.find('table');
This creates the HTML and then appends it to the parent. Since you created a
jQuery object with that fragment, calling find will locate the inner table.
Cheer
jQuery doesn't select or operate on text nodes. Here's a plugin I wrote that
will capture the text node and wrap it:
/*!
* jQuery wrapNextTextNode Plugin v1.0
* http://outwestmedia.com/
*/
$.fn.wrapNextTextNode = function(wrap) {
return this.each(function() {
var ns = this.nextSibli
Hi Chris,
I'd recommend starting by commenting out all code until IE doesn't crash.
Then I'd start uncommenting code in smaller blocks until you isolate what
starts the IE crash.
Cheers,
- Jonathan
On Mon, Apr 6, 2009 at 8:56 PM, zeckdude wrote:
>
>
> My site works fine in Firefox, but it cra
Ouch! Sorry about that.
I didn't have time to add functionality that saved the window position
- but when this is in (v. soon), I'll initialise the window at
640x480, then changing the window's position and size will be saved
for the next time it's opened.
Cheers,
Remy.
On Jan 17, 11:08 am, G
ee with the subcategories as
> separators.
>
> These two things would speed up navigation a lot. As it is, it's quite
> interesting the first time, but gets irritating after a while.
>
> Thanks for this Remy, and long live JSBin! :)
>
> cheers,
> - ricardo
>
> On
Hi James,
Thank you for your detailed feedback - all good points.
I want to push out another release when 1.3.1 goes live - so I'd like
to get some, if not all, of the feedback addressed (including others).
1 + 2) almost the same thing - the first problem I see is the AIR
browser, which obvious
Hi James,
Here's one way to rewrite it using jQuery:
function divShowHide(divID, imgID) {
var d = $('#' + divID).toggle();
$('#' + imageID).attr('src', 'Images/' + ( d.is(':visible') ?
'down' : 'up' ) + 'arrow.png' );
}
Cheers,
-Jonathan
On Oct 23, 2008, at 8:42 AM, James2008 wro
$(this).attr('title');
alert(url);
});
work with the loaded content.
for repeat my probleam:
click in 'MG' (this action fire the load content)
now, click in 'Belo Horizonte' (this is the load content!) first alert
dont appear. :(
On 22 ou
Hi Isaac,
Do you have a link you could post? It's unclear to me exactly what the
question is.
Cheers,
-Jonathan
On Oct 22, 2008, at 6:59 PM, isaacn wrote:
Is there a way to do a direct link to an arbitrary slide, from another
page? I saw the demo where the link was on the same page, but t
Hi Elke,
The dropShadow plugin wasn't used for this. It was accomplished with
images and css. If you download Firefox 3 and install the excellent
firebug extension (http://www.getfirebug.com) it allows you to inspect
the HTML page and see what CSS styles were applied to what elements.
Ha
Hi gtso86,
Do you have a URL of the page in question?
It may be that you need to call your $('#rapida ul a')... code after
$.load() is finished loading the content.
You could do this by using the callback argument:
$.load(url, [data], function() {
$('#rapida ul a')...
});
Cheers,
-
Hi RWF,
You can make a cross site call if the server knows how to speak JSONP.
Remy Sharp (no relation) had a great blog post about this a while back:
http://remysharp.com/2007/10/08/what-is-jsonp/
Cheers,
-Jonathan
On Oct 22, 2008, at 6:17 PM, RWF wrote:
in the docs: http
I just tried dropped in some vanilla XML and it saves and renders
fine:
http://jsbin.com/uwedo/edit
I cleared out the JavaScript tab, and just entered plain old XML in
the HTML tab - the saved output is just XML:
http://jsbin.com/uwedo/
> yeah! I couldn't manage to put xml in jsbin. I follow
Slightly aside to your actual problem - I looked at the jsbin dump you
did and the source XML (http://jsbin.com/ebupo ) and noticed the XML
tags had been escaped - so I've gone in to the database and updated it
manually so your test page now works (or works in that it demonstrates
the problem).
C
Hi Martin,
The main cause of the problem is you're using the e.target as the
starting selector on the effect. So when the mouseout event occurs
the event's target can be different from what you're expecting.
So the initial fix is to change $(e.target)... to $(this)...
However, using the .stop(
Hi,
I've just released a jQuery plugin that not only brings the marquee
tag back to life, but IMHO does a smoother job of animating it in the
browser :-)
http://remysharp.com/2008/09/10/the-silky-smooth-marquee/
Enjoy!
$('div').click(function() {
// Will give you the index out of just the DIV tags
var index = $(this).parent().find('> ' + this.tagName).index(this);
// Will give you the index out of all siblings
var index = $(this).parent().find('> *').index(this);
});
Cheers,
-Jonathan
On Tue,
Hi jbhat,
Can you post a URL? It's nearly impossible to debug or provide any feedback
from reading the code below.
Cheers,
-Jonathan
On Fri, Jul 11, 2008 at 2:51 PM, jbhat <[EMAIL PROTECTED]> wrote:
>
> I am having trouble with AJAX:
>
> In document ready i have:
>
> $.post("test.php", functio
Hi Vik,
On Thu, Jul 10, 2008 at 4:41 PM, joomlafreak <[EMAIL PROTECTED]> wrote:
> ...
My impression so far had been that they really are
> not counted much compared to your experience. It is generally
> mentioned by people that increasing competition has led to companies
> using the credentials
Hi Vik,
This is somewhat of a tough question to answer. I think the most important
factor in this is rather than "programming experience" it should be
"relevant experience". Having been professionally in the IT field for over
10 years, I've focused my skill set to the web development realm and mor
( i > 0 && i < 9 );
>
> }).hide();
>
> And it worked.
>
> For say
>
> $('.equipment a.i-right1')
> $('.equipment a.i-right2')
> $('.equipment a.i-right5')
> $('.equipment a.i-rightx')
>
> How would i put tha
Hi Johnee,
Another approach would be:
$('.equipment a.i-right1').each(function(i) {
if ( i > 0 && i < 9 ) {
$(this).hide();
}
});
or this would work too:
$('.equipment a.i-right1').filter(function(i) {
return ( i > 0 && i < 9 );
}).hide();
Cheers,
-Jonathan
On Tue, Jul 8,
Hi,
I converted the wiki output to drive my API browser from it, and I'm
in the process of decoupling this from the front end to create a stand
alone engine that will allow you to query the API docs - for uses in
AIR apps, Dashboard widgets, iGoogle widgets, etc.
The current API browser (online
I've also recently made all the screencasts available via iTunes
podcast. Search jQuery and you'll see the jQuery for Designers
podcast - though I had to resize the videos from 800 to 640 to meet
Apple video podcast requirements.
Cheers,
Remy Sharp.
blog ~ remysharp.com
twitter ~ t
Isn't it more like?
alert( $('people:female').find('girlfriend').length == 0 ? 'l33t' : 'normal'
)
-js
On Fri, May 9, 2008 at 11:11 AM, Brandon Aaron <[EMAIL PROTECTED]>
wrote:
> Something like:
>
> $('people:female').find('girlfriend') => []
>
> --
> Brandon Aaron
>
>
> On Fri, May 9, 2008 at
Just throwing this out there, but I'm guessing it may be similar to the one
day jQuery Camp '07 that was in Boston, MA following The Ajax Experience
East conference (http://theajaxexperience.com). TAE is scheduled for
Sept/Oct of this year.
Cheers,
-Jonathan
On Wed, May 7, 2008 at 2:20 PM, Joe <
Sorted.
I've also included selectors and properties in the API and options
when they're available (i.e. ajax).
On Mar 6, 9:09 pm, Remy Sharp <[EMAIL PROTECTED]> wrote:
> @Yansky - you're right. I've got an update to the API browser which
> will include se
@Yansky - you're right. I've got an update to the API browser which
will include selectors as well as functions and properties and I'll
make sure the parentheses are only added to functions.
Cheers.
On Mar 6, 7:30 pm, Yansky <[EMAIL PROTECTED]> wrote:
> Ah yes you're right. I got confused by th
Hi Philip,
I'm not sure if you're attempting a partial match but you may also find the
following works:
$('div.' + $i)
Cheers,
-Jonathan
On Fri, Feb 22, 2008 at 8:40 PM, Karl Swedberg <[EMAIL PROTECTED]>
wrote:
>
> Hi Philip,
>
> What you need to do in this case is concatenate the variable, s
Hi Sean,
I'm guessing what's happening is as you resize the div to the height of the
window - 270 it expands the document height which triggers another resize.
Do you have a URL to this page?
Cheers,
-Jonathan
On 2/21/08, SeanR <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I'm using $(window).re
Hi hartshorne,
You're on the right track with event delegation as it is fundamentally
different than binding the event to each link. With event delegation you
have 1 event bound to 1 element (div), in binding to each link you have 1
event boud to two links.
jQuery('#nav').bind('click', function(
I've written a few, but there's a whole bunch out there (http://
docs.jquery.com/Tutorials).
Using Ajax to validate forms:
http://jqueryfordesigners.com/using-ajax-to-validate-forms/
Ajax'ifing forms (screencast):
http://remysharp.com/2007/03/05/jquery-ajaxed-forms/
What you're after boils do
@Jack - I'm tinkering with the idea of converting the XML either on
the server-side, or as a one hit on the client side - to a JSON
object.
That way there's no more XML queries to run, each time you search.
Once that's in place, it'll be easier (on your browser) to run the '*'
query (though I thi
Hi all,
Ever since jQuery 1.1.3 the old API browser hasn't been updated due to
incompatibilities in the documentation (though that's mostly
assumptions). Although the new docs is comprehensive, I've always
liked the quick access the old API browser gave.
As such, I've got about my own way re-bui
Hi Paul,
This should do the trick:
$('li').each(function(i){
array1[ Math.floor( i / 3 ) ] = $(this).html();
});
Cheers,
-Jonathan
On 2/4/08, Paul Jones <[EMAIL PROTECTED]> wrote:
>
>
> I know the following would work if I wanted to copy the values of *each*
>
> to a separate array elemen
I've been in the
> hospital (just had gastric bypass surgery), and I'm finally at home
> recovering. Again, thanks for the wonderful plug-in!
>
> Chris
>
> On Jan 31, 2008 11:01 AM, Jonathan Sharp <[EMAIL PROTECTED]> wrote:
>
> > Hi Chris,
> >
&
Minor typo:
$('class').bind('click', function(){//whatever});
should be .class
-js
On 2/1/08, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote:
>
>
> A good read _ There was a very useful comment about a less known feature
> of jquery: namespacing events.
>
> I've updated the wiki with it:
>
Hi Chris,
Just wanted to give you a heads up, I've released jdMenu 1.4.0 at
http://jdsharp.us/jQuery/plugins/jdMenu/1.4.0 (though I haven't posted
notice of this yet) It's been updated to work with jQuery 1.2.2 and the
latest dimensions plugin.
Cheers,
-Jonathan
On 1/24/08, Chris Jordan <[EMAIL
Love it!
On 1/30/08, motob <[EMAIL PROTECTED]> wrote:
>
>
> Sapitot Creative is a Design firm that recently redesigned their
> website. jQuery is being used to enhance page transitions and to give
> a little flair to the print and web portfolio sections. What is real
> interesting is the unconvent
User is banned.
-js
On 1/30/08, ++ Corn Square ++ <[EMAIL PROTECTED]> wrote:
>
>
> Most Forex traders loose money, don't be one of them
> Forex made easy is as simple as you would want it to be. ...
> Forex can be made easier for beginners to understand it and here's how:-
>
> http://tiniuri
Hi Chris,
I think the issue exists in that you're using jQuery 1.2.1 and the latest
dimensions plugin which have changed since the 1.3 version. The biggest
issues are $(window).innerHeight()/Width() aren't valid. I'm finishing up
the 1.4 release which will be updated for latest jQuery releases.
C
Hi Nathan,
Is this related to jQuery?
Cheers,
-Jonathan
On 1/24/08, cfdvlpr <[EMAIL PROTECTED]> wrote:
>
>
> How do you get shipping quotes from ups? Do you ever have issues with
> ups never returning a shipping rate? If so, what did you do to
> workaround this?
>
Do you have a link to this handy?
Cheers,
-Jonathan
On 1/23/08, cfdvlpr <[EMAIL PROTECTED]> wrote:
>
>
> Does anyone know about how many IE6 users this will affect? After Feb
> 12, 2008 is it likely that your IE 6 users will drop much? If you
> have an ecommerce site that currently has about 4
to go from what I had to what you gave
> me!
>
> Experience i guess :)
>
> Thanks!
>
>
>
> On Jan 23, 4:29 pm, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> > Try: $(this).parents('tr:eq(0)').css('background-color', 'white'
Thanks, updated the entry with a link to that post!
Cheers,
-Jonathan
On 1/23/08, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
>
>
> Jonathan,
>
> >Hey Dan,
> >
> >Great plugin! http://jqueryminute.com/blog/jquery-calculate-plugin/
>
> Thanks! I also blogged a little more information here:
>
>
Try: $(this).parents('tr:eq(0)').css('background-color', 'white');
Cheers,
-Jonathan
On 1/23/08, Mang <[EMAIL PROTECTED]> wrote:
>
>
> I have a fairly simple app:
>
>
>
> ...
>
>
> tr>
> tr>
> tr>
>
>
>
> then the following jquery toggles the src of the images back and forth
>
> $("
You could do something along the lines of:
var rows = [];
$('#srTable > tbody').each(function(i) {
var col = $('.merchantClass', this);
var distance = $('.sortDistance', this);
// Something more
rows.push({row: this, col: col, index: i});
});
If you can change .merchantClass to th
Hey Dan,
Great plugin! http://jqueryminute.com/blog/jquery-calculate-plugin/
Cheers,
-Jonathan
On 1/23/08, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:
>
>
> >I just realized the description text on the page is completely wrong!
> It's
> >for another plug-in and I used that page as a template
Thanks for the positive feedback.
@McLars - thanks for that, it was just a plain old typo.
@Gautam - it's a div with overflow auto. Either way, I completely
agree and I've been in the process of redesigning my blog template.
Stripping it down, and making the main content a lot wider so all the
Have you got a working link you can point us to? It's a little easier
to debug when you've got working demo.
Cheers.
ny is the design of the blog (straight off the shelf)!
- but ignoring that for a moment :-) I'd love to hear your feedback,
suggestions or criticisms.
Many thanks,
Remy Sharp
blog ~ http://remysharp.com
work ~ http://leftlogic.com
Hi Josh,
Most likely you'll have to create a new jQuery object. Take a look at the
slice method to grab your elements:
var divs = $('selector'); // [div1, div2]
var divs = $( [ divs.slice(0, 1), newdiv, divs.slice(1, 2) ] );
// divs = [div1, newdiv, div2]
Cheers,
-Jonathan
On 1/10/08, Josh Nath
Try $('#wrapper').height()
Also please note the difference in your ID's. With the jQuery code you're
referencing 'wrapper' and with the DOM methods you're referencing 'Wrapper'.
Cheers,
-Jonathan
On 1/9/08, nightelf <[EMAIL PROTECTED]> wrote:
>
>
> in firefox
> $('#wrapper').attr('offsetHeight')
Try escaping the colon: $("#itemForm\\:standards select:last")
Cheers,
-Jonathan
On 1/7/08, npetcu <[EMAIL PROTECTED]> wrote:
>
>
> I'm updating some of the legacy software we have at my company and
> changing much of the JavaScript to jQuery. I'm having a bit of
> trouble with a few particular
Also worth noting is that jQuery is not required for this library. It uses
the jQuery namespace (jQuery.aop) but this could easily be changed to work
with non-jQuery implementations.
-js
On 1/7/08, PragueExpat <[EMAIL PROTECTED]> wrote:
>
>
> Surfing dzone.com this morning, I came across this pl
The problem is that you're binding the click event to the projectLink class
on document ready but since no one has clicked the image yet the class isn't
present so there are no elements that match the class selector and thus no
events bound.
You could do something like the code below. This will al
pm, David <[EMAIL PROTECTED]> wrote:
> Nice work, on IE6 the suggested tags are not in the middle of the input
> but are pushed a bit down.
> I noticed a 404 message for the ajax example.
>
> -- David
>
> Remy Sharp schreef:
>
> > I've just posted up a plugi
Hi
Im very new to jQuery, and am very impresed so far.
Im struggling to create my vision of a Tree structured menu, with
nodes that can be edited by the visitor, ie each node should be a
jEditable text element. My troubles have been with combining the
jEditable plugin with the treeview plugin. Can
Hi
Im brand new to jQuery, and so far impressed. I have a vision to
create a tree structured menu, using the treeview plugin, with nodes
that each are editable text elements, using jEditable. So far I have
had some trouble integrating these two plugins, and I am wondering if
it is possible to use
so I'd love to hear from
anyone with feedback.
Thanks,
Remy Sharp.
Hi Nathan,
It's kind of hard to debug your example without knowing the context of the
html and css. Do you have a sample url?
Cheers,
-Jonathan
On 12/19/07, cfdvlpr <[EMAIL PROTECTED]> wrote:
>
>
> if( $.browser.msie && (jQuery.browser.version < 7.) ) {
> $('div##rightShoppingCartButton
It's a best practice to use var a = this to avoid the scope leak that you
mentioned.
Cheers,
-Jonathan
On 12/18/07, Joel Stein <[EMAIL PROTECTED]> wrote:
>
>
> > Also you might want to do "var a = this" so that it doesn't conflict
> with any global variables.
>
> Thanks, Josh. That's what I sus
Hey,
Thanks for the plug.
I'm just adding the final touches to the next article.
I would love to hear if anyone has any suggestions, otherwise I'll
keep wandering near the designers to hear what they're battling with
next.
Cheers.
On Dec 6, 7:50 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> So s
http://www.jasons-toolbox.com/JavaScript/jquery-1.2.1.pack.js 404's..oops!
-js
On Dec 12, 2007 1:58 PM, Jason Levine <[EMAIL PROTECTED]> wrote:
>
>
> This is my first JQuery plugin in awhile. I needed to put up a series of
> "Add To Digg"-style links on the http://www.ShootingForACause.com/20
Also you may want to namespace your elements (like )
as sometimes setting attributes for elements that have attributes can cause
issues. Like setting a value attribute for a caused issues for us in IE
6 when the value was non-numeric
-Jonathan
On Dec 11, 2007 1:03 PM, Jörn Zaefferer <[EMAIL PRO
Hi LT,
I don't think you can force a file download with an Ajax request. You may be
able to (not certain) with an embeded IFrame that has your url as it's
source.
Cheers,
-Jonathan
On Dec 10, 2007 4:06 AM, lagos.tout <[EMAIL PROTECTED]> wrote:
>
> Hi,
> Anyone know how to force the browser to t
$myCollection = $myCollection.not( $myElem );
Cheers,
-Jonathan
On Dec 10, 2007 12:00 PM, George <[EMAIL PROTECTED]> wrote:
>
> Bit of a brain block today, maybe I'm being daft but...
>
> How do we remove the element referenced by $myElem from a list of
> elements in $myElements ?
>
> Scenario:
is not valid. I'm
not sure if your email program did this but it should be:
Cheers,
-js
On Nov 30, 2007 10:41 AM, bludog <[EMAIL PROTECTED]> wrote:
>
> I'm new to jQuery, so please bear with me. I'm putting the jQuery
> logic in a separate file for the jQuery calendar:
>
>
>
*Untested*
Something similar to:
var index = $(this).parent().find('> td').index(this);
-js
On 11/26/07, badtant <[EMAIL PROTECTED]> wrote:
>
>
> Adding a psuedo attribute like "col" with an each function would work.
> I was hoping there would be some smart jquery-function for this.
> Keep sug
.find() only searches down the tree (so child elements of .btn). You may
need some combination of .parents() or .siblings().
Cheers,
-Jonathan
On 11/5/07, nemozob <[EMAIL PROTECTED]> wrote:
>
>
> Hi, I'm trying to target the closets instance of an element with a
> class name target but I'm havin
I'm sure there's a more elegant solution but you could do something like:
// Untested
var about = $( 'selector for the li' ).clone().find('>
ul').remove().end().html();
Cheers,
-Jonathan
On 11/2/07, sawmac <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to select text inside list items. I'm using
>
I'd cast my vote for leaving it out of core for now. The beauty of jQuery is
the leaness of the core. I've had my eye on LiveQuery for quite some time
but haven't had a chance to put it into practice for our enterprise toolkit.
Performance is a major concern but of greater issue is the inconsistenc
SPAM -- please ignore this post, banning user...
On 11/1/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> http://googlyx.com/
>
> hi
> i get this website and i joined here its realy cool give a look
> http://googlyx.com/
>
>
It'd be best to post a link to the sample. Most people won't go through the
time to copy and paste the above code to execute it.
Cheers,
-js
On 10/29/07, Adrian Lynch <[EMAIL PROTECTED]> wrote:
>
>
> I hope this is ok to do. I've just done my first plugin and I thought
> I'd ask for anyone's opi
You're trying to include the file on an unstable DOM. Look at jQuery's
"getScript" method. Unfortunately you'd have to have jQuery loaded to use
it.
Cheers,
-js
On 10/29/07, DMS <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to include jQuery from within another javascript file,
> using this..
>
>
n be found here:
http://remysharp.com/2007/10/25/prototype-and-jquery-going-from-one-to-the-other/
and here:
http://www.slideshare.net/remy.sharp/prototype-jquery-going-from-one-to-the-other
I would very much appreciate any feedback, in particular if there are
any mistakes!
Many thanks,
Remy Sharp.
On 10/19/07, Dave Methvin <[EMAIL PROTECTED]> wrote:
>
>
> > $('#divname').scrollTop( $('#divname')[0].scrollHeight );
>
> I think you meant:
>
> $('#divname')[0].scrollTop( $('#divname')[0].scrollHeight );
Nope, I was utilizing the scrollTop() method from dimensions.
Here's another way that av
I think that would be how prototype would do it. Here's how jQuery would:
$('#divname').scrollTop( $('#divname')[0].scrollHeight );
Cheers,
-js
On 10/16/07, Eric <[EMAIL PROTECTED]> wrote:
>
>
> Hi all,
>
> I have a div that will refresh itself and the scroll bar just won't
> stay down. The sol
You can use hashes (url.php#hash) which won't reload the page.
-js
On 10/18/07, Simpel <[EMAIL PROTECTED]> wrote:
>
>
> Hi
>
> I'm almost certain that this one is impossible but maybe someone out
> there has a solution
>
> We just released a site with a lot of ajax functions and now people
>
On 10/17/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
>
>
> Jonathan Sharp schrieb:
> > I'll take a shot at that as I've been using some custom events in
> > components being built and it'd be a nice behavior to have. And allow
> > for a deco
lay: 20,
>hideDelay: 20
>});
>
> but it didn't seem to move the menu
>
>
> http://groups.google.com/group/jquery-en/browse_thread/thread/4793fc4e34ebb5c1
>
> - Dave
>
> On Oct 17, 1:22 pm, "Jonathan Sharp" <[EMA
I'll take a shot at that as I've been using some custom events in components
being built and it'd be a nice behavior to have. And allow for a decoupling
of callbacks that we have with developers currently.
Cheers,
-js
On 10/17/07, Jörn Zaefferer <[EMAIL PROTECTED]> wrote:
If you're using jquery-1.2+ you can do the following to just wipe out your
events:
$('#BLAH').bind('click.myfn', function() { ... });
$('#BLAH').unbind('click.myfn').bind('click.myfn', function() { ... });
This will only replace your event (myfn can be whatever you want) otherwise
if you do unbin
helps some.
Cheers,
-js
On 10/17/07, Karl Swedberg <[EMAIL PROTECTED]> wrote:
>
> Yikes, you'd never be able to tell from my post below that I used to teach
> English. Sorry if it confused anyone. Here is what I meant to write (with
> corrections inside the asterisks):
&g
$(window)
.bind('testEvent', function(e) {
alert('1');
e.stopPropagation();
e.preventDefault();
return false;
})
.bind('testEvent', function() {
alert('2');
})
.trigger('testEvent');
The above code doesn't stop the testEvent from triggering th
t; - Dave
>
> On Oct 17, 10:09 am, "Jonathan Sharp" <[EMAIL PROTECTED]> wrote:
> > Do you have a URL of a sample page?
> >
> > -js
> >
> > On 10/17/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> >
> >
> >
> >
&g
c). On your web site, you mention the
> plug-in supports relative positioning. Is there an example somewhere
> on the site? I can just model my code off the example.
>
> Thanks for your replies, - Dave
>
> On Oct 17, 9:29 am, "Jonathan Sharp" <[EMAIL PROTECTED]
and bottom) of the
> arrow. It does this for both PC IE and Firefox, although I can't tell
> if the distances are the same. Any advice for relatively lining up
> the menu directly beneath the image?
>
> Thanks, - Dave
>
>
> On Oct 16, 3:56 pm,
age of an arrow
>
> height="16" width="16" />
>
> but when the user rolls over the image, I'd like the source of the
> image to change to something else to indicate the menu is "active".
> How do I do this with jdMenu?
>
> - Dave
>
&
$('ul.jd_menu').jdMenu({
activateDelay: 100
});
Should work, here are the other options:
showDelay: 150 hideDelay: 550
Sorry there isn't any documentation yet.
-js
On 10/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hey Chris, Thanks for this recommendation. One thing I'm noticing
A URL would be helpful for debugging.
-js
On 10/15/07, airslim <[EMAIL PROTECTED]> wrote:
>
>
> Actually it does make sense... but its not working, for my case :
> var jq = jQuery.noConflict(true);
>
> throws an arror with firebug -> "jQuery is not a constructor".
>
>
1 - 100 of 216 matches
Mail list logo