This is my  search.erb code:
-----------------------------
   1. <div class="form-button"><%= submit_tag('search',
:onclick=>'show_wait()')%></div>
   2. <% end -%>
   3. <div id="wall" style="display:none;"><div id="wait">
   4.   <script type="text/javascript">
   5.     new Ajax.Updater("wait", "<%= url_for :controller => :util,
:action => :searching %>",
   6.       {parameters: "authenticity_token=" + encodeURIComponent(<%=
form_authenticity_token.to_json %>),
   7.         asyncronous: true, evalScripts: true });
   8.   </script>
   9. </div></div>

And this is my searching.erb
----------------------------
   1. <center>
   2. <br/>
   3. <img src="/images/loading.gif" alt="Loading"/>
   4. <br/>
   5. please wait
   6. <br/>
   7. </center>

util_controller  class
----------------------------
   1.  def searching
   2.     render :layout => false
   3.   end

and the last search.js
-------------------------
   1. function show_wait()
   2. {
   3.     window.scroll(0,0);
   4.     var wait_window_margin_height = 10;
   5.     var wait_window_margin_width = 20;
   6.     $('wall').style.width = getBrowserWidth() + "px";
   7.     $('wall').style.height = getBrowserHeight() + "px";
   8.     $('wait').style.top = wait_window_margin_height + "px";
   9.     $('wait').style.height = getBrowserHeight() -
(wait_window_margin_height * 2) + "px";
  10.     $('wait').style.left = wait_window_margin_width + "px";
  11.     $('wait').style.width = getBrowserWidth() -
(wait_window_margin_width * 2) + "px";
  12.     $('wall').show();
  13. }
  14.
  15. function hide_wait()
  16. {
  17.     $('wall').hide();
  18. }

this program is working properly with firefox and opera but
It is not working on IE.
where is my mistake or problem?
did I forget something???
please help me!

PS: I posted this question a couple of days on another forum, but no
reply no anything. Please help me about this problem...
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to