[jQuery] mousedown event doesn't happen until mouseup on iPhone

2009-03-08 Thread timothytoe
Is anyone else trying to use jQuery on the iPhone? I'm doing a game using PhoneGap for iPhone and iPod Touch (with the hope of moving on to other phones). Everything was going swimmingly until I tried a mousedown event. Works correctly in PC and Mac versions of Safari, but no event occurs until

[jQuery] Query from an already-found node

2008-11-09 Thread timothytoe
I am a mostly-jQuery, sometimes Dojo user. I just came off a Dojo contract and one thing I ended up using a lot was Dojo's ability to do a query starting at a given node (subtree) of the DOM. Now I'm on a jQuery project and I find that I don't know how to do that in jQuery. Suppose I have done a

[jQuery] Re: Query from an already-found node

2008-11-09 Thread timothytoe
Nevermind. Sat down with jQuery in Action and found two solutions. .find() and adding a parameter to $(). Funny I never did that before in jQuery. On Nov 9, 9:22 am, timothytoe [EMAIL PROTECTED] wrote: I am a mostly-jQuery, sometimes Dojo user. I just came off a Dojo contract and one thing I

[jQuery] Re: Somebody know javascript function?

2008-09-07 Thread timothytoe
There was an earlier discussion: http://groups.google.com/group/jquery-en/browse_thread/thread/4480f62e57bd7e82?tvc=2q=detect+whether+images On Sep 7, 12:58 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi all, i need to know, how can i indicate with javascript if the client browser are

[jQuery] Re: Using AJAX for computation (JS too slow)

2008-09-06 Thread timothytoe
I went the other way, from computations on the server to computations on the client. Here's why: if you have a large number of players, your server costs will become a real problem. But the number of clients available to do calculations expands with the number of players, and client CPU time

[jQuery] Re: jQuery under Konqueror

2008-09-05 Thread timothytoe
That linked page does say, jQuery generally works with Konqueror and Firefox 1.0.x,... But in my experience, it's always a disaster. Maybe it did mostly work with an older jQuery. I think it should be changed to say that jQuery DOES NOT generally work in Konqueror. On Sep 4, 5:23 am, MorningZ

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-05 Thread timothytoe
Is there really a lot of code that relies on it? If there is, wouldn't Chrome break on many more pages? I don't recall seeing any code that assumes an order. --tt On Sep 4, 1:32 pm, Jörn Zaefferer [EMAIL PROTECTED] wrote: Yes, but every other implementation does that, so a lot of code

[jQuery] Re: How to apply jQuery to an item which doesn't exist when the page is loaded.

2008-09-05 Thread timothytoe
Yeah, this doesn't make sense. Either the HTML is served (exists) or it's created on the fly in some way later on by JavaScript. On Sep 5, 8:01 am, S P Arif Sahari Wibowo [EMAIL PROTECTED] wrote: On Fri, 5 Sep 2008, lukas wrote: My PHP code creates a button which doesn't exist when my page

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-04 Thread timothytoe
I don't think many read language specs, but I've heard over and over (in books and online) that you can't rely on the order that you get when you use in to set through keys. I thought that was fairly well known. Nothing in the syntax hints that you'd get them in a certain order. However,

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-03 Thread timothytoe
(arguments.callee);}}) ();void(firebug); On Sep 2, 4:52 pm, Michael Geary [EMAIL PROTECTED] wrote: From timothytoe I'm not 100% sure, but I think you misread Matt's post. Matt seemed to be saying the same thing you are--the order of keys should not be relied upon. If you take out Matt's post

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-03 Thread timothytoe
That was me. I was up all night trying every site I could think of. On Sep 3, 1:38 pm, [EMAIL PROTECTED] wrote: I wonder how come google load pages half the time that firefox 3.0 does ... thats so interesting..right now I use firefox for its firebug and plugins and I use safari 3 because it

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-02 Thread timothytoe
That sounds suspiciously like what Safari does in some cases: http://dreaminginjavascript.wordpress.com/2008/07/06/a-challenge/ On Sep 2, 2:49 pm, Matt Kruse [EMAIL PROTECTED] wrote: On Sep 2, 2:45 pm, Guyon  Morée [EMAIL PROTECTED] wrote: Even though, Chrome seems to be a little bit faster

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-02 Thread timothytoe
I have a very large app that works perfectly in Chrome (with lots of jQuery and jQuery plugs), so the omens are good. One computationally intensive bit takes 14 seconds in FF3 and 7 in Chrome. Amazing. On Sep 2, 12:45 pm, Guyon Morée [EMAIL PROTECTED] wrote: Hi, With all the buzz around the

