[jQuery] Re: Problems with the New API Browser - Bug in AIR APP

2009-01-18 Thread Remy Sharp
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

[jQuery] Re: Problems with the New API Browser

2009-01-15 Thread Remy Sharp
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

[jQuery] Re: Problems with the New API Browser

2009-01-15 Thread Remy Sharp
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

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-20 Thread Remy Sharp
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

[jQuery] Re: JQuery Selector and Java Script Variable

2008-10-18 Thread Remy Sharp
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

[jQuery] Re: Problems creating a simple "auto-expand" panel

2008-10-13 Thread Remy Sharp
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(

[jQuery] marquee brought back to life with jQuery

2008-09-10 Thread Remy Sharp
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!

[jQuery] Re: Documentation for Version 1.2 (Download)

2008-06-06 Thread Remy Sharp
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

[jQuery] Re: Video Tutorials - any down-loadable ??

2008-06-01 Thread Remy Sharp
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

[jQuery] Re: Xpath and length() doesn't seem to work under IE7?

2008-03-08 Thread Remy Sharp
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

[jQuery] Re: Xpath and length() doesn't seem to work under IE7?

2008-03-06 Thread Remy Sharp
@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

[jQuery] Re: Request for a simple basic Ajax call with loading gif

2008-02-18 Thread Remy Sharp
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

[jQuery] Re: Updated API browser

2008-02-18 Thread Remy Sharp
@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

[jQuery] Updated API browser

2008-02-12 Thread Remy Sharp
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

[jQuery] Re: jQuery for Designers

2008-01-19 Thread Remy Sharp
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

[jQuery] Re: Using setTimeout with a callback (callback appends function content)

2008-01-18 Thread Remy Sharp
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.

[jQuery] jQuery for Designers

2008-01-18 Thread Remy Sharp
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

[jQuery] Re: Plugin: Tag Suggestions

2007-12-29 Thread Remy Sharp
 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

[jQuery] Plugin: Tag Suggestions

2007-12-28 Thread Remy Sharp
so I'd love to hear from anyone with feedback. Thanks, Remy Sharp.

[jQuery] Re: Remy's been hiding something

2007-12-18 Thread 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

[jQuery] Coming to jQuery from Prototype

2007-10-25 Thread Remy Sharp
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.

[jQuery] Re: Catch a click event before the DOM is loaded

2007-10-01 Thread 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

[jQuery] Re: Catch a click event before the DOM is loaded

2007-10-01 Thread Remy Sharp
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

[jQuery] Catch a click event before the DOM is loaded

2007-10-01 Thread Remy Sharp
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

[jQuery] Re: Aaron Gustafson has a great ALA-Article on (Content-)Image Alignment and Consistency

2007-09-27 Thread Remy Sharp
> 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

[jQuery] Re: Aaron Gustafson has a great ALA-Article on (Content-)Image Alignment and Consistency

2007-09-27 Thread Remy Sharp
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' : '

[jQuery] Re: Parent Child Selectors + bind

2007-09-26 Thread Remy Sharp
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

[jQuery] Re: cannot retrieve elements with xpath

2007-09-26 Thread Remy Sharp
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

[jQuery] Re: Does $('input#myId') search for inputs first or is it optimised?

2007-07-26 Thread Remy Sharp
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

[jQuery] Does $('input#myId') search for inputs first or is it optimised?

2007-07-26 Thread Remy Sharp
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'

[jQuery] Re: IE code profiler

2007-07-23 Thread Remy Sharp
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

[jQuery] Re: Jquery doesn't work with mod_rewrite ?

2007-07-22 Thread Remy Sharp
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 <[

[jQuery] Re: Some fun with jQuery

2007-07-07 Thread Remy Sharp
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

[jQuery] Re: Some fun with jQuery

2007-07-06 Thread Remy Sharp
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

[jQuery] Some fun with jQuery

2007-07-06 Thread Remy Sharp
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

[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery

2007-06-05 Thread Remy Sharp
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

[jQuery] Re: NEWS: HTML entity lookup tool built in jQuery

2007-06-04 Thread Remy Sharp
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.

[jQuery] Re: random list item

2007-05-20 Thread Remy Sharp
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

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Remy Sharp
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: > > >

[jQuery] Re: newbie onmouseover onmouseout

2007-05-17 Thread Remy Sharp
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

[jQuery] Re: Convert xml string to dom document

2007-05-17 Thread Remy Sharp
@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

[jQuery] Re: question about the jQuery which is the ext adapter

2007-05-17 Thread Remy Sharp
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.

[jQuery] Re: selecting multiple ids at once

2007-04-24 Thread Remy Sharp
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

[jQuery] WYMEditor just released as jQuery plugin

2007-04-24 Thread Remy Sharp
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/

[jQuery] Re: IE not executing JS loaded on the fly

2007-04-24 Thread Remy Sharp
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

[jQuery] Re: attr('defaultValue') does not exist.

2007-04-23 Thread Remy Sharp
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.

[jQuery] Re: Postpone Link action

2007-04-23 Thread Remy Sharp
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

[jQuery] Re: Recommended way to overload jquery method?

2007-04-23 Thread Remy Sharp
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

[jQuery] Re: Cropping images plugin

2007-04-23 Thread Remy Sharp
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

[jQuery] Re: Image dynamic resizing

2007-04-20 Thread Remy Sharp
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

[jQuery] Performance profiling (in IE in particular)

2007-04-20 Thread Remy Sharp
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

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
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 :) >

[jQuery] Re: Is there an image cropping plugin?

2007-04-20 Thread Remy Sharp
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

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
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/

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
As promised: http://remysharp.com/wp-content/uploads/2007/04/ext_layout.html

[jQuery] Re: Using EXT with Jquery

2007-04-20 Thread Remy Sharp
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

[jQuery] Re: Problem with the fieldselector [EMAIL PROTECTED]

2007-04-19 Thread Remy Sharp
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

[jQuery] Re: Question about tablesorter plugin

2007-04-17 Thread Remy Sharp
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

[jQuery] Re: plugin development

2007-04-17 Thread Remy Sharp
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

[jQuery] Re: jQuery cross-site AJAX-style loading

2007-04-13 Thread Remy Sharp
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

[jQuery] Re: jQuery cross-site AJAX-style loading

2007-04-13 Thread Remy Sharp
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

[jQuery] Re: jQuery cross-site AJAX-style loading

2007-04-12 Thread Remy Sharp
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

[jQuery] Re: Safari and the wrap() method.

2007-04-12 Thread Remy Sharp
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.

[jQuery] Re: Safari and the wrap() method.

2007-04-12 Thread Remy Sharp
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

[jQuery] Re: jQuery Powered Sites - More Sites Added.

2007-04-12 Thread Remy Sharp
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

[jQuery] jQuery's this - a (brief) explanation

2007-04-12 Thread Remy Sharp
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

[jQuery] Re: Help to improve code

2007-04-02 Thread Remy Sharp
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),