Sorry, not sure if that helps you, since you description is a bit
unclear.
You have a javascript function "Find" that gets called and then should
replace
the content of the div "spot-light". What''s that to do with
the other
div?
Anyway, that''s some code I used to create a list
it''s more complex in the original, I pasted just those parts, that
show how
to insert a div and set some text):
var row = document.createElement("div");
var col1 = document.createElement("div");
coltext1 = document.createTextNode(fileObj.name);
col1.appendChild(coltext1);
row.appendChild(col1);
$("spot-light").appendChild(row);
this uses prototype in the last line.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---