Gadget Rewriting
Transkript
Gadget Rewriting
Main - GadgetRewriting Gadget Rewriting The VF Park rewrites content of gadgets automatically. The rewriting result contains invocations of embedded proxy server. Developer can include such invocations already when writes a gadget's code. This rewriting feature is disabled on VF Park Sandbox to avoid any caching there. VF Park automatically rewrites values of following HTML attributes: HTML Element link script embed img style input HTML Attribute href src src src url (CSS URI) src Gadget XML Source HTML Rendered within VF Park <img src="http://www.dvc.cz/gadget/vodafone/logo_ilegalne.gif" <img src="/apps/gadgets/proxy?url=http%3A%2F%2Fwww.dvc.cz%2Fgadget%2Fvodaf width="130" height="29" alt="" border="0" /> <input type="image" id="search-button" src="http://www.dvc.cz/gadget/vodafone/button_hledej_orange.gif" <input type="image" id="search-button" src="/apps/gadgets/proxy?url=http%3 alt="Hledej"> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script> <script src="/apps/gadgets/concat?rewriteMime=text/javascript&gadget=http% <script src="http://www.google-analytics.com/ga.js" type="text/javascript"></script> .lichy .pool { .lichy .pool { background-image: url("http://www.codeasi.net/gadgets/kina/polozka_back.jpg"); background-image: url("/apps/gadgets/proxy?url=http%3A%2F%2Fwww.codeasi.ne background-repeat: repeat-x; background-repeat: repeat-x; background-color: #d5dfc7; background-color: #d5dfc7; } } Embeded Proxy Server Reference The proxy server has following URL: /apps/gadgets/proxy The proxy server accepts following parameters: • url - the encoded URL of proxied resource • gadget - the encoded URL of gadget XML (needed for proper caching) Example of invocation: /apps/gadgets/proxy?url=http%3A%2F%2Fwww.dvc.cz%2Fgadget%2Fvodafone%2Flogo_ilegalne.gif&gadget=http%3A%2F%2Fwww.dvc.c HTTPS Note The VF Park is operated over HTTPS protocol when user is logged in. When some gadget accesses unsecured content through the HTTP protocol, web browser displayes appropriate warning. To avoid such behavior developer should access to unsecured content through the embedded proxy server. Embedded Proxy Server vs. Proxy API Embedded proxy server has nothing to do with Proxy API Page 1 - naposledy upravil Václav Tolar - 2009/11/02 15:48
Podobné dokumenty
What is Gadget?
defined as XML file (gadget specification) which must be in compliance with standard Gadgets API . This file
is exposed by gadget developer on public URL. Vodafone Park contains functionality which...
are MobiLe PHoNeS deStroYiNG Good MaNNerS? Říjen 2011 Úterý
Cell phones invaded our lives very quickly and we have not had enough time
to develop some basic “good manners” rules for their use. A recent market
research study claims that almost 70% of the 1,0...