<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>simon r jones &#187; JavaScript</title>
	<atom:link href="http://www.simonrjones.net/category/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.simonrjones.net</link>
	<description></description>
	<lastBuildDate>Tue, 24 Jan 2012 00:06:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A contents index for Zend Framework manual pages</title>
		<link>http://www.simonrjones.net/2010/08/contents-index-for-zf-manual-pages/</link>
		<comments>http://www.simonrjones.net/2010/08/contents-index-for-zf-manual-pages/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 22:24:36 +0000</pubDate>
		<dc:creator>Simon R Jones</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Zend Framework]]></category>

		<guid isPermaLink="false">http://www.simonrjones.net/?p=239</guid>
		<description><![CDATA[The good old Zend Framework manual pages do suffer from being somewhat lengthy. I&#8217;ve thought they could do with an index to make navigation easier on those oh-so-long pages. So I wrote a quick JavaScript bookmarklet to do just that.


Just drag this ZF Manual Index bookmark onto your browser bookmarks bar. Clicking the bookmark will [...]]]></description>
			<content:encoded><![CDATA[<p>The good old <a href="http://framework.zend.com/manual/en/">Zend Framework manual pages</a> do suffer from being somewhat lengthy. I&#8217;ve thought they could do with an index to make navigation easier on those oh-so-long pages. So I wrote a quick JavaScript bookmarklet to do just that.</p>
<p><span id="more-239"></span><br />
<img src="http://www.simonrjones.net/wp-content/uploads/2010/08/Picture-2.png" alt="The content index inserted into a ZF manual page" title="The content index inserted into a ZF manual page" width="653" height="370" class="aligncenter size-full wp-image-243" /></p>
<p>Just drag this <a id="rs-login" href="javascript:ZF();function ZF(){var m=document.getElementById('manual-container');var h=C('h2');h.innerHTML='Index of Contents';var l=C('ul');var d=m.getElementsByTagName('div');var c=d.length;for(var y=0;y<c;y++){if(d[y].className=='section'){var i=C('li');var a=C('a');S(a,'href','#'+d[y].id);a.innerHTML=d[y].getElementsByTagName('h1')[0].innerHTML;A(i,a);A(l,i)}}var p=m.getElementsByTagName('hr')[0];m.insertBefore(C('hr'),p);m.insertBefore(h,p);m.insertBefore(l,p)}function C(n){return document.createElement(n)}function S(e,n,v){e.setAttribute(n,v)}function A(e,c){e.appendChild(c)}" onclick="alert('Drag this button onto your browser bookmarks bar.'); return false;">ZF Manual Index</a> bookmark onto your browser bookmarks bar. Clicking the bookmark will add a contents index to the top of any Zend Framework manual page. Helpful links ahoy!</p>
<p>If you want to <a href="/code/zf-manual-index.js">view the source code take a peek over here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonrjones.net/2010/08/contents-index-for-zf-manual-pages/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Multiple accounts for my.rackspace.com</title>
		<link>http://www.simonrjones.net/2009/11/multiple-accounts-for-my-rackspace/</link>
		<comments>http://www.simonrjones.net/2009/11/multiple-accounts-for-my-rackspace/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 14:53:43 +0000</pubDate>
		<dc:creator>Simon R Jones</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.simonrjones.net/?p=53</guid>
		<description><![CDATA[We host most of our client sites at Rackspace so we have a fair few servers and different accounts we need to login with whenever accessing the my.rackspace.com portal.
While the site has a cookie to remember the last entered account number and username, it doesn&#8217;t help if you have half a dozen different accounts you [...]]]></description>
			<content:encoded><![CDATA[<p>We host most of our client sites at <a href="http://www.rackspace.co.uk">Rackspace</a> so we have a fair few servers and different accounts we need to login with whenever accessing the <a href="http://my.rackspace.com">my.rackspace.com</a> portal.</p>
<p>While the site has a cookie to remember the last entered account number and username, it doesn&#8217;t help if you have half a dozen different accounts you need to login with on a frequent basis. Switching browsers can be impractical and remembering the account IDs can just get tiring.</p>
<p>To solve this problem I created the My.Rackspace bookmarklet for logging in with multiple accounts. When clicked it takes you to my.rackspace.com. If you&#8217;re already there, it displays a select list of your different accounts and populates the login form once you&#8217;ve chosen.<br />
<span id="more-53"></span><br />
Since you&#8217;ll have your own account IDs and usernames just enter your details into the form below. Enter your account ID and account names in CSV format like the example shown in the form. The next page will display details on how to use the bookmarklet.</p>
<p>If you want to download the JavaScript source code please see <a href="/code/my-rackspace/bookmarklet.js">bookmarklet.js</a>. Please note this is only tested on Firefox, Safari and Opera.</p>
<form class="simple-form" action="/code/my-rackspace/index.php" method="POST"> <fieldset></p>
<div><label for="user">Username</label></p>
<input id="user" name="user" type="text" /></div>
<div><label for="accounts">Account ID, Account Name (CSV format)</label><br />
<textarea id="accounts" name="accounts">012345, My Account name<br />
678910, My other account name</textarea></div>
<div>
<input class="submit" type="submit" value="create bookmarklet" /></div>
<p></fieldset><br />
</form>
<p>Obviously Rackspace could also solve this issue by changing the login screen code themselves. But for now, I hope this is useful to some people.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.simonrjones.net/2009/11/multiple-accounts-for-my-rackspace/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

