PagerankCopyright (c) 2008 Marco Bunge (mb@envo-media.de || http://www.envo-media.com)



jBookmarkEngine 0.7.2 b

jBookmarkEngine is a plugin developed for jQuery and improves the usage of bookmarks and is an innovation especialy for AJAX based websites without reload or websites which are useing tags with the onCLick-Attribute.

jBookmarkEngine simulate an a-tag in order to manipulate the url and add an anchor (#anchor) without an reload.

Update

Install jBookmarkEngine

Just include the following files in the head of your page

like this:
<head>
<script src="http://scripts.envo-media.de/jquery/jquery.js" type="text/javascript"></script>
<script src="http://scripts.envo-media.de/jquery/jBookmarkEngine.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://style.envo-media.de/jBookmarkEngine.css">

Now you can initilize jBookmarkEngine like this:

Without Parameters
<script type="text/javascript">
$(document).ready( function(){

$("#test li").jBookmarkEngine();

});
</script>
Within Parameters
<script type="text/javascript">
$(document).ready( function(){

$("#test li").jBookmarkEngine(
$.jBookmarkEngine.format({
seperator : '/',
node: 'div',
attr: ' dir="ltr" lang="de"'
})
); });
</script>

Usable Methods

Parameters

CSS

Real World Example

envorld.de is a test page of envo-media and use the jBookmarkEngine and additional jQuery.ajax and jScrollpane.

Example

Source Code: Navigation
<ul id="test" style="list-style-type:none;"> 
<h2>Navigation</h2>
<li> Blog </li>
<li> Archive </li>
<li> Biography </li>
<li> Home </li>
</ul>
Source Code: Define your own anchor
<ul id="test2" style="list-style-type:none;"> 
<h2>View the anchor in you url!!!</h2>
<li> <span title="blub">Blog with anchor #blub</span> </li>
<li> <img id="xxl" title="Archive" src="http://www.penetrategrey.de/bblog/files/Image/Smileys/emoticon0106.gif"> </li>
<li> Biography </li>
<li> Home </li>
</ul>

Discription
If you use an element like img, span etc., with title attribute inside of the jBookmarkEngine Fielad you could define an own anchor
Exp. <span title="help">?</span> will return help

Compatibility

If you test jBookmarkEngine in a browser which is untried, please send a short email to me, thereby i could fix bugs and update the browserlist.

Support

You found Bugs or have suggestion for improvement? Simply write an email to jbe@envo-media.de

Links

Copyright (c) 2008 Marco Bunge (mb@envo-media.de || http://www.envo-media.com)