4

I am about to wrap up the implementation for my first ExtJS based application. But I am facing a weird issue at this point.

I am using ASP.net at the server and then ExtJS at the client. I noticed that, If I run this project from Visual Studio Debugger then it works nice, and in that case my browser URL was set to

http://localhost/MyApp/Home.aspx

But As soon as I open a new browser and hit

http://MyWorkStationName/MyApp/Home.aspx

it behaves slightly different. For instance, some Button Shapes are not rendered properly. See this image

Can any body give me a clue how can I debug this issue. basically how the style can be influenced by the machine name vs localhost in URL ?

Thanks in advance!

3
  • 1
    do you have an external css file? maybe there is something wrong with the path Commented Feb 4, 2011 at 14:01
  • Do you have a hard-coded CSS URL that is pointing at localhost? Just a stab in the dark, it's hard to tell. Commented Feb 4, 2011 at 14:01
  • no, they are defined with their relative path. Commented Feb 4, 2011 at 17:36

3 Answers 3

6

I too had the same issue. This is due to the compatibility issue in ie8. go to tools->compatibility View Settings uncheck "Display intranet sites in Compatibility view.

In local host or when we run from VS. It is not in Compatibility mode. And works fine in ie or in FF. But as soon as we change the local host to hostname/machinename it is going to compatibility view(default setting). Jquery drag and drop functionality was also creating some problem. when it was running in compatibility view.

Sign up to request clarification or add additional context in comments.

Comments

2

Use this first in header: <meta http-equiv="X-UA-Compatible" content="IE=9">

1 Comment

This may indeed be the solution, but it would also be good to explain why. (see @kirant400's answer)
0

You can use Firebug or IE Developer tools to debug the css ( >= IE 8 preferably if Firefox is not an option.).

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.