Tải bản đầy đủ - 0 (trang)
Chapter 9. Site Statistics Gadget with Ajax-An Information Gadget

Chapter 9. Site Statistics Gadget with Ajax-An Information Gadget

Tải bản đầy đủ - 0trang

Chapter9.SiteStatisticsGadgetwith

Ajax—AnInformationGadget

"Thevalueofanidealiesintheusingofit."

—ThomasEdison

INTHISCHAPTER

TheGoal

FeaturesandTechnology

DesignConsiderations

DevelopingtheGadget



TheGoal

TheSiteStatisticsGadgetprovidesaconciseviewofcounter

andstatisticsservices.Thedataisprovidedby

www.sitemeter.com(seeFigure9.1).ThegadgetusesAjax

technologytoasynchronouslyacquirethedatafromawebAPIs

providedbySiteMeter.Thegadgetalsoshowshowtoextracta

partofanonlinewebpageintheflyoutwindowanddisplay

dynamicallygeneratedgraphsandstatisticsthattheserver

applicationcreates.Ajaxtechnology,asyousawinPartII,

helpsacquiredatafromonlinesourcesinanasynchronousway.

Figure9.1.TheSiteStatisticsGadgetfromSiteMeter.



ThegoalsoftheSiteStatisticsGadgetareasfollows:

Provideasubsetofaserviceprovidedbythefreeonline

servicewww.sitemeter.com



Showstatisticaldataforpagevisitsandpageviews

Includeanadditionalfeatureforregions,browsers,and

operatingsysteminformation

Provideashortcutlinktovisitthewebsitefordetail

statistics

IncludethecapabilitytoaddmultiplewebsitestotheSite

StatisticsGadgetandtoeasilyselectbetweenwebsites

Figure9.2showshowthegadgetappearsintheSidebar.

Figure9.2.SimpleviewoftheSiteStatisticsGadgetin

theVistaSidebar.



Background—www.sitemeter.com

SiteMeterisanonlinewebservicethatprovidescomprehensive

real-timewebsitetrackingandcountertools.Thisgives

customersinstantaccesstovitalinformationanddata

regardingtheirwebsites'audiences.Itprovidesdatarelatedto

visits,pageviews,andreferrallinksinaneasy-to-understand

manner.

SiteMeterprovidesacounterwidget,achunkofJavaScriptcode

thatcanbeembeddedinawebsiteandprovidesavisitor

counteranddetailedstatisticsofpageviewsandvisits.The

informationisaccumulatedbythewww.sitemeter.comprovider

andisaccessibleasanonlinewebservice.

ThefollowingcoderepresentstheCounterWidget,whichis



embeddedinthewebsitehttp://innovatewithgadgets.com.

90



CodeView:






—ThomasEdison

INTHISCHAPTER

TheGoal

FeaturesandTechnology

DesignConsiderations

DevelopingtheGadget



TheGoal

TheSiteStatisticsGadgetprovidesaconciseviewofcounter

andstatisticsservices.Thedataisprovidedby

www.sitemeter.com(seeFigure9.1).ThegadgetusesAjax

technologytoasynchronouslyacquirethedatafromawebAPIs

providedbySiteMeter.Thegadgetalsoshowshowtoextracta

partofanonlinewebpageintheflyoutwindowanddisplay

dynamicallygeneratedgraphsandstatisticsthattheserver

applicationcreates.Ajaxtechnology,asyousawinPartII,

helpsacquiredatafromonlinesourcesinanasynchronousway.

Figure9.1.TheSiteStatisticsGadgetfromSiteMeter.



ThegoalsoftheSiteStatisticsGadgetareasfollows:

Provideasubsetofaserviceprovidedbythefreeonline

servicewww.sitemeter.com



Showstatisticaldataforpagevisitsandpageviews

Includeanadditionalfeatureforregions,browsers,and

operatingsysteminformation

Provideashortcutlinktovisitthewebsitefordetail

statistics

IncludethecapabilitytoaddmultiplewebsitestotheSite

StatisticsGadgetandtoeasilyselectbetweenwebsites

Figure9.2showshowthegadgetappearsintheSidebar.

Figure9.2.SimpleviewoftheSiteStatisticsGadgetin

theVistaSidebar.



Background—www.sitemeter.com

SiteMeterisanonlinewebservicethatprovidescomprehensive

real-timewebsitetrackingandcountertools.Thisgives

customersinstantaccesstovitalinformationanddata

regardingtheirwebsites'audiences.Itprovidesdatarelatedto

visits,pageviews,andreferrallinksinaneasy-to-understand

manner.

SiteMeterprovidesacounterwidget,achunkofJavaScriptcode

thatcanbeembeddedinawebsiteandprovidesavisitor

counteranddetailedstatisticsofpageviewsandvisits.The

informationisaccumulatedbythewww.sitemeter.comprovider

andisaccessibleasanonlinewebservice.

ThefollowingcoderepresentstheCounterWidget,whichis



embeddedinthewebsitehttp://innovatewithgadgets.com.

90



CodeView:





Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Chapter 9. Site Statistics Gadget with Ajax-An Information Gadget

Tải bản đầy đủ ngay(0 tr)

×