Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
How do you make a Dabble style dynamic bookmark link?
Old 03-31-2007, 04:47 PM How do you make a Dabble style dynamic bookmark link?
Novice Talker

Posts: 14
Name: rob
Trades: 0
Hello everyone,

I though I was new to these forums although I guess I was mistaken (I had to edit my "first post" introduction lol.) Anyways, I have been very actively studying web design/development, particularly php, for the last 6-7 months. I have decided to make the switch to "actively" learning more javascript. I have been studying a feature on a site called dabble.com, it is a video aggregation site. Unfortunately in order to see the feature for yourself you have to register and account (its free ) but I will describe it the best I can.

So the idea of their site is users submit videos from other websites ex. youtube, google vid, ect. Its similar to the digg or del.icio.us idea, but for videos. What dabble has though is a javascript bookmarklet link that does the similar thing to a del.icio.us browser addon. You add the link to your bookmarks then when you hit the bookmark it will parse the page you are currently viewing for a videos information (title, meta description, embed code, ect). Here is the code, I disected it to make it a bit easier to read...

Code:
<a href="javascript:{
    b='http://dabble.com';
    e=encodeURIComponent;
    d=document;
    function k(){
        location.href=b+'/?q=bmbu'+'&u='+e(location.href)+'&t='+e(d.title)+'&v=bu';
    }
    gT=setTimeout(k,1000);
     sT=d.body;
    o=d.createElement('scri'+'pt');
    if(typeof o!='object')exit();
    o.setAttribute('src',b+'/js/bm.php?u='+e(location.href));
    o.setAttribute('type','text/javascript');
    void(sT.appendChild(o));
}
">Add to Dabble</a>
This script appears to append a script to the current page which then relays the info back to the dabble php page!? This is where I start getting confused. I would love to have a watered down version of this that could say just send back the url and page title of the page the is being viewed/bookmarked.
__________________

Please login or register to view this content. Registration is FREE

Last edited by CheebaHawk; 03-31-2007 at 04:49 PM..
CheebaHawk is offline
Reply With Quote
View Public Profile Visit CheebaHawk's homepage!
 
 
Register now for full access!
Reply     « Reply to How do you make a Dabble style dynamic bookmark link?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.07873 seconds with 12 queries