[jQuery] Re: Odd behavior calling height() or width() on a page with flash content

2008-01-07 Thread Tobias Parent

Yep, that did it. I guess it'd be a good idea to keep up to date on
the changelogs...

Thanks, Karl!

 - Toby


[jQuery] Odd behavior calling height() or width() on a page with flash content

2008-01-07 Thread Tobias Parent

OK, this is strange, at best. I'm trying to use the clueTip plugin for
some titles on a page that plays video content in a flash player, in
the event that the title has exceeded a given length. clueTip works
fine, but it's triggering a redraw of the flash content in FF. Working
fine in IE.

I think I've narrowed the problem down somewhat - in testing, I can
check the height() / width() of pre-existing content, but if I create
a div and check its height() / width(), the redraw is triggered.

Am I going slowly mad, or is this something anybody else has seen?


[jQuery] Re: ANNOUNCE: tinyEdit v.1.0 plugin for jQuery released

2007-11-13 Thread Tobias Parent


Heck, I was able to do ong>He>ello - 
how's THAT for messed up?!

-Toby

Jake McGraw wrote:

Any way to include detection for invalid inserts? I was able to do the
following:

Hello, world

to

Hello, world

Perhaps a recursive tag count on insert?

- jake

  




[jQuery] Re: Powered by jQuery -- ActiveState?!

2007-11-12 Thread Tobias Parent


...  Very well! (ba-dum TSHCH!)

Actually, it's a greasemonkey Scriptlet that simply checks for the 
existence of a jquery object, and if it finds one, creates a div 
displaying the jquery logo. Let me see if I can remember where I found 
it - or look at last week's discussions of sites powered by jQuery.


Rey posted about it about a week ago (Nov. 6, to be exact), look for the 
thread titled "jQuery Site Detection Greasemonkey Script".


Regards!
-Toby

Glen Lipka wrote:

How does the sniffer work?

Glen

On Nov 12, 2007 12:28 PM, Tobias Parent <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:



so I'm surfing around, and I've put the jQuery sniffer on for fun
-- and
ActiveState pops up the sniffer-generated logo!

I mean, how cool is that?!
 -Toby






[jQuery] Powered by jQuery -- ActiveState?!

2007-11-12 Thread Tobias Parent


so I'm surfing around, and I've put the jQuery sniffer on for fun -- and 
ActiveState pops up the sniffer-generated logo!


I mean, how cool is that?!
-Toby


[jQuery] Re: Can jquery do this?

2007-11-06 Thread Tobias Parent


Thickbox and an iFrame linking to a secure page would do the same thing. 
If https was the issue, that would do it - in fact, that's pretty much 
all they're doing - pop up a div, insert an iframe, populate that with 
the link - yeah, jQuery could front-end that, as long as you've got a 
server that can handle the back end.


Regards,
-toby p.

Josh Nathanson wrote:


You could do it pretty easily using jqModal or any other of the modal 
jQuery plugins.  There is nothing overly secure about that one, it 
just uses a captcha like many other contact forms.


-- Josh


- Original Message - From: "marlyred" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, November 06, 2007 11:01 AM
Subject: [jQuery] Can jquery do this?





This contact form looks really cool and I would love to use something 
like it

on one of my websites.
http://www.scriptdojo.com/mycontactstation-secure-contact-form/

Has anyone come up with something like this using jquery?

I have been on a quest to find a secure ajax contact form and have 
found a

few examples on the internet using other js libraries (mootools etc) but
have yet to find one powered by jquery.  Have I been looking in the 
wrong

places?
--
View this message in context: 
http://www.nabble.com/Can-jquery-do-this--tf4760290s27240.html#a13613559
Sent from the jQuery General Discussion mailing list archive at 
Nabble.com.









[jQuery] Re: Scripts at the bottom of the page

2007-11-06 Thread Tobias Parent


I'm writing a scriptLoader applet, runnning on $(document).ready(), 
which: a) checks if a script has been loaded and b) if not, loads it as 
needed. I think this will help some, and it's following along with the 
whole plugin registry idea.


marlyred wrote:

I place all my scripts at the bottom of my pages, just before the closing
body tag.

I think it definitely helps to stop the vsistor clicking the back button as
they can see the information they came for immediately whilst in the
background the javascript is loading.

  




[jQuery] Re: manipulation on content results in text you can't trigger events with

2007-11-01 Thread Tobias Parent


Well, you've attached the event, then gone ahead and created more divs 
and expect them to be forward-attached. You may want to look at 
something like LiveQuery.


Regards,
-Toby P.

MajorXP wrote:

I'm sure this was covered somewhere, but I can't find it.  I'm
struggling with some code and rather than try to explain it, first
look at this code.  It should be simple to follow, but when you run it
- it doesn't work as intended.

--


  Pop Test
  



  $(document).ready(function(){
var i=10;
for (i;i>=1;i--) {
 $('#start').after("");
}

$('.popup').click(function(){
  alert(this.id);
  return false;
});

i=10;
for (i;i>=5;i--) {
 $('#'+i).after("").remove();
}
  });


