Re: [PHP] Another canvas example

2008-06-24 Thread Ray Hauge

Richard Heyes wrote:

Pretty sweet! My only problem with it is that I had to use the keyboard
to get to the Attach button, since I couldn't click on it with it
being behind the pie chart in the page's Z-order.


Yes, no way around (I think). Even with the buttons z-index set to 99 it 
still shows up behind the beachball.


TAB and the spacebar are your friends I guess... :-)



You could make the z-index of the beachball at 1, and then put the rest 
of the page in a div with a z-index higher than 1.  The beachball should 
then still appear, but be under the div, which allows you to click the 
button.  I ran into the same issue with a game I've been making:


http://www.primateapplications.com/trackattack/

Since you're working with the Canvas, you can be reasonably sure that 
the browser would support doing this.


--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-24 Thread Ray Hauge

Richard Heyes wrote:

Pretty sweet! My only problem with it is that I had to use the keyboard
to get to the Attach button, since I couldn't click on it with it
being behind the pie chart in the page's Z-order.


Yes, no way around (I think). Even with the buttons z-index set to 99 it 
still shows up behind the beachball.


TAB and the spacebar are your friends I guess... :-)



Oh, I forgot to mention that you'll have to make the css position 
attribute relative.  Then the z-index will work.  I think that's what I 
had to do for the same issue. *


* I had to get up in the middle of the night to check some production 
issues and checked my email while waiting.  My memory might not be fully 
functioning :)


--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 3:53 AM, Ray Hauge [EMAIL PROTECTED] wrote:

 http://www.primateapplications.com/trackattack/

Ray,

This displays perfectly fine, but does not function beyond looking
pretty on Firefox 3 (Linux/KDE).  I am, however, probably going to
play that game for a bit on my non-Linux (I refuse to say the name!)
machine.

Maybe Rich could turn his canvas example into the first
HTML/CSS/JavaScript beach volleyball game.  It would be the closest
some of us would probably get to detaching from our desks and getting
onto a beach to play anyway.

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-24 Thread Ray Hauge

Daniel Brown wrote:

On Tue, Jun 24, 2008 at 3:53 AM, Ray Hauge [EMAIL PROTECTED] wrote:

http://www.primateapplications.com/trackattack/


Ray,

This displays perfectly fine, but does not function beyond looking
pretty on Firefox 3 (Linux/KDE).  I am, however, probably going to
play that game for a bit on my non-Linux (I refuse to say the name!)
machine.

Maybe Rich could turn his canvas example into the first
HTML/CSS/JavaScript beach volleyball game.  It would be the closest
some of us would probably get to detaching from our desks and getting
onto a beach to play anyway.



Strange, I've tested it on Kubuntu Hardy  FF 3, SuSE SLED 10.1  FF2, 
Windows FF23 Safari Opera 9.5 IE67, Mac OSX Safari.  I'd be interested 
in what error you got, just email me off-list if you like.


--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-24 Thread Daniel Brown
On Tue, Jun 24, 2008 at 11:07 AM, Ray Hauge [EMAIL PROTECTED] wrote:

 Strange, I've tested it on Kubuntu Hardy  FF 3, SuSE SLED 10.1  FF2,
 Windows FF23 Safari Opera 9.5 IE67, Mac OSX Safari.  I'd be interested in
 what error you got, just email me off-list if you like.

Sorry, Ray, I meant to send a follow-up immediately afterward.  It
works just fine once you read the directions.  I was trying to place
track pieces before clicking Start.  I thought it was there to be
clicked when you were ready to have the train go on the track you
built.

So yes, it works on all three of the systems and configurations I
tried.  There was just a mild case of Operator Error.  My logic
processor is still rather buggy sometimes.

Good job!

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Another canvas example

