I would auggest that you take a different pespective on how you are
developing your pages. You should be able to reference any element
within your page. That means specifying an ID, or creating an element
dynamically. You should strive to keep Javascript separate from your
HTML.
Bernie
On Jun 13, 10:26 am, AlannY <[EMAIL PROTECTED]> wrote:
> It's not helps ;-( Because, I really don't known where to place my new
> elements ;-(
>
> So, If using <new Element> style, I need to specify an ID of some div,
> for example:
>
> <div id="somediv">
> <script>
> <!--
> var span = new Element('span');
> $('somediv').appendChild(span);
> //-->
> </script>
> </div>
>
> But, I don't want to specify an ID, I want just to <write> elements ;-
> (
>
> As I can see - it's impossible! Am I right?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---