Hard code #1
Hard code #2


--

As you can see, the new text does not fire the click event when
clicked.  I'm sure it is because it is located after the popup alert
code.

All that said, how would you generate new text and allow events to be
fired?  I'm grabbing text from a database and updating it.  I'd like
to have a popup on click.


  




[jQuery] Re: [NEWS] Site Using jQuery: TurboTax.com

2007-11-01 Thread Tobias Parent


WLee Hinde wrote:

On 10/31/07, Guy Fraser <[EMAIL PROTECTED]> wrote:
  

Lee Hinde wrote:


http://cherne.net/brian/resources/jquery.hoverIntent.html

On 10/31/07, Guy Fraser <[EMAIL PROTECTED]> wrote:

  

 That rocks! I love the use of hover intent on the basic/delux/etc panels -
which plugin was used to do that?



Oops - I should have been more specific - what plugin is used to "zoom
out" the panels when you hover over them? I particularly like the way
the text scales smoothly. There's so much JS used on that site that I
can't see the college for the fish :s



My skill set ends at reading the html source. :-)

  
If you have Firebug installed (and you should, if you're a developer at 
ANY level!), click on the 'Script' tab, then just above the 'Script' you 
should see jQuery.js&session_id=XX... Click on that and switch to 
events_global.js - that shows what you're looking for, I think.

-Toby P.


[jQuery] Re: Thickbox $().load error

2007-10-29 Thread Tobias Parent



Christopher wrote:

Ad4m,  did you ever find out what was giving you issues?

I just added thickbox to a project, and i too am getting this error.
Doing a search on google led me here and no where else.  Just curious
if you or someone else knows how to remedy this issue.

  
 Hey, all - I think I figured this one out. At least, it's working so 
far. If some more testing can occur, it'd be really useful, but for now, 
I'm working and on to the next bug-squashing session...


Are you using the  around your javascript on the loaded 
page? If so, remove them. That appears to be the issue, whether in an 
iFrame or not. As soon as I pulled those out, BAM! everything is playing 
nicely. Makes no sense, but hey! That's IE6! ech...


Regards!
- Toby P.


[jQuery] Re: detailed balloon?

2007-10-28 Thread Tobias Parent


[EMAIL PROTECTED] wrote:

hi,

Does jQuery have something similar to this?

http://www.netflix.com/BrowseSelection?sgid=307

It pops up a balloon over a image.

A.C.


  
Wow - disregard my reply, I was completely off the mark. However, it 
would be pretty easy to make something like that happen with jQuery, 
either by toggling a div on hover.


Sorry about that...
-Toby P.



[jQuery] Re: detailed balloon?

2007-10-28 Thread Tobias Parent


[EMAIL PROTECTED] wrote:

hi,

Does jQuery have something similar to this?

http://www.netflix.com/BrowseSelection?sgid=307

It pops up a balloon over a image.

A.C.


  

How 'bout this?
http://leftlogic.com/lounge/articles/speech-bubbles/

Don't know if it's exactly the same, but it's pretty durn cool!

-Toby


[jQuery] Re: Weird Tabs Question

2007-10-28 Thread Tobias Parent


Karl Swedberg wrote:



On Oct 28, 2007, at 5:14 PM, Tobias Parent wrote:

Thanks, Klaus - and I really enjoyed your presentation at jQueryCamp 
'07 yesterday! They were all very informative. I'm on information 
overload just now!



Regards!

-Toby P.



Hi Toby,

Klaus wasn't able to make it to jQueryCamp yesterday. Perhaps you were 
thinking of Jörn Zaefferer or Paul Bakaus? There were so many 
presentations that it was hard to keep track of all the good stuff, 
for sure. :)


--Karl
_
Karl Swedberg
www.englishrules.com
www.learningjquery.com


Yep, I must have been thinking of Paul - I was floored by the future of 
the UI. Also, that Canvas thing was amazing - I haven't explored Canvas 
as much as I'd like, but after that, I can see some of my own UI 
functionality coming out of that!


Thanks, Karl, for straightening me out, and Klaus - thanks for the 
direction. It worked like a charm!!

-Toby


[jQuery] Re: Weird Tabs Question

2007-10-28 Thread Tobias Parent


Klaus Hartl wrote:

Tobias Parent schrieb:
  

Hey, all -

  I've got a strange situation going on with tabs: The first tab in the
list needs to be a 'Show All Links' tab (which will display all of the
other tabs in one long list).

  The thing is, using something like this:

-=-=-=-=-=-=-=-=-=-=-=-=-=-

var tabPanel = jQuery(this);
var tabPanelBar = tabPanel.children(":first");
var tabPanelTabs = tabPanel.children(":not(:first)");

tabPanelBar.children(":first").bind("click", function() {
jQuery(this).addClass('active').nextAll().removeClass('active');
showAllTabs();
return false;
});
tabPanelBar.children(":not(:first)").children().bind("click",
function() {
//$.log(jQuery(this).children(":first").html());
alert(jQuery(this).children(":first").html());
tabId = jQuery(this).children(":first").html();
jQuery(this).addClass('active').siblings().removeClass('active');
switchTabs(tabId);
return false;
});