[jQuery] Re: jQuery test suite on new Google Chrome browser

2008-09-02 Thread timothytoe
I'm not 100% sure, but I think you misread Matt's post. Matt seemed to be saying the same thing you are--the order of keys should not be relied upon. On Sep 2, 4:26 pm, Michael Geary [EMAIL PROTECTED] wrote: Matt Kruse wrote: This appears to be a bad assumption in the jQuery tests.

[jQuery] Re: jQuery History Plugin

2008-07-05 Thread timothytoe
I'm still waiting to find something reasonable. On Jul 5, 3:49 am, [EMAIL PROTECTED] wrote: Did you find the History Plugin which You need I have the same Problem with Bookmarking On May 30, 6:11 pm, timothytoe [EMAIL PROTECTED] wrote: Great. I'll keep my eyes peeled. On May 30, 7:55

[jQuery] Re: I love JQuery but why is it slower than Dojo and ExtJS Core

2008-06-15 Thread timothytoe
Also, the jQuery file only has to be transfered once to each person that used it. Then the browser just uses the cached file. Well, that depends on a lot of things. :-)

[jQuery] Re: [OT] Re: [jQuery] Re: anti IE6

2008-06-11 Thread timothytoe
I recently read a blog post (I think one of the Ajaxian guys) that said maybe the first Monday of the month, we could point out that modern browsers work better. I think an alert would be overkill, unless the site really is unbearable in IE6. But maybe its is about time for a little star or

[jQuery] Re: anti IE6

2008-06-08 Thread timothytoe
Where my brother works, IE6 is mandated by IT. The employees are not allowed to update. I know. Irritating. On Jun 8, 11:55 am, tudorizer [EMAIL PROTECTED] wrote: Made this quick alert box for IE6:http://tudorizer.wordpress.com/2008/06/08/anti-ie6/ For those preistoric guys who want to make

[jQuery] string to JSON and back

2008-06-07 Thread timothytoe
Is there a clever way to do JSON encoding and decoding in jQuery without AJAX and without a form? Does all the serialization in jQuery imply transmission via AJAX? All I want is object - string and string - object.

[jQuery] Re: jQuery History Plugin

2008-05-30 Thread timothytoe
Great. I'll keep my eyes peeled. On May 30, 7:55 am, Klaus Hartl [EMAIL PROTECTED] wrote: On May 30, 1:35 am, timothytoe [EMAIL PROTECTED] wrote: Yes. Oh well. Where should I watch for updates? Will there be an update of history to accommodate UI Tabs? Or is it more likely that UI Tabs

[jQuery] Re: jQuery History Plugin

2008-05-29 Thread timothytoe
/Tabs#Does_UI_Tabs_support_back_button_and_b... --Klaus On May 28, 6:11 pm, timothytoe [EMAIL PROTECTED] wrote: Ajax History doesn't seem to be working for me. I'm including the file (which I've thrown into my jQuery directory... script type=text/javascript src=jQuery

[jQuery] Re: jQuery History Plugin

