Jin Examples » WHERE Words
WHERE Words
Homepage
<jin>
<script>
loadImage("http://www.where.com/images/dd/mobile/240/widget_selected.png", "http://www.where.com/images/dd/mobile/240/back_selected.png", "http://www.where.com/images/dd/mobile/240/h_spacer.png"); // shows menu popup
function doShowPopup() {
transparencyOn(0x99000000);
document.rightCmd.src = "http://www.where.com/images/dd/mobile/240/widget_selected.png";
document.leftCmd.src = "http://www.where.com/images/dd/mobile/240/back_selected.png";
document.rightCmd.onSelect = 'doHidePopup()'; // the menu is open, change button onSelect to hide it.
document.leftCmd.onSelect = 'doHidePopup()';
showPopup();
}
// hides menu popup
function doHidePopup() {
transparencyOff();
document.rightCmd.src = "http://www.where.com/images/dd/mobile/240/widget.png";
document.leftCmd.src = "http://www.where.com/images/dd/mobile/240/back.png";
document.rightCmd.onSelect = 'doShowPopup()'; // the menu is hidden, change button onSelect to open it.
document.leftCmd.onSelect = 'back()';
hidePopup();
}
// ** functions to use in the menu **
function about() {
var fObj = document.aboutForm;
fObj.submit();
doHidePopup();
}
function wherewordshome() {
var fObj = document.homeForm;
fObj.submit();
doHidePopup();
}
function rss() {
document.rssForm.submit();
}
function map() {
var formObj = document.mapForm;
formObj.clat.value = load('pos_lat');
formObj.clng.value = load('pos_lng');
formObj.name.value = 'ME';
formObj.width.value = screenWidth();
formObj.height.value = screenHeight()-26;
formObj.submit();
transparencyOff();
}
function localsearch() {
document.localForm.submit()
}
function weather() {
document.weatherForm.submit();
}
function item(itemname, itemindex) {
var fObj = document.itemForm;
fObj.itemname.value = itemname;
fObj.itemindex.value = itemindex;
fObj.submit();
doHidePopup();
}
</script>
<form id="aboutForm" action="./about.php" method="GET">
<input type="hidden" id="widgetname" value="WHERE Words"/>
<input type="hidden" id="isbb" value="0"/>
</form>
<form id="rssForm" action="./rss.php" method="GET">
<input type="hidden" id="widgetname" value="WHERE Words"/>
<input type="hidden" id="rssfeed" value="http://www.where.com/words/feed/"/>
<input type="hidden" id="isbb" value="0"/>
<input type="hidden" id="rssurl" value="http://www.where.com/words/feed/"/>
</form>
<form id="mapForm" action="http://widget.ulocate.com/jin/map.jin" method="GET">
<input type="hidden" id="clat" value=""/>
<input type="hidden" id="clng" value=""/>
<input type="hidden" id="name" value=""/>
<input type="hidden" id="width" value=""/>
<input type="hidden" id="height" value=""/>
</form>
<form id="localForm" action="http://widget.ulocate.com/jin/local.jin" method="GET"></form>
<form id="weatherForm" action="http://widget.ulocate.com/jin/yweather.jin" method="GET"></form>
<body fullScreen="true" bg="0xFFFFFF" fg="0x000000">
<pop id="pop" sliding="up" align="right" valign="bottom">
<pr height="1"><img src="http://www.where.com/images/dd/mobile/240/h_spacer.png"/></pr>
<pr>
<list id="popList" border="0" align="left" fg="0xFFFFFF" fgfocus="0xCF5719" bg="0x000000" bgfocus="0x222222">
<listitem onSelect="about()">
<text>about</text>
<selected><listitem><text>about</text></listitem></selected>
</listitem>
<listitem onSelect="home()">
<text>where.com</text>
<selected><listitem><text>where.com</text></listitem></selected>
</listitem>
</list>
</pr>
</pop>
<header>
<text fontstyle="bold" align="center" bg="0xFFFFFF" fg="0x000000">WHERE Words</text>
</header>
<pr><ln size="1" fg="0x323232"/></pr>
<pr height="5"><text> </text></pr>
<pr><text fg="0x4C4C4E">Welcome to WHERE Words... the blog and other useful tools from where.com.</text></pr>
<pr height="5"><text> </text></pr>
<pr>
<list id="rssList" border="0" align="left" fg="0x000000" fgfocus="0xCF5719" bg="0xFFFFFF" bgfocus="0xFFFFFF">
<listitem onSelect="rss()">
<img src="http://www.where.com/images/dd/mobile/spacer.png"/>
<text> WHERE Words</text>
<selected>
<listitem>
<img src="./images/rss_sm.png"/>
<text> WHERE Words</text>
</listitem>
</selected>
</listitem>
<listitem onSelect="map()">
<img src="http://www.where.com/images/dd/mobile/spacer.png"/>
<text>Map my location</text>
<selected>
<listitem>
<img src="./images/widget_sm.png"/>
<text> Map my location</text>
</listitem>
<listitem>
<img src="http://www.where.com/images/dd/mobile/spacer.png"/>
<img src="http://www.where.com/images/dd/mobile/spacer.png"/>
<text>42.358299 / -71.060303</text>
</listitem>
</selected>
</listitem>
<listitem onSelect="localsearch()">
<img src="http://www.where.com/images/dd/mobile/spacer.png"/>
<text> Search around me</text>
<selected>
<listitem>
<img src="./images/widget_sm.png"/>
<text> Search around me</text>
</listitem>
</selected>
</listitem>
<listitem onSelect="weather()">
<img src="http://www.where.com/images/dd/mobile/spacer.png"/>
<text> Weather</text>
<selected>
<listitem>
<img src="./images/widget_sm.png"/>
<text> Weather</text>
</listitem>
</selected>
</listitem>
</list>
</pr>
<footer> <img id="rightCmd" src="http://www.where.com/images/dd/mobile/240/widget.png" onSelect="doShowPopup()"/> <img id="leftCmd" src="http://www.where.com/images/dd/mobile/240/back.png" onSelect="back()"/> </footer> </body>
</jin>
RSS Feed Page
<jin>
<script>
loadImage("http://www.where.com/images/dd/mobile/240/widget_selected.png", "http://www.where.com/images/dd/mobile/240/back_selected.png", "http://www.where.com/images/dd/mobile/240/h_spacer.png"); function doShowPopup() {
transparencyOn(0x99000000);
document.rightCmd.src = "http://www.where.com/images/dd/mobile/240/widget_selected.png";
document.leftCmd.src = "http://www.where.com/images/dd/mobile/240/back_selected.png";
document.rightCmd.onSelect = 'doHidePopup()';
document.leftCmd.onSelect = 'doHidePopup()';
showPopup();
}
function doHidePopup() {
transparencyOff();
document.rightCmd.src = "http://www.where.com/images/dd/mobile/240/widget.png";
document.leftCmd.src = "http://www.where.com/images/dd/mobile/240/back.png";
document.rightCmd.onSelect = 'doShowPopup()';
document.leftCmd.onSelect = 'back()';
hidePopup();
}
function about() {
var fObj = document.aboutForm;
fObj.submit();
doHidePopup();
}
function wherewordshome() {
var fObj = document.homeForm;
fObj.submit();
doHidePopup();
}
function item(itemname, itemindex, itemdesc) {
var fObj = document.itemForm;
fObj.itemname.value = itemname;
fObj.itemindex.value = itemindex;
fObj.itemdesc.value = itemdesc;
fObj.submit();
doHidePopup();
}
</script>
<form id="aboutForm" action="/about.php" method="GET">
<input type="hidden" id="widgetname" value="WHERE Words"/>
<input type="hidden" id="isbb" value="0"/>
</form>
<form id="homeForm" action="/index.php" method="GET">
<input type="hidden" id="widgetname" value="WHERE Words"/>
<input type="hidden" id="isbb" value="0"/>
</form>
<form id="itemForm" action="/rssitem.php" method="GET">
<input type="hidden" id="widgetname" value="WHERE Words"/>
<input type="hidden" id="itemname" value=""/>
<input type="hidden" id="itemindex" value=""/>
<input type="hidden" id="itemdesc" value=""/>
<input type="hidden" id="isbb" value="0"/>
<input type="hidden" id="rssfeed" value="http://www.where.com/words/feed/"/>
</form>
<body fullScreen="true" bg="0xFFFFFF" fg="0x000000">
<pop id="pop" sliding="up" align="right" valign="bottom">
<pr height="1"><img src="http://www.where.com/images/dd/mobile/240/h_spacer.png"/></pr>
<pr>
<list id="popList" border="0" align="left" fg="0xFFFFFF" fgfocus="0xCF5719" bg="0x000000" bgfocus="0x222222">
<listitem onSelect="about()">
<text>about</text>
<selected><listitem><text>about</text></listitem></selected>
</listitem>
<listitem onSelect="wherewordshome()">
<text>where words home</text>
<selected><listitem><text>where words home</text></listitem></selected>
</listitem>
<listitem onSelect="home()">
<text>where.com</text>
<selected><listitem><text>where.com</text></listitem></selected>
</listitem>
</list>
</pr>
</pop>
<header>
<text fontstyle="bold" align="center" bg="0xFFFFFF" fg="0x000000">WHERE Words</text>
</header>
<pr><ln size="1" fg="0x323232"/></pr>
<pr height="5"><text> </text></pr>
<pr><text fg="0x2C2C2D">WHERE Words RSS feed</text></pr>
<pr height="5"><text> </text></pr>
<pr>
<list id="rssList" border="0" align="left" fg="0x000000" fgfocus="0xCF5719" bg="0xFFFFFF" bgfocus="0xFFFFFF">
<listitem onSelect="item('How To Buy A GPS DeviceSome Tips', 0, 'It is not a stretch in any sense of the word to say that GPS is one of THE hottest technologies around these days. The innovations being made in the industry (coughWHEREcough) coupled with the increasing availability are making devices and the service itself one of the most important new trends to inundate the market. ...')"><text>1</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>How To Buy A GPS DeviceSome Tips</text> <selected> <listitem onSelect="item('How To Buy A GPS DeviceSome Tips', 0)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>How To Buy A GPS DeviceSome Tips</text> </listitem> </selected></listitem>
<listitem onSelect="item('NAVTEQ Global LBS Challenge(R) Americas Winners Announced', 1, 'NAVTEQ Global LBS Challenge(R) Americas Winners Announced! NAVTEQ announced at CTIA WIRELESS 2008 that 3 of the 4 winning applications were built on the WHERE platform. Congratulations to Mediated Spaces HeyWhatsThat and Americas Emergency Network. Each received 10000 in cash along with data licenses valued at 400000.Head over here for plenty more info on ...')"><text>2</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>NAVTEQ Global LBS Challenge(R) Americas Winners Announced</text> <selected> <listitem onSelect="item('NAVTEQ Global LBS Challenge(R) Americas Winners Announced', 1)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>NAVTEQ Global LBS Challenge(R) Americas Winners Announced</text> </listitem> </selected></listitem>
<listitem onSelect="item('WHERE Widget of the Week: FORE!', 2, 'Yes its featured again! Why you might find yourself asking? Simple the weather is FINALLY changing round these parts and instead of flaunting the Weather Widget to celebrate I decided Id throw out the Fore! Widget to show you that the very moment it gets warm enough Im ON the golf course baby.Thats right the ...')"><text>3</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>WHERE Widget of the Week: FORE!</text> <selected> <listitem onSelect="item('WHERE Widget of the Week: FORE!', 2)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>WHERE Widget of the Week: FORE!</text> </listitem> </selected></listitem>
<listitem onSelect="item('What ATT phones support WHERE?', 3, 'Straight from the FAQ to clear things up here are the AT38T Phones that support WHERE!')"><text>4</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>What ATT phones support WHERE?</text> <selected> <listitem onSelect="item('What ATT phones support WHERE?', 3)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>What ATT phones support WHERE?</text> </listitem> </selected></listitem>
<listitem onSelect="item('WHERE Developer Contest (Spring 2008)', 4, ' WHERE Developer Contest (Spring 2008)Hey developers: Build something cool on the WHERE platform and you can win cash and major distribution opportunities. Were partnering with some of the biggest names in the mobile industry to award great prizes and really put winners in the spotlight. Start working on the next big thing now. ...')"><text>5</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>WHERE Developer Contest (Spring 2008)</text> <selected> <listitem onSelect="item('WHERE Developer Contest (Spring 2008)', 4)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>WHERE Developer Contest (Spring 2008)</text> </listitem> </selected></listitem>
<listitem onSelect="item('WHERE Widget of the Week: Proxido', 5, 'Ever driven right past the grocery store and totally spaced out the fact that you need milk cereal eggs and toilet paper? Yeah join the club. Hate it? Me too.Want to do something about it? Then do. Thats right friends this week for our WHERE Widget of the Week we have something that aims to ...')"><text>6</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>WHERE Widget of the Week: Proxido</text> <selected> <listitem onSelect="item('WHERE Widget of the Week: Proxido', 5)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>WHERE Widget of the Week: Proxido</text> </listitem> </selected></listitem>
<listitem onSelect="item('Google Claiming Era of Mobile Internet Has Arrived', 6, 'Google lets face it knows their stuff. That said when they make an announcement about the direction they see web traffic turning its best to listen because its probably right on the money. What does this mean for all of us? Simple were in the Exact right place.Googles latest announcement comes in the form of ...')"><text>7</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>Google Claiming Era of Mobile Internet Has Arrived</text> <selected> <listitem onSelect="item('Google Claiming Era of Mobile Internet Has Arrived', 6)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>Google Claiming Era of Mobile Internet Has Arrived</text> </listitem> </selected></listitem>
<listitem onSelect="item('Happy St. Patricks Day from WHERE!', 7, 'Just a quick note to say that all of us here at WHERE hope you all have an amazing St. Patricks Day! Im Irish well half Irish half Scottish and as such today is a pretty big day for me and my family. Whether or not you are Irish or not doesnt really matter you ...')"><text>8</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>Happy St. Patricks Day from WHERE!</text> <selected> <listitem onSelect="item('Happy St. Patricks Day from WHERE!', 7)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>Happy St. Patricks Day from WHERE!</text> </listitem> </selected></listitem>
<listitem onSelect="item('E911 Location Just The Start', 8, 'Well speak of the devil...Monday I wrote about the school in New Jersey requiring a purchase of a special GPSenabled cell phone in case of an emergency on school property and now I find another article about how E911 Caller Location on a cell phone being just the beginning of this GPS Mobile App market.The ...')"><text>9</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>E911 Location Just The Start</text> <selected> <listitem onSelect="item('E911 Location Just The Start', 8)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>E911 Location Just The Start</text> </listitem> </selected></listitem>
<listitem onSelect="item('WHERE Widget of the Week: Irish Pub', 9, 'Everybody is Irish on St. Patricks Day...find your local Irish Pub for a little St. Patricks Day every day! I couldnt have said it any better myself! That said this week I chose none other than the Irish Pub Widget for a very special and very specific reason: It is St. Patricks Day THIS coming ...')"><text>10</text><img src="http://www.where.com/images/dd/mobile/spacer.png"/><text>WHERE Widget of the Week: Irish Pub</text> <selected> <listitem onSelect="item('WHERE Widget of the Week: Irish Pub', 9)"> <img src="./images/rss_sm.png"/> <img src="http://www.where.com/images/dd/mobile/spacer.png"/> <text>WHERE Widget of the Week: Irish Pub</text> </listitem> </selected></listitem>
</list>
</pr>
<footer> <img id="rightCmd" src="http://www.where.com/images/dd/mobile/240/widget.png" onSelect="doShowPopup()"/> <img id="leftCmd" src="http://www.where.com/images/dd/mobile/240/back.png" onSelect="back()"/> </footer> </body>
</jin>