2008-06-23 Thread Boyd, Todd M.
 -Original Message-
 From: Richard Heyes [mailto:[EMAIL PROTECTED]
 Sent: Saturday, June 21, 2008 9:40 AM
 To: PHP General List
 Subject: [PHP] Another canvas example
 
 Hi,
 
 Latest in my new series of look at me, aren't I cool canvas examples
 is here:
 
 http://www.phpguru.org/pie/pie.html
 
 Works in IE7 too. And Opera. Ooh.

Richard,

Pretty sweet! My only problem with it is that I had to use the keyboard
to get to the Attach button, since I couldn't click on it with it
being behind the pie chart in the page's Z-order.

Just a thought. Looks great, though! Good work!


Todd Boyd
Web Programmer




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-23 Thread Richard Heyes

Pretty sweet! My only problem with it is that I had to use the keyboard
to get to the Attach button, since I couldn't click on it with it
being behind the pie chart in the page's Z-order.


Yes, no way around (I think). Even with the buttons z-index set to 99 it 
still shows up behind the beachball.


TAB and the spacebar are your friends I guess... :-)

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-22 Thread Richard Heyes

Hi,


You gonna post the source code? ;)


Already have, like all Javascript, it's clientside. The direct URL is:

http://www.phpguru.org/pie/pie.js

There's also the ExCanvas library, but that's public anyway.

--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.org/sftpdrive|
++

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-21 Thread Daniel Brown
On Sat, Jun 21, 2008 at 10:39 AM, Richard Heyes [EMAIL PROTECTED] wrote:
 Hi,

 Latest in my new series of look at me, aren't I cool canvas examples is
 here:

 http://www.phpguru.org/pie/pie.html

 Works in IE7 too. And Opera. Ooh.

Tests just fine in FF3 (3.0.0 final) on Windows, and in Mandriva
(KDE) using FF3 beta 5.  I'll check it in Netscape 9, Konqueror, and
Galeon later, because I'm actually curious if they'll correctly decode
the BASE64 in the styling.

Looks good, Rich.

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-21 Thread tedd

At 3:39 PM +0100 6/21/08, Richard Heyes wrote:

Hi,

Latest in my new series of look at me, aren't I cool canvas 
examples is here:


http://www.phpguru.org/pie/pie.html

Works in IE7 too. And Opera. Ooh.

--
Richard Heyes


Richard:

It's NOT a pie chart, it's a beach ball cursor. But, it's cool.

As for use, I could think it might be used to let the user know in 
what state their cursor is in.


For example, when we, on a Mac, are copying a file, our cursor turns 
to a pointer with a plus. That cursor is not available via browsers. 
So, your canvas example could provide cursor attributes.


Just a thought -- I have to do some other thinking now.

Cheers,

tedd


--
---
http://sperling.com  http://ancientstones.com  http://earthstones.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-21 Thread Richard Heyes

 it's a beach ball cursor.

Lol. A didn't see it like that, but now you've mentioned it, it's kinda 
stuck and that's all I can see now. :-)


--
Richard Heyes

Employ me:
http://www.phpguru.org/cv

++
| Access SSH with a Windows mapped drive |
|http://www.phpguru.org/sftpdrive|
++

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-21 Thread Ray Hauge

Richard Heyes wrote:

Hi,

Latest in my new series of look at me, aren't I cool canvas examples 
is here:


http://www.phpguru.org/pie/pie.html

Works in IE7 too. And Opera. Ooh.



Awesome stuff.  I think the canvas element will be my next adventure. 
I've been learning JavaScript a lot recently.  That's been an 
interesting experience that I'm glad I did.


--
Ray Hauge
www.primateapplications.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Another canvas example

2008-06-21 Thread Wolf

Richard Heyes wrote:

Hi,

Latest in my new series of look at me, aren't I cool canvas examples 
is here:


http://www.phpguru.org/pie/pie.html

Works in IE7 too. And Opera. Ooh.


Great beach ball!

The nice thing about adverts, is that MOST people use /ads/* in their 
coding to place their adverts, so using Adblock+ gets rid of them PDQ.  :)


You gonna post the source code? ;)

Wolf


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php