2008-05-28 Thread timothytoe
Ajax History doesn't seem to be working for me. I'm including the file (which I've thrown into my jQuery directory... script type=text/javascript src=jQuery/ jquery.history_remote.js/script And I've initialized the history (right after document.ready)...

[jQuery] bassistance.de jQuery plugin: Autocomplete

2008-04-02 Thread timothytoe
I've been trying a few different versions of this plug-in. It's nice, but the very first thing I have to do is override the colors. blockquotecodelink rel=stylesheet type=text/css href=jQuery/jquery.autocomplete.css / !-- Override weird colors in css file -- style

[jQuery] Re: bassistance.de jQuery plugin: Autocomplete

2008-04-02 Thread timothytoe
Also, I'm adding entries as list elements to a UL. Is there a clever way to keep someone from adding the same thing twice? On Apr 2, 9:28 am, timothytoe [EMAIL PROTECTED] wrote: I've been trying a few different versions of this plug-in. It's nice, but the very first thing I have to do

[jQuery] Re: Dynamically generated HTML and effects on CSS

2008-03-08 Thread timothytoe
Tricky. If I were you, what I'd try next would be using jQuery's css() to change to rtl in a setTimeout() call. Sounds stupid, but it might help you narrow down the problem. I've had odd problems with browsers not rendering anything until they come up for air, and doing things inside a

[jQuery] Re: callbacks calling callbacks calling callbacks ....

2008-03-08 Thread timothytoe
details about what you're trying to do when you end up with so many callbacks? It sounds like things could be make cleaner using objects and callback methods instead of having tons of nesting code blocks. On Mar 7, 6:41 pm, timothytoe [EMAIL PROTECTED] wrote: I had a case where I had

[jQuery] Re: callbacks calling callbacks calling callbacks ....

2008-03-07 Thread timothytoe
I had a case where I had to wait for n records to come from the server. They all had the same callback, which incremented a counter.and checked to see if this load was the last one. It worked, but I have thought about giving the whole lists of requests to the server at once and having the server

[jQuery] Re: IE8

2008-03-06 Thread timothytoe
Hehe. I _really_ hope the JScript gets faster in upcoming releases. It seems as if their DOM stuff got faster but I haven't checked. On Mar 6, 12:47 am, Michael Stuhr [EMAIL PROTECTED] wrote: timothytoe schrieb: One thing I noticed is that the JavaScript is still painfully slow, but perhaps

[jQuery] Re: IE8

2008-03-06 Thread timothytoe
, s.password); the debugger says, Breaking on JScript runtime error - Permission denied --adam On Mar 6, 9:40 am, timothytoe [EMAIL PROTECTED] wrote: Hehe. I _really_ hope the JScript gets faster in upcoming releases. It seems as if their DOM stuff got faster but I haven't checked. On Mar 6, 12

[jQuery] Re: IE8

2008-03-06 Thread timothytoe
Scratch that. During the long calculation I show a chart to keep people from being bored. It's negligible in FF, but turns out to be a huge cost in IE (using excanvas). So I'm going to only show it in IE 1/4 as often. Still have to give people something to look at. On Mar 6, 6:40 am, timothytoe

[jQuery] IE8

2008-03-05 Thread timothytoe
I was pretty excited to download IE8 today. All the jQuery stuff in my app seems to work fine. The debugger is pretty nice. I've always had trouble finding bugs in IE. Anyone find any IE8 jQuery problems yet?

[jQuery] Re: IE8

2008-03-05 Thread timothytoe
It seemed to overwrite IE7, but it has an IE7 mode. I only did it on one computer. On Mar 5, 1:41 pm, Rey Bango [EMAIL PROTECTED] wrote: Did IE8 overwrite IE7 or can it work standalone? Rey timothytoe wrote: I was pretty excited to download IE8 today. All the jQuery stuff in my app

[jQuery] Re: IE8

2008-03-05 Thread timothytoe
http://www.microsoft.com/windows/products/winfamily/ie/ie8/readiness/Install.htm On Mar 5, 2:52 pm, Benjamin Sterling [EMAIL PROTECTED] wrote: Tim, can you point me to the download link? On 3/5/08, timothytoe [EMAIL PROTECTED] wrote: It seemed to overwrite IE7, but it has an IE7 mode

[jQuery] Re: IE8

2008-03-05 Thread timothytoe
One thing I noticed is that the JavaScript is still painfully slow, but perhaps there is a lot of debug stuff in there slowing it down. What takes 7 seconds in Safari and 8 in Firefox 3b3 takes 25 seconds in IE8! (28 seconds in IE6). On Mar 5, 2:54 pm, timothytoe [EMAIL PROTECTED] wrote: http

[jQuery] Re: jQuery in Action

