Africa Posts - .geographical media - RSShttp://geographicalmedia.com/africa/posts/topic/web/rss/xmlPosts about web from Africahttp://geographicalmedia.comWed, 07 Jan 2009 22:03:44 GMThttp://geographicalmedia.comExplore Geohttp://geographicalmedia.com/_ui/style/img/admin/explore-lara.gifhttp://geographicalmedia.comRSS Provided by .geographical mediaHow to build a live comment preview with Javascript and HTMLhttp://geographicalmedia.com/africa/gambia/post/2008/2/27/building-a-live-comment-preview-with-with-javascriptIn recent times, it has become quite a trendy and nifty trick to show a live comment preview on a lot of blog websites. I remember just how excited i...<div class='ShowMediaItem'><div class='ShowMediaDate'>Thursday, March 27, 2008</div><div class='ShowMediaBody'>In recent times, it has become quite a trendy and nifty trick to show a live comment preview on a lot of blog websites. I remember just how excited i was the first time i saw this in action on a dotnet blogengine application. In this article i will show you how to implement a live comment preview on your website with just simple javascript and HTML.<br /> <br /> Okay, to get started i will start by creating a javascript(.js) file with the following on it. <p> <code> function ShowCommentPreview()<br /> {<br /> &nbsp;&nbsp;// Access the HTML elements we care about from our page<br /> &nbsp;&nbsp;var enteredCommentName = document.getElementById(&quot;CommentName&quot;);<br /> &nbsp;&nbsp;var previewCommentName = document.getElementById(&quot;CommentPreviewName&quot;);<br /> &nbsp;&nbsp;var enteredComment = document.getElementById(&quot;CommentBody&quot;);<br /> &nbsp;&nbsp;var previewComment = document.getElementById(&quot;CommentPreviewBody&quot;);<br /><br /> &nbsp;&nbsp;// Let javascript do it's final bit of magic<br /> &nbsp;&nbsp;previewCommentName.innerHTML = enteredCommentName.value + &quot; Says: &quot;;<br /> &nbsp;&nbsp;previewComment.innerHTML = enteredComment.value;<br /> } </code></p> <p> As you can see the javascript is almost self explanatory. First, I declared variables and i assigned various id's of the HTML elements i cared about to them from our page. Finally i take the value of the entered comment and placed it as the value of the comment preview.</p> <h3>Some of the HTML </h3> <code> &lt;textarea id=&quot;CommentBody&quot; onkeydown=&quot;ShowCommentPreview();&quot;&gt;&lt;/textarea&gt; </code> <p> Finally, i added a HTML attribute to the textarea called the "onKeydown" which is a special javascript thing that we use to wired up the HTML and the javascript method to do the final trick. </p> <p> That's it ... pretty easy thing to do. I hope you will enjoy building it on your own website. Good luck. </p> Download the Sample file <a tile="Live comment preview sample" href="http://laminbarrow.com/_library/downloads/zip/live-comment-preview.zip" >live-comment preview.zip (4kb).</a></div></div>Thu, 27 Mar 2008 09:46:36 GMTEye-Fi for your Wi-Fihttp://geographicalmedia.com/africa/post/2008/3/14/eyefi-for-your-wifiTechnology and gadgets enthusiasts were in their element at the recent International Consumer Electronics Show (CES) 2008. The show demonstrates new...<div class='ShowMediaItem'><div id="FeaturedViewer"><img id="PicViewFeatured" src='http://wow.gm/_library/pictures/technology, computers, science/eye-fi-d.jpg' /></div><div class='ShowMediaDate'>Friday, March 14, 2008</div><div class='ShowMediaBody'><p>Technology and gadgets enthusiasts were in their element at the recent International Consumer Electronics Show (CES) 2008. The show demonstrates new developments in technology and showcases products that will be big in the coming year. Various prizes were awarded, and this year the winner of the Last Gadget Standing was the Eye-Fi, a wireless memory card for your camera. </p><p>The Eye-Fi card holds 2GB of data and has a small internal Wi-Fi antenna that automatically uploads photos to your computer or the web. The card has built-in support for 18 online photo services such as Facebook, Flickr, Typepad, as well as genuine photo centres such as Wal-Mart, KODAK, and Costco. For the Eye-Fi card to work you still need to run desktop software that will enable you to connect the card to a Wi-Fi network. </p><p>The process of uploading your pictures is a simple one regardless of whether you choose to upload to your computer, the web, or both. When uploading to your computer the photos are sent wirelessly via your Eye-Fi card to the Wi-Fi network on your PC or Mac. For your computer to receive the photos in this way it must be on and the Eye-Fi software must be running. </p><p>Uploading to the web is just as easy. The card connects to your Wi-Fi network and uploads your photos to the picture sharing or social networking site that you have chosen. The Eye-Fi service then takes care of the logging-in process and passwords, and can even resize your photos to meet the requirements of the site. The procedure is totally secure and provides complete privacy to the users. The card also supplies the users with unlimited, free uploads. </p><p>Features of the card include the ability to cope with full-resolution jpeg images and a USB memory card reader to make the set-up easier. Eye-Fi cards fit digital cameras that use SD memory cards. The software works with Windows XP, Windows Vista, Mac OS X (10.3 and 10.4), Internet Explorer 6 & 7 (Windows only) and FireFox 2.0 (Windows and Macintosh). The card also has advanced power management to optimise the use of camera power. </p><p>One of the opening lines on the Eye-Fi website states that, “Photos shouldn’t be trapped in your camera. Set them free”. This is precisely what it’s hoped the Eye-Fi card will achieve. It will give you the freedom to take as many pictures as you want and also share them with as many people as you want. By placing them on social networking sites you share your photos with the world, perhaps to the benefit of your career or hobby. </p><p>Recommended sites: </p><p><a href="http://www.eye.fi/share/" >http://www.eye.fi/share/</a> </p><p><a href="http://blog.wired.com/gadgets/2008/01/review-eye-fi-2.html" >http://blog.wired.com/gadgets/2008/01/review-eye-fi-2.html</a> </p><p>amazins.com<br /> </p></div></div>Fri, 14 Mar 2008 06:07:28 GMT