-=-=-=-=-=-=-=-=-=-=-=-=-=-
... which works fine in FireFox, won't work at all in IE6 or Safari. I
think the problem is the :first selector isn't being understood in those
two, but I'm not sure. Looking for input and guidance.

 Again, the tricky bit is that a.) it has to work in Safari/IE6, and
that the first tab has to show all tabs. I tried using the tabs UI
plugin, but I can't figure out how to trick it into ignoring the first
tab, so I can manually force that one to do what I want.

 Thanks!
 -Toby P.



Don't know about your problem, but if you give the UI Tabs another
try, you can utilize the click callback. If that callback returns
false, the tab click gets aborted. So you would have to return false
only in case of the first tab gets clicked:

var $tabs = $('#example').tabs({
click: function() {
if ($tabs.tabsSelected() == 1) return false;
}
});


--Klaus


  
Thanks, Klaus - and I really enjoyed your presentation at jQueryCamp '07 
yesterday! They were all very informative. I'm on information overload 
just now!


Regards!
-Toby P.


[jQuery] Weird Tabs Question

2007-10-28 Thread Tobias Parent


Hey, all -

 I've got a strange situation going on with tabs: The first tab in the 
list needs to be a 'Show All Links' tab (which will display all of the 
other tabs in one long list).


 The thing is, using something like this:

-=-=-=-=-=-=-=-=-=-=-=-=-=-

   var tabPanel = jQuery(this);
   var tabPanelBar = tabPanel.children(":first");
   var tabPanelTabs = tabPanel.children(":not(:first)");

   tabPanelBar.children(":first").bind("click", function() {
   jQuery(this).addClass('active').nextAll().removeClass('active');
   showAllTabs();
   return false;
   });
   tabPanelBar.children(":not(:first)").children().bind("click", 
function() {

   //$.log(jQuery(this).children(":first").html());
   alert(jQuery(this).children(":first").html());
   tabId = jQuery(this).children(":first").html();
   jQuery(this).addClass('active').siblings().removeClass('active');
   switchTabs(tabId);
   return false;
   });

-=-=-=-=-=-=-=-=-=-=-=-=-=-
... which works fine in FireFox, won't work at all in IE6 or Safari. I 
think the problem is the :first selector isn't being understood in those 
two, but I'm not sure. Looking for input and guidance.


Again, the tricky bit is that a.) it has to work in Safari/IE6, and 
that the first tab has to show all tabs. I tried using the tabs UI 
plugin, but I can't figure out how to trick it into ignoring the first 
tab, so I can manually force that one to do what I want.


Thanks!
-Toby P.


[jQuery] Re: jqModal and the "ESC" key?

2007-10-25 Thread Tobias Parent


Don't see why not - all you have to do is, when the jqModal is 
displayed, bind the keypress and detect they keyCode for the esc key. 
Here's the code I'm using:


document.onkeydown = function(e){
 if (e == null) { // ie
   keycode = event.keyCode;
 } else { // mozilla
   keycode = e.which;
 }
 if(keycode == 27){ // escape, close box
   tb_remove();
 } else if(keycode==13) { // return, submit form
   signMeUp();
 }
document.onkeydown = function(e){
 if (e == null) { // ie
   keycode = event.keyCode;
 } else { // mozilla
   keycode = e.which;
 }
 if(keycode == 27){ // escape, close box
   tb_remove();
 } else if(keycode==13) { // return, submit form
   signMeUp();
 }


The full version, working mostly, is running at http://www.questmin.org/ 
- simply click on the 'email list' link on the bottom of the page.


Hope this helps!
-Toby
};};


will wrote:

Is there a way to get jqModal dialogs to hide when you hit the escape
key?

Thanks,
Will


  




[jQuery] Re: .hover() issue

2007-10-22 Thread Tobias Parent


Well, this isn't the prettiest way of doing it, and it isn't formatted 
to be a plugin, but this works:


   $(document).ready(function() {
   $(".HP_Column1").hover( expand, contract );
   });
   
   function expand() {

 $(".HP_Column1").unbind("hover");
 $(".HP_Column1").animate({width: 525}, 1500, function() { 
$(this).hover(expand, contract); });

   };
   
   function contract() {

 $(".HP_Column1").unbind("hover");
 $(".HP_Column1").animate({width: 325}, 1500, function() { 
$(this).hover(expand, contract); });

   };

The reason this works is that, when you hover,  this immediately 
disconnects the hover until the animation is completed. Then, it simply 
reconnects the hover again. I haven't tested it completely (I'm on a 
very old iBook G4, my testing options are limited), but it does work on 
this machine.


Regards!
-Toby

Shloime wrote:

Hi,

I came across a weird situation. I would appreciate if someone can
help me figure out a way to prevent this.

