Digg widget editting

This is a discussion on "Digg widget editting" within the JavaScript Forum section. This forum, and the thread "Digg widget editting are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 27th, 2007, 18:55
Up'n'Coming Member
Join Date: Oct 2007
Location: room
Age: 18
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Digg widget editting

Hi hi hi!


I would like help editing the js script for the digg widget.


Here is the script:

Code: Select all
<script type="text/javascript">
digg_id = 'digg-widget-container'; //make this id unique for each widget you put on a single page.
digg_height = '500px';
digg_title = 'Top 10 list from Entertainment';
</script>
<script type="text/javascript" src="http://digg.com/tools/widgetjs"></script>
<script type="text/javascript" src="http://digg.com/tools/services?type=javascript&callback=diggwb&endPoint=/stories/container/entertainment/top&count=10"></script>


I need it to display multiple categories. I have played around via trial and error with no success.

Basically i found out that
Code: Select all
/stories/container/entertainment/
this part changes when you select a dig category e.g. to /sports/ etc.

I think it would be very straight forward, but as i don't know much js, i ask for help =D!

Thank you in advance !!!!!!!!!!!
Reply With Quote

  #2 (permalink)  
Old Oct 27th, 2007, 19:05
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Digg widget editting

It appears that you can just post the same code repeatedly adding a different digg_id and changing the catgory path for each one.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #3 (permalink)  
Old Oct 27th, 2007, 19:39
Up'n'Coming Member
Join Date: Oct 2007
Location: room
Age: 18
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Digg widget editting

Hey Rakuli!

But that creates separate widgets. I am trying to make the widget search multiple categories on the same widget displaying the top 10.

Here would be an example of a widget that displays e.g. sports and science:

1. crazy scientist kills himself
2. beckham turns gay
3. lesbian worms found
4. modified crazy humans with tv's as a head
5. the dolphins win the cup
6. Chelsy players are found with dildo's
.. .. etc..

=D
Reply With Quote
  #4 (permalink)  
Old Oct 27th, 2007, 19:44
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Digg widget editting

The script is actually linked to digg.com and is coming off their server so I don't think you'd be able to change the functionality.

You may be able to retrieve 2 widgets and hide them, then use javascript to pull the content from them into a widget of your own..

I would need to see what the script /tools/widget.js is doing to say for sure but I think it would have to be digg.com that gives you this functionality as part of one script.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #5 (permalink)  
Old Oct 27th, 2007, 20:07
Up'n'Coming Member
Join Date: Oct 2007
Location: room
Age: 18
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Digg widget editting

That makes sense =]

I thought that i could just do something list this:

Code: Select all
<script type="text/javascript" src="http://digg.com/tools/services?type=javascript&callback=diggwb&endPoint=/stories/container/entertainment/ AND ..../container/sports/ AND ..../container/science/ ...top&count=10"></script>
thats what i was playing around with, but no success.


Could you give me the 'term' for pulling content from other pages via javascript. Im guessing it's like an i-frame... just different :P :S
Reply With Quote
  #6 (permalink)  
Old Oct 27th, 2007, 20:13
Rakuli's Avatar
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Digg widget editting

The term? Including or Ajax depending on what's happening.. on the page.
Last Blog Entry: The wannabe juggler's quest (Oct 27th, 2007)
Reply With Quote
  #7 (permalink)  
Old Oct 27th, 2007, 21:01
Up'n'Coming Member
Join Date: Oct 2007
Location: room
Age: 18
Posts: 74
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Digg widget editting

Could you show me an example script that pulls text/code lines from a different page to
a page
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Web-Widget Giant Free Web Site Critique 5 Feb 29th, 2008 06:16
Create a 'Digg It' Link? Jack Franklin Webforumz Cafe 5 Feb 20th, 2008 19:19
Ask Bill Gates! Found this on Digg... MrMadison Webforumz Cafe 1 Sep 23rd, 2007 20:03
digg this delicious tags etc Xhristy Website Planning 2 Apr 8th, 2007 22:51


All times are GMT. The time now is 22:43.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43