You'll get better help if you describe your error and how your app is  
failing.

Your problem is likely is that Prototype isn't being loaded.  A quick  
way to check is to run the following in your javascript console:
alert(Prototype);

Running an admittedly older version of Prototype, I didn't run into  
any significant  trouble with your code.


TAG

On May 7, 2008, at 11:35 AM, halflopez wrote:

>
> 'm from cartagena Colombia(south america) ....
>
> i'm learning prototype, i have a little problem using Ajax.Updater. i
> have this code in html page :
>
> <head>
> <script src="prototype.js" language="javascript" type="text/ 
> javascript"> </script>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>ajax Updater</title>
> <script language="javascript" type="text/javascript">
> function ajax(){
> alert('hola');
> new Ajax.Updater("contenido", "carga.html", {method:
> 'post',onFailure :
>               function(resp) {
>                                alert("Oops, there's been an error.");
>                                               }
>                               });
>
> }
> </script>
>
> </head>
> <body>
> <h1 align="center">ajax</h1>
> <br />
> <br />
> <input name="ajax" type="submit"  value="ajax" onclick="ajax();" />
> <div id="contenido"> Update code Here</div>
> </body>
> </html>
>
> ----------------------------------
> when i test my code in Firefox, Opera and IE6, its works perfectly but
> when i test this code in IE7 its doesn't works, div isn't update ...
> i would like that you help me with this problem
> 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 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