Hi,
I''ve got a strange problem using prototype in IE (version 6 and 7).
Consider the following short example which retrieves the current date/
time from a SOAP webservice:
<html>
<head>
<script type="text/javascript"
src="prototype.js"></script>
<script type="text/javascript"
src="services.js"</script>
<!--<script type="text/javascript">
var GetServerTimeRequest = Class.create({
send: function() {
var soap ''<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/" xmlns:out="http://out.ws.user">''+
''<soapenv:Header/>''+
''<soapenv:Body>''+
''<out:getServerTime/>''+
''</soapenv:Body>''+
''</soapenv:Envelope>'';
var opt = {
method: ''post'',
requestHeaders: [
''Content-Type'',
''text/xml;charset=UTF-8'',
''SOAPAction'',''http://.../getServerTime'',
''Host'', ''...''
],
postBody: soap,
onSuccess: function(t) {
alert(t.responseText);
},
// Handle 404
on404: function(t) {
},
// Handle other errors
onFailure: function(t) {
alert(''Error '' + t.status + '' -- '' +
t.statusText);
}
}
new Ajax.Request("/....", opt);
}
});
</script>-->
</head>
<body>
<input type="button" value="webservice" onclick="new
GetServerTimeRequest().send()" />
</body>
</html>
services.js contains exactly the same JavaScript code as the script-
tag below.
If I open this site in IE it doesn''t even render the input button
(just a white page, but no error message). When I remove the reference
to services.js and uncomment the script block below everything works
fine.
Any ideas what''s wrong here?
best regards
Sebastian Klose
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---