Monday, October 26, 2009

DW3 behavior (Behaviors) complete contact (5)

   The pattern of the browser now is dichotomy the world, it is IE a minute, it is NetScape another minute, have in domestic Ie have absolutely rate, the webpage that below this kind of circumstance we design wants only compatible it went, but NetScape is in abroad or a lot of people are used, after all the patriarch that she is a browser. The Check Browser that we can use DW to offer (examination browser) behavior will make our website provides affinity more, what carry a browser according to the client is different the page that will choose to differ, I am asked to slowly below come.

One, understanding Check Browser edits the window



    At first view edits the window this to still fear a bit, have a lot of option, did the mechanism that understands this act to need not fear, this action is completed by a group of complex condition statements, make a choice according to the result of judgement, choose between 3 webpages firstly. This behavior can judge two kinds of browsers clearly: Netscape and Ie, not be entirely of these two kinds of browsers does Other Browser processing. Browser of judgement avery kind of can have 3 kinds of option, go To URL (open appoint a file) , go To Alt URL (open another appoint a page) , stay On This Page (stay in this page) . URL and Alt URL are definition Go To URL and the page that Go To Alt URL points to.

2.Check Browser (check a browser) common application
    When enabling Check Browser, you should prepare two pages the least, one is the page that can browse normally below IE, one is brows ed normally below Netscape. If want to develop the function of this behavior adequately, that has to prepare 3 pages, detect when the webpage the client carries browser kind is not the 3rd page is enabled when IE and Netscape. How to write those option, what not was necessary to tell here is too detailed, because his flexibility is very big, but be necessary to explain the working technological process of this behavior a bit more detailed, by on I say the option of the graph, above all webpage judgement browser is Netscape4.0 Or Later, if be if the page that opens Go To URL to point to, if not be (Otherwise) Netscape4.0 Or Later however the version before it, also open the page that Go To URL appoints; If the webpage judges the word that the browser is Ie4.0 Or Later to stay in current page, if version is lower than Ie4.0 Or Later, stay in current page likewise; If the browser of webpage judgement is of other (Other Browsers) when, open the page that Go To Alt URL appoints.

    Emphasize finally a bit, your Check Browser behavior should be added in page of Stay On This Page.

No comments:

Post a Comment