File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Need help with Positioning Auto complete div using AJAX and Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Need help with Positioning Auto complete div using AJAX and Javascript" Watch "Need help with Positioning Auto complete div using AJAX and Javascript" New topic
Author

Need help with Positioning Auto complete div using AJAX and Javascript

sravani jetty
Ranch Hand

Joined: Jun 06, 2007
Posts: 38
Hi,

I am having issues in positioning the div in IE. Code I have works fine in all other browsers except in IE. I have a auto complete text box and an ajax call onKeyup event. The response is set in a div and the javascript for positioning this div doesn't work fine in IE. Any suggestions are very much appreciated.


I have this div in my page



Thanks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
It would be a lot more efficient if you did the looping for the X and Y position together instead of doing it separately.

What doesn't work in IE? Did you check the values as it loops?

Eric
sravani jetty
Ranch Hand

Joined: Jun 06, 2007
Posts: 38
Hi Eric,

Thank you for your reply. I tried getting the X and Y positions together as well. Problem I am having is the div aligns properly in all other browsers except in IE. In IE the div positions to the left. To get exactly below the textbox i have to do something like below


But with the above code it doesn't aligns properly in other browsers.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need help with Positioning Auto complete div using AJAX and Javascript
 
Similar Threads
Display problem of drop down and div
problem as menu show behind of flash~ pls help
JavaScript Calendar Popup
How to set relative position for dialog box when scroll bars are activated?
Resizing HTML Table Columns