IE UserAgent 문제

언어/Javascript 2009/07/10 17:26
자세한 내용 : http://blogs.msdn.com/ie/archive/2009/01/09/the-internet-explorer-8-user-agent-string-updated-edition.aspx

The Trident/4.0 User-Agent String

In order to help users visit sites that block the “MSIE 8.0” user-agent string, IE8 will send the “MSIE 7.0” version information when viewing sites with Compatibility View enabled. As Scott described last August, a new “Trident” token in the User-Agent string allows your code to detect Internet Explorer 8 clients even when they are using the Compatibility View feature.

IE8 on Windows Vista (Compatibility View)

Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0)

IE8 on Windows Vista

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)

As noted in the Best Practices for detecting the IE version, we recommend that web developers do not block access to content based on the user-agent string of the browser. If you must offer different content to different versions of the browser due to improved capabilities, you should ensure that future versions of the browser are not blocked.

Serving content based solely on the user-agent string is often an unreliable way to detect the full capabilities of the browser, because the user might have adjusted some settings, such as disabling script or extensions.

The Windows 7 User-Agent String

On Windows 7, IE8 will send the User-Agent string with the new Windows NT version token.

IE8 on Windows 7

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0)


IE8이 IE7 호환성 보기로 동작할때 navigator.userAgent 찍어보니 MSIE값이 7.0으로 나오고 화면은 깨져보여서 싯급했다.. 흑..

설정

트랙백

댓글

Mocha UI

언어/Javascript 2009/05/07 22:12
아악.. 쓴 글이 다 날아갔어요 크롬에서 썻더니... OTL 한번찍고..

Mocha UI
Mootools를 기반으로 한 UI개발 라이브러리입니다.
나온지는 꽤 됀것 같네요. 일단 크로스브라우징을 지원하며 IE8에서의 테스트도 하는 중인것같네요.
아직 0.9버전이지만, IE8이 정식으로 릴리즈 되면 1.0버전을 내놓을 것이라고 하는군요~
Canvas태그를 이용해 곡선이나 그림자등을 손쉽게 구현할 수 있게 해줍니다.
IE에서는 Canvas태그를 지원하진 않지만 동일한 기능을 구현할 수 있도록 ExplorerCanvas 를 이용하여 IE에서도 구현이 가능하네요. 
하.. 깔끔한 디자인 간결한 html 좋군여!


사이트 : http://mochaui.com/

설정

트랙백

댓글

GNB 때문에 골치..

언어/Javascript 2009/01/11 12:54
GNB 기능 중 레이어를 띄워야하는데..

아흑..

일단 지금 생각으로는

<gnb/>
<iframe>
<frameset/>
</iframe>

의 구조를 생각해본다능.. frameset에서 계속 iframe의 높이 조절을 위한 스크립트를 하나 추가.

하지만 왠지 기억에 iframe때문에 IE에서 세로 스크롤바가 생겻던 것 같은 기억이 난다.

흑흑...

테스트는 쇼핑갔다와서.. =33
GnB

설정

트랙백

댓글

AJAX Interview Questions

언어/Javascript 2008/08/07 23:14

AJAX Interview Questions

What is AJAX?

Ajax is an acronym for “Asynchronous JavaScript And XML.” Web pages are endowed with snippets of code that can access remote services (like web services) and not refresh the page. This prevents “round tripping” which is the cause for display flicker and slow response times.


Is the server or the client in control in AJAX?

It depends. With AJAX the answer is more in between. Control can be more centralized in a server-side component or as a mix of client-side and server-side controllers.

Centralized server-side controller - When having a more centralized controller the key is to make sure the data in client-side page is in sync with that of the server. Some applications may keep all the state on the server and push all updates to client DOM via a simple JavaScript controller.
Client and server-side controllers - This architecture would use JavaScript to do all presentation related control, event processing, page manipulation, and rendering of model data on the client. The server-side would be responsible for things such as business logic and pushing updated model data to the client. In this case the server would not have intimate knowledge of the presentation short of the initial page that would be sent to the client page request.

There are some use cases where an entire AJAX application can be written in a single page. Keep in mind if you choose this type of architecture that navigation and bookmarking should be considered.


What is the XMLHttpRequest object?

How do I get the XMLHttpRequest object?

How do I abort the current XMLHttpRequest?

What is the role of Ajax in enhancing user experience?
AJAX is not a new technology but a combination of several existing technologies in a new way. These include HTML, CSS, DOM, XML, XSLT, XMLHttpRequest and Javascript. The acronym AJAX stands for Asynchronous Javascript and XML. AJAX is based on open standards supported by many browsers and platforms. AJAX is a new paradigm for building web application.


How can I call a Java method from Javascript?
Which browsers support AJAX?

Is there any way that an AJAX object can get back a record set?

You could build an XML document out of your recordset and send that back to the server, say you had a redord set for a “user” with the following details (name, surname, age, email), you could build an xml document like this:

Code:


Byron
Tymvios
25
email@address.com


User
Someone
39
myAddy@address.com

You can add as many records as you have in your recordset, then once the client has received it you can use javascript to iterate over the ’s in the xml.


What are the different frameworks available In AJAX?

A good framework is “Zephyr”.
It is used with php and seems to be very easy to use.
Prototype.JS Framework is available with detailed documentation, its very easy to handle AJAX and JavaScript, Introduce $ concept its very simple, For Ajax specially u don’t need to check cross broswer, Open, Close and error handling through traditional AJAX.


Who invented AJAX?

Microsoft first implemented the XMLHTTPRequest object in Internet Explorer 5 for Windows as an ActiveX object. It is the term coined after this support.

Asynchronous javascript and XML. Nobody invented AJAX, Jesse James Garrett of Adaptive Path coined the phrase early 2005 - but the tech was already in place much earlier than that.


Does Java have support for Comet style server-side push?

Are there any security issues with AJAX?

JavaScript is in plain view to the user with by selecting view source of the page. JavaScript can not access the local filesystem without the user’s permission. An AJAX interaction can only be made with the servers-side component from which the page was loaded. A proxy pattern could be used for AJAX interactions with external services.

You need to be careful not to expose your application model in such as way that your server-side components are at risk if a nefarious user to reverse engineer your application. As with any other web application, consider using HTTPS to secure the connection when confidential information is being exchanged


Should I use an HTTP GET or POST for my AJAX calls?
AJAX requests should use an HTTP GET request when retrieving data where the data will not change for a given request URL. An HTTP POST should be used when state is updated on the server. This is in line with HTTP idempotency recommendations and is highly recommended for a consistent web application architecture


Does AJAX work with Java?




겐도님 답변좀. 이라고 하면 혼나겠지용-.-

설정

트랙백

댓글