Please see my sample page at http://www.rabbihorowitz.com/index_new2.cfm.
The way this is supposed to work is that when you hover over the red
column it animates and expands over the green column and contracts
back when you remove your mouse.

But I found that (in Firefox) if you put your mouse over the red
(which starts the animation) and then you quickly move your mouse over
the green area before it gets covered, the animation will go into this
silly loop where it will expand and contract continuously for as long
as you leave your mouse in the green area (in IE it will stop after a
few loops but in FF it goes on forever). How can I prevent this from
happening?

Thanks,
Shloime


  




[jQuery] Re: New to jQuery, question on accessing form elements in nested HTML documents

2007-10-22 Thread Tobias Parent


I'd suggest looking at the LiveQuery jQuery plugin. It allows you, at a 
later time, to connect with dynamically-generated content and attach 
events to them.


Regards!
-Toby

jmcintyre_jdg wrote:

I have a form that lives in its own HTML file. If I load the jQuery
library into the page, I can assign click handlers to buttons on the
form, no problem, by putting them in the $(document).ready function
like this:

$(document).ready(function(){
  alert('document is ready'); // just seeing if we're awake
  $('#btnsubmit').click(function() {
alert('submit was clicked'); // we ought to see this every time
return false;
  });
});

That page works fine standalone in a browser... However, if I load
that HTML file into an ThickBox on another page, the click handlers no
longer work. I see the alert message telling me that $(document).ready
is called, but the code inside the click handler is not executed.

Would I have to define the handlers in the outer HTML document for
this to work?

TIA,
Jim


  




[jQuery] Re: Cycle Plugin questions - prev/next as a callable function of cycle?

2007-10-22 Thread Tobias Parent


I keep answering my own questions!! I ask, I bust something, I try a few 
things... and it WORKS!


I have the next/prev running through the cycle plugin, as normal, but I 
also have a function called on the click of my next/prev buttons 
(apparently, one function attached isn't disconnecting another!). So, 
for today, it works. More than that would be superfluous.


Thanks!
-Toby

Tobias Parent wrote:
 OK, so I've got the cycle plugin working beautifully, and I created 
my own hover pause utility, as it needed to integrate with a separate 
pause button. Working wonderfully. However...


 Now, I'm trying to set it so that, when a prev/next button are 
clicked, the player advances/rewinds as it should (which works), but 
on a forced advance/rewind, I'd like to be able to pause the player.


 I'm looking at the source, to see if I can add a .cycle("ffwd") and 
.cycle("rewind"), similar to the .cycle("pause") and .cycle("resume") 
- but if someone has advice on an easy way to do this, I'd be grateful!


Thanks!
-Toby
 AIM: tobyParent
 [EMAIL PROTECTED]






[jQuery] Cycle Plugin questions - prev/next as a callable function of cycle?

2007-10-22 Thread Tobias Parent

  OK, so I've got the cycle plugin working beautifully, and I created my 
own hover pause utility, as it needed to integrate with a separate pause 
button. Working wonderfully. However...

  Now, I'm trying to set it so that, when a prev/next button are 
clicked, the player advances/rewinds as it should (which works), but on 
a forced advance/rewind, I'd like to be able to pause the player.

  I'm looking at the source, to see if I can add a .cycle("ffwd") and 
.cycle("rewind"), similar to the .cycle("pause") and .cycle("resume") - 
but if someone has advice on an easy way to do this, I'd be grateful!

 Thanks!
 -Toby
  AIM: tobyParent
  [EMAIL PROTECTED]



[jQuery] Re: Can the cycle plugin return an index?

2007-10-21 Thread Tobias Parent
Never mind, I answered my own question. For those who may need to know, 
you can use the index() call, so long as you provide a context. For example:


var myPlayerWindow = $("#my-player-window");
myPlayerWindow.cycle({after: afterSwitch});

function afterSwitch(incoming, outgoing, options) {
   $.debug(myPlayerWindow.children().index(incoming) );
  
   // or, in my case...

   $("#slide-position").html(myPlayerWindow.children().index(incoming)+1);
}


Hope this helps someone else down the line!

-Toby
 AIM: tobyParent
 [EMAIL PROTECTED]
--- Begin Message ---

Hey, gang -

I've got the cycle plugin working, just great, it's a beautiful thing. 
However, I have a after callback that needs to get the index of the 
currently displayed slide. Basically, it's displaying %% of %%% (for 
those who've got an RPG-II background...). I need to show what number of 
the current total we're on.


Any ideas or suggestions, or do I go back to the drawing board?

Thanks!
- Toby
  AIM: tobyParent
  [EMAIL PROTECTED]

--- End Message ---


[jQuery] Can the cycle plugin return an index?

2007-10-21 Thread Tobias Parent


Hey, gang -

I've got the cycle plugin working, just great, it's a beautiful thing. 
However, I have a after callback that needs to get the index of the 
currently displayed slide. Basically, it's displaying %% of %%% (for 
those who've got an RPG-II background...). I need to show what number of 
the current total we're on.


Any ideas or suggestions, or do I go back to the drawing board?

Thanks!
- Toby
  AIM: tobyParent
  [EMAIL PROTECTED]


[jQuery] Re: Beginner problem: Link is not working (JQuery Cycle Plugin)

2007-10-16 Thread Tobias Parent


First off, your links HREF attribute points to a non-existent in-page 
anchor point. Secondly, you could simply access the href attribute of 
the clicked link via $this->href() and flow that into the content area 
you want.


Good luck!
-Toby

tlob wrote:

Mike: That is exactly, whats happening. Can you explain me, why the
anchor is prevented by the toggle function? It's basic stuff I dont
get, right? How can I solve it? I want to keep the toggle and the
anchor. Dont give me to code, I am eager to lern. Just put my in the
right direction.

Thanks a lot!

Tom

On Oct 16, 12:25 am, "Mike Alsup" <[EMAIL PROTECTED]> wrote:
  

Tom,

"toggle" prevents the default event action so the anchor is not
followed when you click it.

Mike

On 10/12/07, tlob <[EMAIL PROTECTED]> wrote:





Hello
  
I am working with the fantastic JQuery Cycle Plugin. Thank you very

much for creating such great librarys!
I am almost there But I have a very basic problem.
Start/stopping the slideshow is fine with click on thumbnails/pictures/
slideshow.
But when you click on the thumbnails, the link is not working.
  
http://siggibucher.com/preview/test.php
  
1. I dont understand why. Can you explain that?

2. How can I change that? ;-)
  
