S
Sam Williams
I'm trying out a very simple bit of Ajax using the Rails helper. While
it works just fine in Firefox, it takes about 30 seconds for it to work
in IE6.
Any ideas?
Starting with a fresh Rails app, I've added the following:
---------------------------------------------------
index_controller.rb:
---------------------------------------------------
class IndexController < ApplicationController
def index
end
def ajax
render_text "an ajax result!"
end
end
---------------------------------------------------
index.rhtml:
---------------------------------------------------
<html>
<head>
<%= javascript_include_tag "prototype" %>
</head>
<body>
<%= link_to_remote "do some ajax",
:url=>{
:controller=>"index",
:action=>"ajax"
},
:update=>"results"
%>
<div id="results">
nothing yet
</div>
</body>
</html>
it works just fine in Firefox, it takes about 30 seconds for it to work
in IE6.
Any ideas?
Starting with a fresh Rails app, I've added the following:
---------------------------------------------------
index_controller.rb:
---------------------------------------------------
class IndexController < ApplicationController
def index
end
def ajax
render_text "an ajax result!"
end
end
---------------------------------------------------
index.rhtml:
---------------------------------------------------
<html>
<head>
<%= javascript_include_tag "prototype" %>
</head>
<body>
<%= link_to_remote "do some ajax",
:url=>{
:controller=>"index",
:action=>"ajax"
},
:update=>"results"
%>
<div id="results">
nothing yet
</div>
</body>
</html>