# Ajax.Updater and IE problem

**URL:** <https://www.ruby-forum.com/t/ajax-updater-and-ie-problem/158634>\
**Category:** Rails\
**Created:** [January 26, 2009, 8:23am UTC](https://www.ruby-forum.com/t/ajax-updater-and-ie-problem/158634 "2009-01-26T08:23:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ahmet](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@ahmet](https://www.ruby-forum.com/u/ahmet)\
**Post date:** [January 26, 2009, 8:23am UTC](https://www.ruby-forum.com/t/ajax-updater-and-ie-problem/158634/1 "2009-01-26T08:23:32Z")

</div>

## This is my search.erb code:

1. 
\<%= submit\_tag('search',

:onclick=\>‘show\_wait()’)%\>

  
2. \<% end -%\>  
3. 

  
4.   
9. 

## And this is my searching.erb

  1. 
  2.   
  3. ![Loading](https://test.ruby-forum.com/images/loading.gif)
  4.   
  5. please wait
  6.   
  7. 

## 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…
