Hi Rudy,

Thanks for the reply.

Pardon me if my question is not very clear.

My problem is that it seems that the script is not automatically evaluated
by prototype in IE7.
(the sortable element can be drag and drop)

Now I get another clue after installing IEWebDeveloper v2,
I get error message :

*Expected identifier, string or number*


and here is a piece of js code i have :

var coreAppObj = {
    autoSearch:function() {
        var url ='
http://localhost/eventManager/index.php/welcome/searchGuest/';
         new Ajax.Request(url, {
                  method: 'post',
                  evalJS: 'true',
                  postBody: 'searchguestname='+$F('searchguestname'),
                      onSuccess: function(transport) {
                        var notice = $('searchresult');
                        notice.update('Result (please drag & drop to
table/seat) :'+transport.responseText);
                      }
        });
    },
    searchResources:function() {
        var url ='
http://localhost/eventManager/index.php/welcome/searchResources/';
         new Ajax.Request(url, {
                  method: 'get',
                  onSuccess: function(transport) {
                      var notice = $('seat2');

                      notice.update(transport.responseText);
                  }
        });
    }
}


I try to find out comma , etc,... but I can not see it.

Anyone see the problems?

Thanks

YUAN


On Mon, May 19, 2008 at 6:33 PM, Rudy Susanto <[EMAIL PROTECTED]> wrote:

>  Yes, responseText will automatically evaluated by Prototype.
>
> If you just want to display HTML fragment and execute script later, your
> code should look like this:
>
> $(container).update(responseText.stripScripts());
> responseText.extractScripts().each(function(script){
>      if (window.execScript) window.execScript(script);      // MSIE
>      else window.eval(script);                                           //
> Mozilla Firefox
> });
>
>
>
>

--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-spinoffs@googlegroups.com
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