If you can help me get this going I'll send you something. I tried
this:

<script type="text/javascript" src="http://www.website.com/prototype/
prototype.js">
</head>
<body>
<div>
<script type="text/javascript">
 var scriptString = "<?php
echo 'test';?>";
       var ajaxOptions = {
                method:       "post",
                asynchronous: true,
                contentType:  "application/x-www-form-urlencoded",
                encoding:     "utf-8",
                parameters :  "scriptString = " + scriptString,
                onSuccess : this.ajaxUpdate.bind(this),
                onFailure : this.handleError.bind(this)
                };
    ajaxUpdate:  function(request) {
            var updatedScriptString = request.responseText;
            updatedScriptString.evalScripts();
     },
 </script>
</div>
</body>
</html>

Just putting a basic echo first in the script area. Nothing happening
yet. I figured the code should be in the head section but didn't know
how to add a div or form id to it. Please get back to me, thanks.


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to