2008-03-03 Thread timothytoe
I don't think there have been 4 or 5 topics. If there have been, I've missed most of them. I remember one topic where someone was asking about what books to read. And I started a kudos for the jQuery In Action book. If there have been any others, I missed them and I'd like to read them. By the

[jQuery] Re: Function overriding

2008-03-03 Thread timothytoe
You may find this article interesting... http://osteele.com/archives/2006/04/javascript-memoization On Mar 2, 11:50 pm, howa [EMAIL PROTECTED] wrote: Consider I have a simple plugin, e.g. jQuery.example = function(name) { sayHello = function(str) {

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-23 Thread timothytoe
on the differences between those 2 pieces of code... On Feb 23, 2:05 am, timothytoe [EMAIL PROTECTED] wrote: I don't know if there's any practical difference. Maybe someone more knowledgeable can chime it. Perhaps the former ends up being a savings in file size if you have a lot of functions

[jQuery] Re: Why does it take so long for a new topic to be posted?

2008-02-23 Thread timothytoe
That makes sense. But it doesn't negate the fact that 'Google' Groups had funky response yesterday. I hit it several times when 'Google' Groups apologized because the boards were down, and once it came up in what looked like a low-bandwidth version of the 'Google' Groups page. No messages for

[jQuery] Re: Mac OS X default system drag and drop is overriding Interface's drag and drop

2008-02-23 Thread timothytoe
Thanks, Dave. You just gave me a stomach ache. I just fought the browsers for two days to get my interface working with all the mouseup and mousedown stuff. I eventually got it all working, but only on Windows. I have not tested the Mac browsers yet. I'll be interested in what you come up with.

[jQuery] Re: trying to find the first instance of a person's name on the page

2008-02-23 Thread timothytoe
Do you know the list of names? Or are you trying to identify what might be a name on the page (say two words in a row with initial caps)? On Feb 23, 12:35 pm, sspboyd [EMAIL PROTECTED] wrote: Hi Dave, I want to find specific names (I have a list of 320 names in an xml file). I want to scan

[jQuery] jQuery is killing my xhtml strict validation

2008-02-23 Thread timothytoe
Not sure this is 100% jQuery's problem. I do this: $(#logo).html(img src='images/logosmall.gif' alt='logopic' /); But what lands in the browser is this: div id=logoimg src=images/logosmall.gif alt=logopic/div Interestingly, the single quotes have been converted to double quotes and the

[jQuery] Re: jQuery is killing my xhtml strict validation

2008-02-23 Thread timothytoe
the quotes, '/' or other delimiters as each of the elements now exists as a node, not as some textual representation. Karl Rudd On Sun, Feb 24, 2008 at 10:52 AM, timothytoe [EMAIL PROTECTED] wrote: Not sure this is 100% jQuery's problem. I do this: $(#logo).html(img src='images

[jQuery] Re: Break out of a for loop.

2008-02-22 Thread timothytoe
I think you're having trouble with a closure. It's a common problem and I recently got help on it myself. JavaScript looks like C, but it's not C (or Java). You'll probably keep running into this kind of thing until you understand closures, so go ahead and search for javascript closure on

[jQuery] Re: jquery and math functions

2008-02-22 Thread timothytoe
For most simple cases, I use a prefix of a unary plus to convert strings to numbers. It's short. It's easy to read once you're used to doing it. I haven't tested the speed, but it may be faster as well. typeof(1); string typeof(+1); number var startmin = (+$(timestartmin).text() ) || 0; var

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-22 Thread timothytoe
) and mitigate the framerate issues in other ways. It's a shame. No other browser is detrimentally affected in performance by disallowing text selection. If this happens to you, you're not nuts, or at least no more nuts than I am. On Feb 21, 5:08 pm, timothytoe [EMAIL PROTECTED] wrote: Returning false

[jQuery] Re: preventDefault() not working in FF?

2008-02-22 Thread timothytoe
I've just been through this. preventDefault() in mousedown will keep Firefox from selecting text as you drag. This mousemove crap is the only place in my code where I check the browser. I'm sure it depends on the functionality you're trying to block, but for me it worked something like this

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-22 Thread timothytoe
Swedbergwww.englishrules.comwww.learningjquery.com On Feb 22, 2008, at 10:50 AM, timothytoe wrote: I battled ie through the night. Ultimately, it won. There are many ways to address the text selection issue. I found, I think six solutions on the web. I was heavy into capturing the mouse

