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
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!
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
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
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
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
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
so I'd love to hear from
anyone with feedback.
Thanks,
Remy Sharp.
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
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 Oct 1, 9:06 pm, Guy Fraser <[EMAIL PROTECTED]> wrote:
> Couldn't you just use this:
>
> http://jquery.com/plugins/project/elementReady
Not when there are more than a few buttons on the page. This plugin
works fine if your button has a particular Id attached to it, some of
the pages we were wo
It really depends on the solution you're working on. In this
particular case, it would odd if the button had just appeared, and on
some pages there's a button for each row on a large table of data.
Disabling it first then enabling is a better approach, but the
solution I went for, still register
I've recently been working on a project where the page is complex
enough that the DOM would not have loaded before the user had spotted
our 'big red button' - and clicked away.
As much as I hate to admit, this project wasn't going to support a non-
JS version (due to the demographic), so I though
> Is there a reason you didn't replace this.getElementsByTagName?
On the first .getElementsByTagName - there's no particular reason to
justify using jQuery.
However, the second one should really read:
$('p', this).each(...
There really only there because I did a two minute conversion from
Prot
If you're talking about the "If I Told You You Had a Beautiful
Figure..." article, here you go:
function FigureHandler(g, h) {
if (typeof(h) !== 'object') {
var h = { '75-100' : 'full-col',
'67-75' : 'three-quarters-col',
'50-67' : 'two-thirds-col', '34-50' : '
You're binding to 'onfocus' when it should be 'focus':
$("#id1 > [EMAIL PROTECTED]").bind("focus", foo);
On Sep 26, 8:35 am, Anjanesh <[EMAIL PROTECTED]> wrote:
> Hi
>
> I cant get this seem to work
>
> $("#id1 > [EMAIL PROTECTED]").bind("onfocus", foo);
>
> Is there something wrong with the arg
You need to wrap the jQuery in a 'ready' method - otherwise your JS is
running before the DOM is ready:
$(function () {
$("//[EMAIL PROTECTED]'2']").hide();
$("//[EMAIL PROTECTED]'3']").hide();
});
Making this change works.
On Sep 26, 10:45 am, julio <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I h
Cheers for that.
On Jul 26, 11:24 am, "Rob Desbois" <[EMAIL PROTECTED]> wrote:
> It uses document.getElementById("myId") as usual so it's a fast search, but
> it will then check that the returned element is an input, so there is a
> little additional
I should really know this, but I've come to realise I'm not 100% sure.
Does this:
$('input#myId')
...search for all inputs first then narrow down to the ID, or does
jQuery work out before hand that "there can be only one" Id - and
therefore is the same, with respect to processing to:
$('#myId'
I came across the same problem profiling a project I was working on in
IE. IE6 is particularly bad since the scripting engine seems to be
the slowest (sadly at over 50% of the market - it's the most important
browser).
The best thing I could come up with was a timing profiler - which in
the end
Try opening your site in Firefox, open Firebug and click on the
scripts tab - have a look at what the jquery.js file is being served
up as.
It sounds like your mod_rewrite rules may be redirecting the the
request for the jquery.js library to another (wrong) location.
On Jul 22, 10:21 am, Nico <[
ou use to create the demo video on your
> site?
>
> -Marshall
>
> Remy Sharp wrote:
> > Since it's Friday - here's something I made for fun with jQuery:
>
> > Have you ever looked at a picture on the Internet, say on Flickr or
> > Facebook, and thought it
On Jul 6, 4:11 pm, Rey Bango <[EMAIL PROTECTED]> wrote:
> Is the
> bubble only persistent for as long as your browser session?
Hi Ray,
No - that doesn't sound right - as in it's not session dependant.
What's happening is the URL to generate the Speech Bubble is sent to a
tinyurl API I wrote and
Since it's Friday - here's something I made for fun with jQuery:
Have you ever looked at a picture on the Internet, say on Flickr or
Facebook, and thought it would look great with a speech bubble with
your own commentary?
I wrote a jQuery based bookmarklet that allows you add speech bubbles
to a
Thanks for the feedback - I've since upgraded the lookup to include a
'compressed' view (since I figured I wanted that too).
There's some other features like copying the entity to the clipboard
and adding your own keywords to the entity.
http://leftlogic.com/lounge/articles/entity-lookup/
Cheer
Thanks for picking this up guys.
@Andy - I'll add an option over the next couple of days to compress
the output - something that allows you to see more without having to
scroll.
On Jun 4, 3:48 pm, "Andy Matthews" <[EMAIL PROTECTED]> wrote:
> That's VERY nice. Wish the text was a little smaller.
Hi Domnik,
There's a few ways, but this way should also do the trick (assuming
you're targeting an LI):
$('li:nth(' + parseInt(Math.random() * $('li').length) + ')').click();
Let us know how you get on.
On May 20, 4:14 pm, MrNase <[EMAIL PROTECTED]> wrote:
> I have a list with numerous list it
lass("hilite");
>
> });
>
> --John
>
> On 5/17/07, Remy Sharp <[EMAIL PROTECTED]> wrote:
>
>
>
> > I've written a plugin that will fire a mouseout when the mouse leaves
> > the container DIV, rather than moves over a sub-element:
>
> >
I've written a plugin that will fire a mouseout when the mouse leaves
the container DIV, rather than moves over a sub-element:
http://remysharp.com/2007/05/17/true-mouseout-jquery-plugin/
Hope it helps.
On May 16, 1:36 pm, SamCKayak <[EMAIL PROTECTED]> wrote:
> Just getting started...
>
> I hav
@Mike - I actually had that same function for a project I was working
on, and IE plain refused to convert it to a DOM that I could work
with.
In the end, I used a bit of substring parsing to get the contents of
the body, and dumped it in a hidden DIV (thus creating the DOM I
needed):
xml = xml.s
You should continue to write your jQuery as you would normally. If
you think of Ext as a separate bunch of functions then you'll be fine.
The jQuery adapter just means you don't have to include YUI to use Ext
(as you did have to before). The adapter allows you to run Ext off
the back of jQuery.
If I've understood you correctly you want to target more than one
selector, you can just comma separate them:
$('#firstTarget A, .secondTagets A, A.third).doStuff()
On Apr 24, 12:38 pm, "Alexandre Plennevaux" <[EMAIL PROTECTED]>
wrote:
> hello!
>
> Hopefully a simple question, for which i did no
For anyone out there developing CMS's you may have heard of the What
You Mean editor.
It's latest (alpha 0.3) release has seen it converted to a jQuery
plugin making it very quick and easy to drop in to your own CMS.
http://www.wymeditor.org/en/
You should separate out the HTML from the JavaScript - the $.get is
only getting the URL in to the page, I'm fairly sure it doesn't
execute any JS.
You should load the HTML, then load in the JS using something like
$.getScript.
That might help.
On Apr 23, 9:10 pm, "[EMAIL PROTECTED]"
<[EMAIL PR
Hi Michiel,
It sounds like you're able to access the attribute using something
like:
var myVal = document.getElementById('#inputBox').defaultValue; //
similar to the w3cschools example
This is a DOM attribute rather than an XHTML attribute - which is why
the attr method won't return the value.
Hi Kevin,
Assuming your transition is the $('div.box').hide() - then:
$('a').click(function() {
var url = this.href;
$('div.box').hide('slow', function() {
// called once transition is complete
setTimeout(function() { window.location = url; }, 2000); //
redirect 2 seconds after the t
Example of (how I would) overload a function:
jQuery.extend({
_trim: jQuery.trim,
trim: function(s) {
// do something to s first, then you might want to call original
function
this._trim.call(this, s);
}
});
Though if you're thinking of overloading functions like trim, wouldn't
it
Here's my crop plugin if you wantt o have a crack at adopting it:
http://remysharp.com/2007/03/19/a-few-more-jquery-plugins-crop-labelover-and-pluck/#crop
I also wrote a zoom/resize plugin - which you may be able to add to
the mix:
http://remysharp.com/wp-content/uploads/2007/04/zoom.js
Hope t
I've just (like in the last 5 minutes) written a zoom plugin that will
resize the image on the fly when requested.
You could link a slider (Ext?) or input box to change the size and
call the plugin against the image:
http://remysharp.com/wp-content/uploads/2007/04/zoom.js
On Apr 21, 12:21 am, A
I posted a message some time ago on performance profiling and testing
in IE and the best thing available was Firebug Lite which required me
to wrap everything in start/end calls.
I've since written a time library to hook functions to reduce the
amount of work required to performance test.
It wor
April 20, 2007 8:37 AM
> To: jQuery (English)
> Subject: [jQuery] Re: Using EXT with Jquery
>
> Thanks all of you, especially Remy,
> I managed to solve my problem,
>
> thishttp://remysharp.com/wp-content/uploads/2007/04/ext_layout.html
> helped me a lot mate, thanks :)
>
I've written a crop plugin - I'm sure you can extend it to support
resizing the crop on the fly:
http://remysharp.com/2007/03/19/a-few-more-jquery-plugins-crop-labelover-and-pluck/#crop
On Apr 20, 4:43 pm, Kim Johnson <[EMAIL PROTECTED]> wrote:
> Hi folks,
>
> I'm wanting to do the following thi
I also wrote up a short article on my initial play with Ext and the
mistakes I made (it also includes a link the jquery-plugins.js file
that Juha points out is missing):
http://remysharp.com/2007/04/20/jquery-ext/
As promised:
http://remysharp.com/wp-content/uploads/2007/04/ext_layout.html
HI Eli,
I spotted this too - and had a play with Ext and jQuery - though I
couldn't really see how the two were supposed to be linked together.
I did get the same error as you, but it was because I hadn't set up
the underlying HTML properly, i.e. I was telling my page to target
'yui-north' inste
Hi - what browser are you testing this in? I gave it a quick test in
Firefox 2 and it worked fine.
I applied jQuery to this very page and then ran:
var f = 'to';
alert(jQuery("[EMAIL PROTECTED]'" + f + "']").attr('id'));
On Apr 19, 11:14 am, Creazion <[EMAIL PROTECTED]> wrote:
> Hi, I need hel
Hi there,
I had the exact same problem with the table sorter, and I didn't want
to re-load the cache each time the row was removed (I was removing
them from the DOM rather than hiding).
Basically, I found I needed to patch the table sorter to allow a re-
stripe.
The changes I made were as follo
I've got a tutorial here that might help:
http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/
It's simple in that it's a reusable plugin, but it doesn't have any
logic outside of the 'each' loop - which is where you can really beef
up the power of your plugin.
I'm sure there will be
The latest version of xsajax does work in Safari 2 (which should also
work in Safari 1.3)
On Apr 13, 9:39 am, "Ralf S. Engelschall" wrote:
> On Thu, Apr 12, 2007, Ralf S. Engelschall wrote:
> > On Thu, Apr 12, 2007, Jörn Zaefferer wrote:
>
> > > Ralf S. Engelschall schrieb:
> > > > On Thu, Apr
Hi there,
I've looked through the jspax code, and it looks like he's creating an
explicit test once the package is loaded as I suggested initially.
This can can also be achieved without the second script element:
function loadExtScript(src, test, callback) {
var s = document.createElement('scr
I did comment on Ralf's web site, but I thought it would be useful to
know:
The plugin doesn't work in Safari.
The reason it doesn't work in Safari is because the script element
doesn't fire any events when the external library is loaded, and hence
listening for the onreadystatechange doesn't wo
Sorry - I should add the test:
The JS:
$(function() {
$('#test').wrap('');
});
Then standard HTML with a P tag with the ID of 'test' and some dummy
content within it.
I've just giving it a test in Safari 2 - and it works. I'm sure it
works in 1.3 also.
On 12 Apr, 14:08, "Giant Jam Sandwich" <[EMAIL PROTECTED]> wrote:
> Is the wrap() method supported by Safari 1.3 and above? I've been
There's also:
http://www.digitallook.com/
Who are a pretty big UK finance web site.
On 10 Apr, 15:33, Rey Bango <[EMAIL PROTECTED]> wrote:
> Added:
>
> - GameGum Free Flash Games
>
> - ToonGum ToonGum is a flash cartoon community. View, submit, and
> interact with our many flash cartoons and la
Whilst learning jQuery, and whilst teaching other guys I work with, I
found I/they kept getting confused as to what 'this' meant.
So I wrote up a short tutorial entry trying to explain what jQuery's
this meant in different situations.
http://remysharp.com/2007/04/12/jquerys-this-demystified/
To
Hi Joan,
I saw you tested on PC browsers, I can tell you the plugin works in
Safari.
I wrote a crop plugin a little while ago, which doesn't add any new
elements, but uses the background-image attribute to achieve a similar
effect (though IE needed to replace the image with a transparent
image),
67 matches
Mail list logo