How about changing alert('huhu'); to sendData();

On 24/01/2008, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Hi there
>
> I got a problem with Internet Explorer, I simply don't find the
> answer.
>
> I got 2 files:
>
> ajax.html Contents:
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/
> TR/html4/strict.dtd">
> <html>
>   <head>
>     <Title>Ajax</Title>
>     <script type="text/javascript" src="http://www.prototypejs.org/
> assets/2007/11/6/prototype.js"></script>
>     <script type="text/javascript" src="ajax.js"></script>
>   </head>
>
>   <body>
>   </body>
> </html>
>
>
> ajax.js Contents:
>
> function sendData() {
>   new Ajax.Request ("webret.php", {
>     parameters: {},
>     method: 'get',
>     onFailure: function(request) {
>       alert ('Failure');
>     },
>     onSuccess: function(request) {
>       alert ('Success');
>     },
>   });
> };
>
> document.observe('dom:loaded' , function() {
>   alert('huhu');
> });
>
>
> This does work in Firefox (Firebug reporting no errors), but it
> doesn't work in IE (I dont get the alert('huhu')). If I remove the
> function sendData() it works in IE. I'm not gettin what I'm doin
> wrong... The sendData() isn't used anywhere.
>
> Either of u get a clue?
>
> Thx in advance
> >
>


-- 
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

--~--~---------~--~----~------------~-------~--~----~
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