[Prototype-core] Re: Update a DOM element with Javascript contents

2007-12-02 Thread Thomas Fuchs

Hi there,

This mailing list is for discussing the core development of the  
Prototype JavaScript framework.
You won't get answers to usage questions here.

Please try posting (again) on
http://groups.google.com/group/rubyonrails-spinoffs/

Thanks,
Thomas

Am 02.12.2007 um 04:50 schrieb mevryck:

>
> Greetings
>
> Tobie I have posted in the google groups rubyonrails-spinoffs (http://
> groups.google.com/group/rubyonrails-spinoffs/browse_thread/thread/
> 3a0a2173af66a9aa/)
> I didn't get any updates.
>
> I'm desperately looking for inputs in fixing this problem.
> I'm just using prototype Ajax library for making my Ajax Request.
> But I want to inject Javascript contents to an element in DOM.
> I have a JSP page which is already loaded and using the DOM
> I try and update the element present in the JSP page.
> But I'm not able to inject the javascript guess my javascripts
> contents
> are blown away because of evalScripts().
>
> I try using extractScripts() but not able to inject them in to the DOM
> element.
>
> The javascript contents are meant for generating Milonic Menus
> dynamically, I have pasted the contents at the start of my post.
> When I view it as a separate HTML file with the contents and the
> external javascript files I'm able to see my milonic menu.
>
> But I want this to be injected into an DOM element dynamically.
>
> Please provide assistance in this regard.
>
> Thanks
>
> On Dec 1, 11:56 pm, Tobie Langel <[EMAIL PROTECTED]> wrote:
>> Hi,
>>
>> Please kindly post help requests to the spinoffs mailing list  
>> (http://
>> groups.google.com/group/rubyonrails-spinoffs).
>>
>> Thanks!
>>
>> Tobie
>>
>> On Dec 1, 3:34 pm, mevryck <[EMAIL PROTECTED]> wrote:
>>
>>> Greetings
>>
>>> I have a huge Javascript with inclusion of external scripts and  
>>> all. I
>>> got this by doing a XSLT .
>>> Now I have the contents in a Javascript variable, but I'm nto able  
>>> to
>>> update the element with the
>>> below javscript contents.
>>
>>> But when viewed as a seperate HTML file with the below contents I'm
>>> able to see the milonic menu.
>>
>>> Please help me with this regard.
>>
>>> 
>>> script type="text/javascript" language="javascript"
>>> src="milonic_src.js">
>>> >> script>>> src="mmenudom.js">
>>> >> script>