Hi kevin,

I'm sorry, I'm not sure to understand.

you want to make an Ajax call to retrieve the complete list of script
which already are in script tag.
With the response, use it to update the placeholdeer div, and browser
should load script.

Am I right?

btw, the initialisation of the Ajax.update is strange, it should be:
new Ajax.Updater(container, url, {options})

and for you the container parameter is {success: 'placeholder'} ??

shouldn't it be: var myAjax = new Ajax.Updater( 'placeholder', url,
{method:'get', onFailure: reportError, evalScripts: true});


On 10 mar, 16:56, kevin <kryukov....@gmail.com> wrote:
> i need to enter to the page with making all scripts on it. so i need
> to download it via seeds (hhtp headers). and make all scripts. how can
> i do it?
> i thought via Ajax.Update i can do it. but something is wrong.
> i don't know what to do with parameters. because i need to download
> all page.
> <script src="/prototype-" type="text/javascript"></script>
> <script>
>         function getHTML()
>         {
>                 var url = 'http://mypage.com';
> var myAjax = new Ajax.Updater( {success: 'placeholder'}, url, {method:
> 'get', onFailure: reportError, evalScripts: true});
>         }
>         function reportError(request)
>         {
>                 alert('Sorry. There was an error.');
>         }
> </script>
> <input type=button value=GetHtml onclick="getHTML()">
> <div id="placeholder"></div>
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to