The error probably lies within the code in the response, post that and
maybe we can discover the solution.


--
Matt Foster
Ajax Engineer
Nth Penguin, LLC
http://www.nthpenguin.com



On May 19, 8:22 am, Rudy Susanto <[EMAIL PROTECTED]> wrote:
> I couldn't found any error in your script on both FF2 and IE7. Maybe it
> come from response you get by Ajax.Request.
>
> NB: Private message aja mas di [EMAIL PROTECTED], mungkin bisa share ^^
>
> yuan yudistira wrote:
> > 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]
> > <mailto:[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 [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