THX in advance, have a nice weekend

tom
  



  




[jQuery] Re: Beginner problem: Link is not working (JQuery Cycle Plugin)

2007-10-15 Thread Tobias Parent


Umm... What exactly do you mean by the link is not working? The href 
points to a non-existent in-page anchor point, but it *is* doing what 
you're asking, by toggling the slideshow on and off. I'm assuming you 
want to point the slideshow to the appropriate clicked image, right? In 
this case, you might want to get the index of the anchor (not sure how), 
then cycle to the appropriate li (i.e., with the matching index).


Purely hypothetical, but that's what I'm seeing.
-Toby

tlob wrote:

anyone?

On Oct 12, 3:16 pm, tlob <[EMAIL PROTECTED]> wrote:
  

Hello

I am working with the fantastic JQuery Cycle Plugin. Thank you very
much for creating such great librarys!
I am almost there But I have a very basic problem.
Start/stopping the slideshow is fine with click on thumbnails/pictures/
slideshow.
But when you click on the thumbnails, the link is not working.

http://siggibucher.com/preview/test.php

1. I dont understand why. Can you explain that?
2. How can I change that? ;-)

THX in advance, have a nice weekend
tom




  




[jQuery] Re: Setting a number of DIVs to the same height... I'm just not quite there...

2007-10-03 Thread Tobias Parent


Yep, that did it!

Thanks, Glen.

Glen Lipka wrote:

http://michael.futreal.com/jquery/vjustify
or http://spindrop.us/2007/05/22/equal-height-columns-with-jquery/

Glen


[jQuery] Setting a number of DIVs to the same height... I'm just not quite there...

2007-10-03 Thread Tobias Parent

Hey, all!

 I've got a site in process, and I'm trying to figure something out. I'm 
using the Cycle plugin, and I'd like to try to set a number of DIVs to 
the height of the largest. To see what I've got, click 
http://www.questmin.org/pages/courses <-- that link, and watch the 
course descriptions on the right. The bottom of the longest divs are 
showing through.

 Thanks!
 -Toby


[jQuery] Round button... ?!

2007-08-17 Thread Tobias Parent


Hey, all -

I'm trying to create an UNOBTRUSIVE JAVASCRIPT routine to replace links 
in a navigation menu with button graphics. All good, so far, but I'd 
like to make the buttons .png files, with an alpha transparency, and the 
color changeable via javascript. Thus far, I have a canvas that is being 
populated with my png, the rounded rectangle being drawn behind it in 
the chosen color, all good.


I'm trying to figure the next step - cross-browser, and automatic. For 
example, I'd like to make it like so: $("navLinks 
a").buttonize({"backgroundColor":"red"}), and automatically remove the 
text and replace with the canvas, fully prettied up. Is this possible?


What I have so far is at: 
http://tobias.parentleafarm.com/projects/roundButtonTest/


thanks!
-Toby


[jQuery] Re: What does "Unobtrusive Javascript" mean?

2007-08-16 Thread Tobias Parent


Hey, Pops -

I'm actually getting ready to do a presentation on this - Unobtrusive 
Javascript and CSS. See, when a page is designed through MS-Word, for 
example, the CSS styles are embedded directly in the page (usually, 
directly in the element itself). This works, but it's ugly and not 
easily extensible.


The same applies to Javascript - if you've got a link, for example, 
with href="javascript:alert('foo');" in it, it's hard-coded. Inflexible 
and inefficient.


