Javascript Test Page
April 11th, 2006 by Sarah KingI’ve just been playing with javascript changing the style of an item directly as part of my prep for an AJAX integrated project. Making sure the code is cross browser is really important so I pulled together some bits and pieces from all over the place and have put together a test page with tabbed forms and a style changer.
The key elements are the ability to get the element using any of the browser types. Read the rest of this entry »
Using RSS-to-Javascript.com to parse an RSS Feed
December 13th, 2005 by Sarah KingA quick search on Google came up with this free service to intelligently parse an RSS feed into a javascript feed.
You don’t have full control of the layout but for most of us it will be more than enough. Read the rest of this entry »
AJAX – finally!
October 11th, 2005 by Sarah KingI’ve been wanting to have a play with AJAX for ages and had book marked Rasmus’ 30 second AJAX Tutorial so tonight I took 30 seconds, which turned into 30 minutes and had a play.
I’ve extended his example slightly – to include a javascript fix and to make it a bit more browser safe – because I have Opera 7 as my test browser and it doesn’t work, but does for Opera 8 (apparantly). Read the rest of this entry »
Submitting a form using Javascript
September 17th, 2005 by Sarah KingIt’s sometimes necessary to submit a form using javascript rather than by using the normal serverside validation (or as well as). This is a handy example of how to do it… Read the rest of this entry »
Changing the page title using javascript
June 22nd, 2005 by Sarah KingDon’t do this!!! There is absolutely no point in changing a page’s title by using Javascript. Read the rest of this entry »
Call php from javascript
June 21st, 2005 by Sarah KingThis is a Frequently Asked Question for beginners getting to grips with the whole clientside versus serverside programming topic.
- Javascript can only run in the browser.
- PHP can only run on the webserver.
OnClick JS in the link ahref
April 23rd, 2005 by Sarah KingOver at Digitalpoint I spotted a thread titled OnClick JS in the link ahref and I suggested a test. I mulled it over and decided to test it myself. Read the rest of this entry »
Blocking Right Mouse Clicks
April 14th, 2005 by Sarah KingWhen I’m navigating around a good site I’ll often have several pages open at once, either as IE windows, or Firefox tabs. I’ll see a link and think “I need to read that when I’m done here, I’ll load it now”, right mouse click and get it going.
Sometimes people are trying to protect their images and page source by blocking the right mouse click. This really annoys me and usually I don’t proceed with the site. The owner has just lost all credibility.
Why that’s pathetic
- The main browser menu still works and will reveal the source
- You are only viewing the html and javascript – anything that is intellectual property should be contained in the serverside script
- Any javascript should be in a separate file, harder to get to but still accessible.
- If you’re trying to protect your images it’s too late, they’re already in my cache and I can retrieve them from there if I really, really want them, but copyright helps. If they’re not needed for a link then consider hiding their location by placing them as backgrounds in the CSS. Not foolproof but the casual image stealer will be stumped.
So if you’re tempted to throw some javascript like this on the page, please, please think again.
