it's a little difficult to explain that in english ... i expect that
you understand me...

when i test my code in Internet explorer 7 ... i only get the alert
'hola' that i write in the first line of my function but the
Ajax.Updater doesn't do anything,i think that is an incompatibility
betwent IE7 and prototype 1.6.2 althouth i have test with  an older
version of prototype....   but en IE6, FireFox an Opera the code works
perfectly
i'm doing only a little code .... an html that have a button with an
onclick event that calls a javascript function :
this funtion shows an alert(for test that the function was excuted)
and next have an Ajax.Updater that actualize a div in the same
html ....

i hope you could help me ...

On 7 mayo, 15:08, Tom Gregory <[EMAIL PROTECTED]> wrote:
> 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