[Prototype-core] Re: Event.element() oddity

2007-06-14 Thread jdalton

I created the ticket. It can be found here:
http://dev.rubyonrails.org/ticket/8652


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



[Prototype-core] Re: Hijack Browser Loading

2007-06-14 Thread [EMAIL PROTECTED]

> Just keep the content to a minimum since ninety-someodd-percent
> people have javascript enabled.

Noted.  I'll only be including the image url in the  and
using the script to dynamically populate the src.  That is if a
 is allowed in a `src=` attribute.  Otherwise I'll have to
place the entire image in a noscript, which can work also.


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



[Prototype-core] Re: Hijack Browser Loading

2007-06-14 Thread Ken Snyder

[EMAIL PROTECTED] wrote:
> You are correct in your assumption of the functionality and
> unfortunately came to the same conclusion as me in that it can't be
> done.  I do like your idea of setting a cookie maybe once the page is
> loaded saving wether the browser has JS enabled.  Then my server side
> code could check that cookie on the next page request and serve up all
> the images if no JS or only the first tab's images if they have JS.
>
> The only other option I'm thinking of is wether I could use something
> like a  block in an image src?  Is that valid
> semantically?
>   
Ah yes!  I believe you can have any content in a noscript block.  Just 
keep the content to a minimum since ninety-someodd-percent people have 
javascript enabled.

Regards,

Ken

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



[Prototype-core] Re: Hijack Browser Loading

2007-06-14 Thread [EMAIL PROTECTED]

You are correct in your assumption of the functionality and
unfortunately came to the same conclusion as me in that it can't be
done.  I do like your idea of setting a cookie maybe once the page is
loaded saving wether the browser has JS enabled.  Then my server side
code could check that cookie on the next page request and serve up all
the images if no JS or only the first tab's images if they have JS.

The only other option I'm thinking of is wether I could use something
like a  block in an image src?  Is that valid
semantically?

mark.


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



[Prototype-core] Re: Event.element() oddity

2007-06-14 Thread Mislav Marohnić
On 6/14/07, Christophe Porteneuve <[EMAIL PROTECTED]> wrote:
>
>
> Hey Mislav!
>
> Since when don't you look such stuff up in the W3C specs, man? :-)


Since I'm lazy and pretending to be all-knowing? :D

But honestly, MDC articles (in majority) are a real nice digestion of the
spec. When I'm in doubt, I rather search them first.

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



[Prototype-core] Functional Javascript

2007-06-14 Thread Ben Nolan

Hi all,

I'm doing a session at railsconf europe about functional javascript
with prototype - and I thought I might write up some articles on the
same topic. Anyone have any requests or favourite snippets of
functoinalish code they'd like me to elucidate upon for the benefit of
all?

Some of my favourites:

Element.succ = ...;

$R(this.startElement, this.endElement).function(el){
el.addClassName('selected');
});

Builder.node('div', {class:'calendar'}, $R(1..31).map(function(i){
  Builder.node('div', i)
});

-- 
Regards,
Ben Nolan

http://bennolan.com/

skype: bennolan
cell: +49 1577 383 7542

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



[Prototype-core] Re: Event.element() oddity

2007-06-14 Thread Christophe Porteneuve

Hey Mislav!

Mislav Marohnić a écrit :
> Thanks, thats what I thought. I guess MDC docs confused me by not making 
> this clear enough :-/

Since when don't you look such stuff up in the W3C specs, man? :-)

   http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-Event

Pretty clear to me.

-- 
Christophe Porteneuve aka TDD
[EMAIL PROTECTED]

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