I am having trouble with my prototype script and IE7. I am using the
latest script (1.5.1). The following code works fine in FF 2.0.0.3
and breaks in IE7:
function doUpdate() {
new Ajax.PeriodicalUpdater(''content'',
''info.html'',
{
method: ''post'',
frequency: 5,
onSuccess: function() {
$(''ajaxMessage'').innerHTML = '''';
},
onLoading: function() {
$(''ajaxMessage'').innerHTML =
''updating...'';
},
});
}
If I remove the onSuccess and onLoading functions, the script works
fine in IE. So what did I do wrong?
Also a live code found here:
http://www.dev.qtags.com/temp/index.html
Thanks,
Mark
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---
The error I get in IE is: Line: 25 Char: 1 Error: Object expected Code: 0 -Mark --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Guess Im talking to myself at this point. After more and more fighting, I found out that its the comma after the onLoading function brackets. Since I dont have any more parameters to pass, IE complains. -Mark On May 28, 1:10 pm, rossman66 <ros...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> The error I get in IE is: > > Line: 25 > Char: 1 > Error: Object expected > Code: 0 > > -Mark--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
You''ve got a typo in your function that only affects IE and Safari.
(see below)
function doUpdate() {
new Ajax.PeriodicalUpdater(''content'',
''info.html'',
{
method: ''post'',
frequency: 5,
onSuccess: function() {
$(''ajaxMessage'').innerHTML =
'''';
},
onLoading: function() {
$(''ajaxMessage'').innerHTML =
''updating...'';
}, // <-------- REMOVE THIS COMMA !!!!!!!
});
}
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---