[jQuery] Re: Break out of a for loop.

2008-02-22 Thread timothytoe
Obviously, There was a typo. Fixed: 1. var i; for (i=0;i5;i++) { setTimeout(function() {alert('first '+i);},5000); } 2. for (i=0;i5;i++) { (function(num) { setTimeout(function() {alert('second '+num);},

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-22 Thread timothytoe
. :-) On Feb 22, 11:06 am, timothytoe [EMAIL PROTECTED] wrote: That's an interesting thing to try. My problem is a bit more severe because the items I am moving are divs that actually have p elements attached to them as labels. Last night I looked at the jQuery solar system... http

[jQuery] Re: preventDefault() not working in FF?

2008-02-22 Thread timothytoe
Did you see my recent thread here? My experience has been nightmarish. On Feb 22, 12:47 pm, jquertil [EMAIL PROTECTED] wrote: TT thanks a lot! for this - it works. Interesting comparison: the jQuery version of my dragger is 23 lines of code inluding all callbacks. The plain javascript

[jQuery] Re: Why does it take so long for a new topic to be posted?

2008-02-22 Thread timothytoe
I think Google had some gas. There was a giant burp of messages a short while ago. On Feb 22, 8:41 am, gh0st [EMAIL PROTECTED] wrote: Why does it take so long for a new topic to be posted? It really is frustrating esp, if you want answers to questions.

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
JavaScript has really expressive ways to call functions. The first parentheses hide the function (make it anonymous) and the second executes the code immediately with the parameter listed. I'm a newbie myself, but I think that means right now, pass the variable jQuery in as $ to the function and

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
able to pass any object as a parameter. A function is an object in JavaScript and can be passed as a parameter. It's very powerful. On Feb 22, 4:39 pm, Nazgulled [EMAIL PROTECTED] wrote: And what exactly it means to hide a function, making it anonymous? timothytoe wrote: JavaScript has really

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
Any time you create a function without a name it's anonymous. Example: window.setTimeout(function() { alert('Hello world!') }, 60); On Feb 22, 4:56 pm, Nazgulled [EMAIL PROTECTED] wrote: timothytoe wrote: The function doesn't have a name, so it doesn't pollute the namespace, and it's great

[jQuery] Re: How do I use my functions with jQuery syntax alike?

2008-02-22 Thread timothytoe
the syntax used of course. I mean, you simply do $.something() or $.test.abc() and it will work no matter if you coded in the first way or second... timothytoe wrote: Any time you create a function without a name it's anonymous. Example: window.setTimeout(function() { alert('Hello world

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-21 Thread timothytoe
false; }; domNode.get(0).onselectstart = function () { return false; }; } - Eli Cochran user interaction developer ETS, UC Berkeley On Feb 20, 5:23 pm, timothytoe [EMAIL PROTECTED] wrote: Thanks. I got it to work with 2 preventDefaults (the one for IE and the one

[jQuery] Tracking mousemove: Position inside a div

2008-02-21 Thread timothytoe
How do I get the position of a mouse within a div when I'm getting events from mousemove? If it helps, I'm already including dimensions.js for the myriad extensions that want it. I understand that I can get pageX or clientX but what I want is X inside that DIV where I have mousemove tracking on..

[jQuery] Re: Tracking mousemove: Position inside a div

2008-02-21 Thread timothytoe
Never mind. The answer has to do with jQuery's $().offset() function. I got it. On Feb 21, 12:05 pm, timothytoe [EMAIL PROTECTED] wrote: How do I get the position of a mouse within a div when I'm getting events from mousemove? If it helps, I'm already including dimensions.js for the myriad

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-21 Thread timothytoe
= function () { return false; }; domNode.get(0).onselectstart = function () { return false; }; } - Eli Cochran user interaction developer ETS, UC Berkeley On Feb 20, 5:23 pm, timothytoe [EMAIL PROTECTED] wrote: Thanks. I got it to work with 2 preventDefaults (the one for IE

[jQuery] Re: How to keep text from being highlighted when I'm handling the mouse events

2008-02-20 Thread timothytoe
. $(#actionSurface).mousemove(function(e){ ... save off current x and y ... ... move shit around return false; --- add this }); -- Josh - Original Message - From: timothytoe [EMAIL PROTECTED] To: jQuery (English) jquery-en@googlegroups.com Sent: Wednesday, February 20, 2008

[jQuery] Re: is there a secret to jQuery with Opera?

2008-02-20 Thread timothytoe
Safari for Windows is a pretty good browser now, especially if you want to have a good idea whether you'll run on Mac Safari (and iPhone). Is there a reason you're not testing with it as well? On Feb 20, 3:45 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Admittedly, the function in question is

[jQuery] Re: is there a secret to jQuery with Opera?

2008-02-20 Thread timothytoe
looks the same in Safari as in Firefox ie (phew!). So what's up with Opera? On Feb 21, 1:54 am, timothytoe [EMAIL PROTECTED] wrote: Safari for Windows is a pretty good browser now, especially if you want to have a good idea whether you'll run on Mac Safari (and iPhone). Is there a reason

[jQuery] Re: Parallax scrolling, background foreground elements

2008-02-18 Thread timothytoe
I remember when Shadow of the Beast came out on the Amiga. Crappy gameplay, but great parallax scrolling. This is a great effect. Old Disney films used this well. Looks like 4 layers there. Anyone look at the code yet? Is there Javascript controlling the positioning or is it all CSS? On Feb

[jQuery] Re: Best plugin for modal dialogs

2008-02-17 Thread timothytoe
Why has dimensions not been dragged into the core jQuery library? So many plug-ins seem to want it that we end up with html files all over the web that ask for dimensions, slowing the loading of the page. On Feb 17, 4:39 am, Nazgulled [EMAIL PROTECTED] wrote: @Eric Martin I took your

[jQuery] Re: Best plugin for modal dialogs

2008-02-17 Thread timothytoe
:26 pm, timothytoe [EMAIL PROTECTED] wrote: Why has dimensions not been dragged into the core jQuery library? So many plug-ins seem to want it that we end up with html files all over the web that ask for dimensions, slowing the loading of the page. On Feb 17, 4:39 am, Nazgulled [EMAIL

[jQuery] Re: what editor do you use?

2008-02-14 Thread timothytoe
I just tried Komodo. Very nifty. I like how it checks JavaScript syntax and does word completion. The jQuery plugin that comes with it is old. Is there a newer one? It also is missing a PHP plugin. Where is the locations for those plugins it uses? Is the Komodo IDE worth the money? Still love

[jQuery] Re: what editor do you use?

2008-02-14 Thread timothytoe
Nevermind about the PHP. It couldn't find my PHP.exe, which was in WAMP5. Still think it's kind of lame that the jQuery support is for jQuery1.1. On Feb 14, 7:30 am, timothytoe [EMAIL PROTECTED] wrote: I just tried Komodo. Very nifty. I like how it checks JavaScript syntax and does word

[jQuery] Choosing an Autocompletion solution

2008-02-13 Thread timothytoe
I searched google for jquery autocompletion and was overwhelmed by the choices. Looks like people have been borrowing heavily back and forth to get the best solution. Has anyone gone through the choices recently and selected one? If so, which did you choose and why? I'd like to use it for both

[jQuery] Re: what editor do you use?

2008-02-13 Thread timothytoe
I tried a bunch and ended up with PSPad.

[jQuery] Re: Announce: Simple Effects Plugins on learningjquery.com

2008-02-13 Thread timothytoe
One thing I've been wondering about animate. Can you create a function for the path that something moves along? On Feb 13, 10:44 am, Karl Swedberg [EMAIL PROTECTED] wrote: Hi everyone, I don't usually announce to this list when I post something on learningjquery.com, but I figured it might

[jQuery] Re: Choosing an Autocompletion solution

2008-02-13 Thread timothytoe
to see future development and support. On Feb 13, 6:47 pm, timothytoe [EMAIL PROTECTED] wrote: I searched google for jquery autocompletion and was overwhelmed by the choices. Looks like people have been borrowing heavily back and forth to get the best solution. Has anyone gone

[jQuery] Re: Firefox 3 beta

2008-02-10 Thread timothytoe
It's good practice to at least know where the danger areas might be in the upcoming browsers. The more people who see these problems, the better chance we have that something crucial (like detection that the page is ready to mess with) doesn't cream a fair number of our scripts. I check my

[jQuery] Re: Is it possible to send javascript vars TO a jquery function??

2008-02-10 Thread timothytoe
This is worth a little more discussion. You're saying that we can use a div to hold variables, then jQuery can naturally deal with them. That kinda blows my mind. I'm not sure it would be very speedy, but it seems very flexible. On Feb 9, 12:41 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On

[jQuery] Re: Is it possible to send javascript vars TO a jquery function??

2008-02-10 Thread timothytoe
Besides the Metadata plugin, there's also a plugin called Collection that looks interesting. http://plugins.jquery.com/project/Collection

[jQuery] Re: Is it possible to send javascript vars TO a jquery function??

2008-02-09 Thread timothytoe
Just what is a jQuery collection that we pass along into jQuery? I feel like I'm missing something to be able to use jQuery for my own data. On Feb 9, 8:43 am, cbmtrx [EMAIL PROTECTED] wrote: Thanks lihao. Actually, there are cases when there would be more than one newdiv following an

[jQuery] Re: JQuery takes 80% of my core2Duo proc on DOM element inserts

2008-02-06 Thread timothytoe
According to that test, array and join is almost 6 times as fast as string concat in my browser (Firefox on Vista). On Feb 6, 4:37 pm, J Moore [EMAIL PROTECTED] wrote: I've heard a few people mention the building an array and then using .join(''). I found that good-old-fashioned string

[jQuery] Re: Fighting a closure

2008-01-31 Thread timothytoe
Thanks for all the examples. I was able to find a couple ways on my own, but I love to see how other people solve these problems so I can learn new techniques. Hardest thing for me when in JavaScript is taking my mind out of C and PHP. Shared syntax is a blessing and a curse.

[jQuery] Re: Fighting a closure

2008-01-31 Thread timothytoe
I ended up using this. I liked it much better than my previous solution (passing in this and then stripping the digit out in the handler). $.each( [0,1,2,3,4], function(index, num) { $(#port+num).click(function() { bigchart(num); }); }); This one is easy for me to read, comprehend, and

[jQuery] Re: Fighting a closure

2008-01-31 Thread timothytoe
'...'c' }); On Jan 31, 3:40 pm, timothytoe [EMAIL PROTECTED] wrote: $.each( [0,1,2,3,4], function(index, num) { $(#port+num).click(function() { bigchart(num); }); }); Wait. What's the index in there for. I don't need that, do I? Seems to work fine without it. I'll assume

[jQuery] Fighting a closure

2008-01-30 Thread timothytoe
This code works... $(#port0).click(function() {bigchart(0)}); $(#port1).click(function() {bigchart(1)}); $(#port2).click(function() {bigchart(2)}); $(#port3).click(function() {bigchart(3)}); $(#port4).click(function() {bigchart(4)}); Naturally, I want to do this: var

[jQuery] Fighting a closure

2008-01-30 Thread timothytoe
I think I submitted a half-done version of this message by accident a few minutes ago. Sorry. This works: $(#port0).click(function() {bigchart(0)}); $(#port1).click(function() {bigchart(1)}); $(#port2).click(function() {bigchart(2)}); $(#port3).click(function() {bigchart(3)});

[jQuery] Re: help optimizing code

2008-01-19 Thread timothytoe
Have you tried Firebug's profiler? That's what I use. On Jan 19, 12:39 pm, cjl [EMAIL PROTECTED] wrote: Is there any way to 'profile' the javascript as I try to optimize it, to find out where the slow bits are? -CJL

[jQuery] Re: help optimizing code

2008-01-19 Thread timothytoe
If Firebug is new to you, you're about to fall in love. Be sure to check out the various online tutorials. On Jan 19, 5:03 pm, cjl [EMAIL PROTECTED] wrote: Also, TT, thank you, firebug is exactly what I was looking for! -CJL

[jQuery] Re: Horizontal mouse scroll wheel

2008-01-17 Thread timothytoe
It would be cool if shift-mousewheel or alt-mousewheel did that. The trick is you'd always have to tell the user how to do it. The touchpad on my laptop allows horizontal scrolling if you drag left- and-right along the bottom of the page, so it would be nice if jQuery could pick that up. And my

[jQuery] Re: OT: Networking Vista Home/Home Premium and Leopard

2008-01-17 Thread timothytoe
I ended up upgrading my Vista computer to XP. On Jan 17, 4:33 pm, Rick Faircloth [EMAIL PROTECTED] wrote: Or an even better solution (if it works in your case) might be this approach rather than totally diabling the UAC:

[jQuery] Re: Reverse IP Lookup

2008-01-17 Thread timothytoe
It's reasonably easy to get it down to a zipcode. But beyond that I don't think it's possible. IPs are way too dynamic. --tt On Jan 17, 6:12 pm, Glen Lipka [EMAIL PROTECTED] wrote: Sorry, research on this topic has just left me desperate. I need to find a commercial company that provides a

[jQuery] Re: 1.2.2 Released 20 minutes ago

2008-01-15 Thread timothytoe
Beta testers: How stable is this? Should I switch from 1.2.1 yet? On Jan 14, 8:23 pm, Up-Works [EMAIL PROTECTED] wrote: http://code.google.com/p/jqueryjs/downloads/detail?name=jquery-1.2.2

[jQuery] Re: [ANNOUNCE] Cornerz - Bullet Proof Curved Corners using Canvas/VML

2008-01-08 Thread timothytoe
What problems are you having specifically? I know there is a subpixel rendering problem. I'm assuming the subpixel rendering is what is causing the ugly black lines on the left and right side of the border:1 display: inline example. I'd probably use this if the IE problem gets fixed. Very

[jQuery] Consideration for processor-intensive JavaScript jQuery applications

2008-01-07 Thread timothytoe
I have a JS app that does a lot of calculations. I'm having trouble keeping the browser responsive. My current solution is to take apart loops that last a long time and make them into functions that call themselves with setTimeout(). (As far as I can tell, you HAVE to do this to keep the browser

[jQuery] Re: Processor-intensive JavaScript considerations

2008-01-07 Thread timothytoe
Somehow I missed you reply and started another similar thread today. Sorry. I'm still getting used to Google Groups.

[jQuery] Processor-intensive JavaScript considerations

2008-01-05 Thread timothytoe
I have an application that is very processor-intensive. It can takes up to a minute to run. In order to keep the browser from bringing up a dialog that asks the user if he or she wants to bail, I break the work into chunks that are chained together with setTimout(). I'm having trouble getting

[jQuery] Re: Debug Tools - Charles, DebugBar, Firebug Lite

2008-01-04 Thread timothytoe
Chicks dig it. On Jan 3, 4:17 pm, Rick Faircloth [EMAIL PROTECTED] wrote: Ream Men just have to know... How does developing in FF increase you reproductivity ? :o) Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Eridius

[jQuery] Re: Debug Tools - Charles, DebugBar, Firebug Lite

2008-01-03 Thread timothytoe
There is a three-IE package, I believe, that runs multiple IEs under Wine in Linux. I know that a few people use that. --TT On Jan 3, 3:07 pm, cfdvlpr [EMAIL PROTECTED] wrote: How do you test in both IE 6 and IE 7? Are you able to install both these on the same machine or do you have more

[jQuery] Re: Debug Tools - Charles, DebugBar, Firebug Lite

2008-01-03 Thread timothytoe
Who are the 1.6% of people using IE5? Do those people actually expect Web 2.0 sites to work?

[jQuery] Re: Debug Tools - Charles, DebugBar, Firebug Lite

2008-01-03 Thread timothytoe
It's silly to rail against standards. Yes, we still have to support IE6. But IE8 is moving towards standards compliance and eventually that's what we'll be writing for. We know how this game works. New features show up in new browsers, but we can't use them for a few years until the new browsers