1: I was wondering that too. Wrapping all of your code in
with(Prototype) {} would allow you to use multiple frameworks
simultaneously with no problems.
2: The prototype $(element).observe('click', function() {}); is
probably the best way of doing this. It also means you can pass the
event to the function, and then call event.stop() on it instead of
return false. If you place all of your code inside the
document.observe('dom:loaded', function() {}) function then you can
load it in from an external js file. This will help speed up the site
as the external file will get cached.
Edd
On Jan 17, 8:13 am, pintu <[EMAIL PROTECTED]> wrote:
> Hi All,
> First i want to congratulate you guys for such an effort. Its really
> very nice to see the progress in this field. Have some doubts about
> this so adding.
>
> 1. Will there be an addition of namespaces in prototype.js in future
> releases. As this is being added in other frameworks too.
> 2. The standard procedure of html says that we should not add events
> in the html itself, but is there any efficient way to add events in
> html pages without embedding them in the page itself. I am still
> unaware of it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---