The jQuery way (which is way beyond jQuery, but jQuery makes this easy) 
is to create elements which can be 'hooked' into (a link with an ID / 
class, which CSS and JS can connect to easily). A separate CSS or JS 
file can be included in the head of the document, which hooks to that 
element and does something to it.


The beauty of it is, down the line, all the elements of a given 
class/ID can be updated/modified in a single central location. An 
example with CSS - take a look at Zen Garden sometime to see it in 
action. The same things can be done via JS - if a developer creates a 
page, he can swap in and out JS files which can perform drastically 
different actions on the same elements.


Hope this helps!
-Toby

Pops wrote:

I"ve seen this term referred to a few times, especially here:

http://simonwillison.net/2007/Aug/15/jquery/

What does Unobtrusive Javascript mean?

I am getting the idea that jQuery offers a way to bypass a user
turning off JavaScript?

How does jQuery do this?

Thanks


  




[jQuery] Re: Jquery Vs. Prototype

2007-08-06 Thread Tobias Parent


I feel like such a n00b - I've always pronounced it to rhyme with 
'say-ferry' .


DOH!
- Toby




 It's not just that you got to call it "j" and then "query". And
it's not just that the word query is hard to pronounce on its own:
say "kweer-ee" really fast. You sound like a Disney character. The
reason is that no one knows it means. Of course us techie's do.
Mootools is a silly name but at least you a) can pronounce it and
b) know it's some kind of tool. I'm not suggesting a name change,
just pointing out what I think will hold it back.

 





[jQuery] Re: Check this, if you've got the time

2007-08-02 Thread Tobias Parent


AIR is basically WebKit (the engine behind Safari), more tightly 
integrated into the system. Basically, an easier-to-code version of 
Konfabulator. It allows developers to develop web applications that run 
on the desktop, have behaviors that operate a certain way when you're 
offline, and have a set course of action when your status returns to online.


