Re: Evalscripts

The-PISW
Fri, 12 Oct 2007 16:55:48 -0000

Ah, that explains it then.  I''m still getting used to the fact that
Javascript is case sensitive.  Thank you.

On Oct 12, 3:27 am, "Gilles Albusac"
<gilles.albu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Event.observe(''this_link'', ''click'',
function() { AJAX.Updater(''that_div'',
> ''my.php'', { evalScripts: true}) });
>
> evalScripts with a uppercase S
>
> -----Message d''origine-----
> De : rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
> [mailto:rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org] De la
part de The-PISW
> Envoyé : vendredi 12 octobre 2007 06:45
> À : Ruby on Rails: Spinoffs
> Objet : [Rails-spinoffs] Evalscripts
>
> Hey all,
> I''m just checking my understanding.  Would someone be so kind as
to comment
> on the following?
>
> Event.observe(''this_link'', ''click'',
function() { AJAX.Updater(''that_div'',
> ''my.php'', { evalscripts: true}) });
>
>
>
>
> ///////
> my.php
>
> echo(" alert(''Loaded'')");
>
> There''s a lot more to all of it than that, but this is where
I''m hitting
> problems and I have no idea why.  this is my first time using evalscripts
> and I''m a fairly novice prototyper (though an experienced
> coder)
>
> the eventual javascript will actually call Event.Observe again and
> $F().present to validate form elements to submit data to a php file that
> will insert an element into a database.
>
> currently it''s not working for even the alert function.
>
> Any help would be appreciated.