IE8 using accelerators (activities) _javascript techniques

Source: Internet
Author: User

There is a detailed introduction to accelerators in the http://ie.microsoft.com/activities/zh-chs/default.aspx.

In http://msdn.microsoft.com/en-us/library/cc289789 (vs.85). aspx is also described.

Because activities is described with an XML file, the XML file provides a user interface, such as how the browser communicates with the server through a URL template. Web-based services should take advantage of xml-based activities because XML activities is easier to create, test, and deploy to users.

We want to create a activities only need a activities XML file, and then need a Window.external.AddService (' activiites XML file '), simple and easy to use.

For example: We need to use the blog park in the IE8 browser to look for, you need to configure the following XML file, if named Cnblogs.xml

Copy Code code as follows:

<?xml version= "1.0" encoding= "Utf-8"?>
<os:openservicedescription
xmlns:os= "http://www.microsoft.com/schemas/openservicedescription/1.0" >
<os:homepageUrl>http://zzk.cnblogs.com/</os:homepageUrl>
<os:display>
<os:name> go to cnblogs search to see </os:name>
<os:description>so,then ... And then there's the AH .</os:description>
<os:icon>http://www.cnblogs.com/favicon.ico</os:icon>
</os:display>
<os:activity category= "Cnblogs" >
<os:activityaction context= "Selection" >
<os:preview action= "Http://zzk.cnblogs.com/s?w={selection}" ></os:preview>
<os:execute action= "Http://zzk.cnblogs.com/s?w={selection}" method= "get" >
</os:execute>
</os:activityAction>
</os:activity>
</os:openServiceDescription>

onclick= "Window.external.AddService (' Cnblogs.xml ')" can be triggered with an event event, which will eject the following interface

Then we can use the same as the PowerWord word function, the effect is as follows

Right-click in IE8--> all Accelerators--> Management Accelerator can manage existing accelerators as follows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.