I do use some AIR gadgets now, and I'm writing a few more, just for fun 
and practice (to say I'm an AIR developer, basically) - I'm a fan of the 
Adobe Kuler (http://kuler.adobe.com) application, which returns a set of 
palettes that users have created.


Mitchell Waite wrote:

Whats the big deal about AIR? I went to the labs to study it and its so
overwhelming (does anything) that I kind of missed the whole point. From
what I gathered its like an entire operating system.

-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tobias Parent
Sent: Thursday, August 02, 2007 7:41 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Check this, if you've got the time


Hey, all -

 Just finished my first jQuery/AIR app, and it works... mostly. I 
haven't figured how to make my title draggable yet, and it's not the 
most impressive game, but it's working. If you'd like to offer feedback, 
it's up as an HTML file at: http://tobias.parentleafarm.com/rebound.html 
or as an AIR file (unverified) at 
http://tobias.parentleafarm.com/rebound.air


 Todo on it: make the window draggable by the title bar, make a more 
playable (game-worthy) interface, and start building a jQuery-based game 
engine!!


 Thanks!
 -Toby


  




[jQuery] Check this, if you've got the time

2007-08-02 Thread Tobias Parent


Hey, all -

Just finished my first jQuery/AIR app, and it works... mostly. I 
haven't figured how to make my title draggable yet, and it's not the 
most impressive game, but it's working. If you'd like to offer feedback, 
it's up as an HTML file at: http://tobias.parentleafarm.com/rebound.html 
or as an AIR file (unverified) at 
http://tobias.parentleafarm.com/rebound.air


Todo on it: make the window draggable by the title bar, make a more 
playable (game-worthy) interface, and start building a jQuery-based game 
engine!!


Thanks!
-Toby


[jQuery] Re: Adobe AIR question - keypress?

2007-07-31 Thread Tobias Parent


Well, that was no help, but here's what I found: Don't count on keycode 
or charcode - with webKit, they're non-standard. BUT, and this was kind 
of cool, use keyIdentifier. Here's what I got, and it works fine:


   $(document).bind('keypress', function(evt){
   switch(evt.keyIdentifier) {
   case 'Up':
   // Do some processing ...
   break;
   case 'Down':
   // Do some processing ...
   break;
   case 'Left':
   // Do some processing ...
   break;
   case 'Right':
   // Do some processing ...
   break;
  }
   };


Rey Bango wrote:


Hi Tobias,

I'm not sure if this will help but there's a free Adobe Air for 
JavaScript PDF available here:


http://ajaxian.com/archives/adobe-air-free-book-download

It might be able to point you to a solution.

Rey

Tobias Parent wrote:


Ah. keypress is set to something screwy for the arrow keys, I think. 
For alphanumeric, keypress works fine in Safari.



Glen Lipka wrote:

Did you try this plugin?
http://rikrikrik.com/jquery/shortkeys/

Glen

On 7/31/07, *Tobias Parent * <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:



OK, so Adobe AIR is built on the WebKit engine, same as Safari.
Which, I
think, means screwy keypress handling. If I change my bind() to the
keydown, it works fine, although I have to keep hitting it over
and over
to register the event.

My question is, does anybody successfully handle keypresses in 
Safari

(and, I assume by extension, in AIR)? If so, how?!

Thanks!
-Toby











[jQuery] Re: Adobe AIR question - keypress?

2007-07-31 Thread Tobias Parent


Ah. keypress is set to something screwy for the arrow keys, I think. For 
alphanumeric, keypress works fine in Safari.



Glen Lipka wrote:

Did you try this plugin?
http://rikrikrik.com/jquery/shortkeys/

Glen

On 7/31/07, *Tobias Parent * <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:



OK, so Adobe AIR is built on the WebKit engine, same as Safari.
Which, I
think, means screwy keypress handling. If I change my bind() to the
keydown, it works fine, although I have to keep hitting it over
and over
to register the event.

My question is, does anybody successfully handle keypresses in Safari
(and, I assume by extension, in AIR)? If so, how?!

Thanks!
-Toby






[jQuery] Re: Adobe AIR question - keypress?

2007-07-31 Thread Tobias Parent


Well, it works, but it's catching the keydown event, not the keypress - 
so I'm back to having to hit the key over and over...


Glen Lipka wrote:

Did you try this plugin?
http://rikrikrik.com/jquery/shortkeys/

Glen

On 7/31/07, *Tobias Parent * <[EMAIL PROTECTED] 
<mailto:[EMAIL PROTECTED]>> wrote:



OK, so Adobe AIR is built on the WebKit engine, same as Safari.
Which, I
think, means screwy keypress handling. If I change my bind() to the
keydown, it works fine, although I have to keep hitting it over
and over
to register the event.

My question is, does anybody successfully handle keypresses in Safari
(and, I assume by extension, in AIR)? If so, how?!

Thanks!
-Toby






[jQuery] Adobe AIR question - keypress?

2007-07-31 Thread Tobias Parent


OK, so Adobe AIR is built on the WebKit engine, same as Safari. Which, I 
think, means screwy keypress handling. If I change my bind() to the 
keydown, it works fine, although I have to keep hitting it over and over 
to register the event.


My question is, does anybody successfully handle keypresses in Safari 
(and, I assume by extension, in AIR)? If so, how?!


Thanks!
-Toby


[jQuery] Re: [NEWS] VERY COOL Bookmarklet Element Inspector

2007-07-31 Thread Tobias Parent


Something to note about the XRay bookmarklet, though - when you close 
it, it destroys any javascript event handlers you've set up. Not a big 
issue, just reload your page, but even so, it sort of blows up the 
bridges behind it.


Mike Alsup wrote:

You can also just use FireBug and click the DOM tab.  You'll see the
jQuery object in the global namespace.  You can then drill in and and
see that it's version 1.1.3.1 (jQuery.fn.jquery).

Mike

  

For those who don't know how I found that it's a jQuery app, I just
right-clicked on the bookmarklet (after I'd bookmarked it), chose
'Properties...', and copied and pasted the url into Aptana. Cleaned up a
bit, this is what it shows:



  




[jQuery] Re: [NEWS] VERY COOL Bookmarklet Element Inspector

2007-07-31 Thread Tobias Parent


For those who don't know how I found that it's a jQuery app, I just 
right-clicked on the bookmarklet (after I'd bookmarked it), chose 
'Properties...', and copied and pasted the url into Aptana. Cleaned up a 
bit, this is what it shows:


javascript:if(!document.getElementById('WCjq'))
{
   var q=document.createElement('script');
   q.setAttribute('id', 'WCjq');
   q.setAttribute('src', http://westciv.com/xray/jquery-latest.pack.js');
   document.getElementsByTagName('body')[0].appendChild(q);
}
var s=document.createElement('script');
s.setAttribute('id','WCXray');
s.setAttribute('src', 'http://westciv.com/xray/xray.js');
document.getElementsByTagName('head')[0].appendChild(s);
void(s);

vry nice.

Klaus Hartl wrote:


Rey Bango wrote:


No way!! haha. Very cool!


Rey has a seventh sense regarding jQuery...



--Klaus





[jQuery] Re: [NEWS] VERY COOL Bookmarklet Element Inspector

2007-07-31 Thread Tobias Parent


Heh. I dissected it a bit, and it's a jQuery app. cool.

- Toby

Rey Bango wrote:


Ajaxian is reporting about a very neat and cool bookmarklet, XRay, 
that helps you visually get information about specific elements on 
your page. The site best describes its functionality as "a free cross 
browser tool (a bookmarklet) that lets you see the box model in action 
for any element, letting you see beneath the skin of any web page. 
Just click the XRAY button to instantly answer those vital questions: 
where is the top and left of this element? how big is each margin? how 
big is the padding? how wide and high is the content box?".


I tried this out and it was VERY cool. While there's some overlap with 
Firebug, this is definitely being added to my toolkit. The only 
downside is that it doesn't work on IE.


http://westciv.com/xray/

Rey...





[jQuery] Re: Layout Panels?

2007-07-30 Thread Tobias Parent


ExtJS has been written to be compatible with YUI, Prototype or jQuery 
so, to answer your question, yes. Use the ExtJS layout panels, and use 
your jQuery as well.


Mitchell - ExtJS is another JS library, extending the functionality of 
what some core libraries are doing. There is some (not much, from what 
I've seen) overlap, but mostly it's cosmetic functionality that works 
pretty well. Yes, it's free. It was originally written for the YUI 
framework, but much work has gone into making it play nice with jQuery. 
Find out more at 
http://jquery.com/blog/2007/02/19/jquery-and-jack-slocums-ext/


Regards!
-Toby

Mitchell Waite wrote:
That ext is pretty cool, what is it exactly? Free? 


-Original Message-
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of voltron
Sent: Monday, July 30, 2007 3:16 PM
To: jQuery (English)
Subject: [jQuery] Layout Panels?


Hi!

Are there any layout panels for Jquery? Examples are(http://extjs.com/
deploy/ext/docs/index.html)?

Thanks!


  




[jQuery] Re: 3 state buttons - The Final Act - and a jQuery bug?

2007-07-27 Thread Tobias Parent


Wooo... Whatever you do, don't mouse in and out of that nest really fast 
-- it queues up a bunch of fades in/out. Funky!!


Mitchell Waite wrote:

I added the 3 state button to the final application I am working on.

In doing so I learned a lot about jQuery, so if you are a beginner you might
want to check this code out with view source. 


It shows a lot of different features of the scripting language. I am sure
someone could see a way to make it better but I think its pretty close to
perfect.

http://www.whatbird.com/wwwroot/3statebutton_framed_4.html

It works best in Firefox.

I think I found a bug in jQ's effects.

In IE the small button leaves a white hole in the image. 


Not in Firefox.

Could this be related to the image type? I am using PNGs cause they have so
much transparency control compared to GIFs. 


Or is this a bug in the jQuery fadeTo function?

Mitch



  




[jQuery] Re: Binding actions after an ajax call?

2007-07-01 Thread Tobias Parent


Sorry, folks - my bad.
-Toby (told ya I was a NOOB...)

Brad Perkins wrote:

That's just the way Gmail threads its messages.  It appears the poster
replied to the original thread and changed the subject. Google Groups
noted "Discussion subject changed to "Binding actions after an ajax
call?" by Tobias Parent".

Instead of using the actual subject Gmail uses a common index or ID
that is in the message header. Some mail clients don't do this which
is why we often see two or more threads on the same topic, e.g.,
Subject and re: Subject.

The downside to this is that original subject title in no longer
clearly visible.

On Jul 1, 6:18 am, [EMAIL PROTECTED] wrote:
  

There's some sort of error with the Gmail group a subject titled:
Binding Actions to an ajax call is being piled on at the bottom of the
thread started by Ray Bango:
ANNOUNCE: Call for Articles for Visual jQuery Magazine...
Strange huh?

On Jun 30, 8:10 pm, Tobias Parent <[EMAIL PROTECTED]> wrote:



Hey -
  
 I've got content being loaded via
  
$('#myDivID div.itemContent').load('/controller/action/'), and the

information being loaded is a list of links, which I'd like to set to
trigger a series of ajax calls for related DIV's throughout the page.
Can I simply set the callback on the load() to a bind()? Total NOOB, in
over my head.
  
glub, blub...


  

- Toby


  




[jQuery] Re: Binding actions after an ajax call?

2007-06-30 Thread Tobias Parent


Answering my own question... I tried it out, and this works beautifully, 
so far:


$('#myEventList div.itemContent').load('/events/quicklist', 
function(){
$('#myEventList div.itemContent a.event').bind('click', 
function(){

showEventDetails(this.id);
})
});


... And then showEventDetails() strips out what it needs, and does the 
same load() for each related DIV. Woo-hoo!! jQuery ROCKS! And it makes 
rapid development simple with CakePHP!!


Regards,
-Toby


[jQuery] Binding actions after an ajax call?

2007-06-30 Thread Tobias Parent


Hey -

I've got content being loaded via

$('#myDivID div.itemContent').load('/controller/action/'), and the 
information being loaded is a list of links, which I'd like to set to 
trigger a series of ajax calls for related DIV's throughout the page. 
Can I simply set the callback on the load() to a bind()? Total NOOB, in 
over my head.


glub, blub...
- Toby


[jQuery] Re: OT - AJAX book

2007-06-29 Thread Tobias Parent


Ajax in Action
Ajax Design Patterns
... and of course, Head-Rush Ajax



Angelo Zanetti wrote:


Hi all

I've used JQuery for a project and it was fine. Now I want to buy a 
book just for AJAX not necessarily jQuery. What would you guys suggest?


Thanks in advance.

Angelo








[jQuery] Re: jQuery Server Side Grid

2007-04-29 Thread Tobias Parent

Works just ducky in FF 2.0.0.3, on XP
 - Toby

[EMAIL PROTECTED] wrote:
> It doesn't work in ff2.0
>   

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"jQuery (English)" group.
To post to this group, send email to jquery-en@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jquery-en?hl=en
-~--~~~~--~~--~--~---