mbe.ro
<h2>What is this web-site?</h2> <br/> <start_coding(); //just some tips and tricks for web programmers<br/>echo "Hope this is helpful to you";<br/>?>

jurb – Javascript URL Rewrited Bookmarker

April 10, 2009 at 3:00 PM

Good for AJAX, Flash and many more (what ever you set your mind to use it with).

How it started:
Long ago I had faced a problem. I made ajax based applications (pages loaded dynamically using ajax) and users could not bookmark pages. So I googled and googled and found this. But that is not exactly what I wanted (the age of variable=value is somewhat gone) so I made my own rewrited bookmarker so links would looke like this:

http://www.mbe.ro#pages/home

I called it jurb and it is quite easy to use. Simply insert the code below into your header and “watch the magic”.

<script type="text/javascript" src="js/jurb.js"></script>

After that, at any time simply use

jurb.getLocation();

and you will have an array like this:

  • 0 is the hall string
  • from 1 to inf. are the “/” separated values from the link

You also have the onChange and the onLoad which you probably figured out what they do.

One example is here and the code can be downloaded from here.

Enjoy :) .

No Comments

Nobody has posted any comments to this article. Be the first to post a comment.

Add a comment

Name:
 
Email:
 
Website:
 
Comment: