Recent Widgets


Register for DashboardWidgets

Recent Forums Posts

Partners


iCompositions

MacDesktops.net

RSS Showcase
RSS Comments
RSS Forums

This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. Posted in: Widget Requests

Slideshow widget: allmightys.com

Author Message
filip



Joined: 12 May 2007
Posts: 5

Posted: Sat May 12, 2007 - 5:48 pm    Post subject: Slideshow widget: allmightys.com Reply with quote

Hello people!

Can someone please help ...

I started creating a widget but even with analysing other slideshow type widgets, no luck.

Please download dashcode and widget file here.

http://allmightys.com/fileadmin/files/shopitemsimages/allmightysstorewidget.zip

I have created a special folder on the server:
http://allmightys.com/fileadmin/files/shopitemsimages/

Included files in that folder are:
shopitem_1.jpg
shopitem_2.jpg
shopitem_3.jpg
shopitem_4.jpg

I have started doing the widget but don't know what to do now. I need the widget to work as a slideshow where with next and previous buttons the images change .. from 1-4 and the back to one again in loop. When new images are added, e.g shopitem_5.jpg then this one is included in the slideshow too.

it would be great if all images link to:

http://allmightys.com/store/

If someone can put this together quickly , I would be soooo happy!

Thank you so much for your help!

filip

p.s. Make sure you check out the site too! Smile

View user's profile Send private message Send e-mail Visit poster's website Widgets
JayHD



Joined: 06 Apr 2007
Posts: 15

Posted: Sun May 13, 2007 - 5:07 am    Post subject: Reply with quote

Here you go. It's pretty simple, nothing fancy.
http://JMalkmus.googlepages.com/allmightysShop.zip

Read the comments in the load function. Post here if you have any questions.
View user's profile Send private message Send e-mail Widgets
filip



Joined: 12 May 2007
Posts: 5

Posted: Sun May 13, 2007 - 5:36 am    Post subject: Reply with quote

Absolutley Fantastic!!!

Thank you so much Jay!!

f
View user's profile Send private message Send e-mail Visit poster's website Widgets
filip



Joined: 12 May 2007
Posts: 5

Posted: Sun May 13, 2007 - 6:02 am    Post subject: Reply with quote

JayHD wrote:
Here you go. It's pretty simple, nothing fancy.
http://JMalkmus.googlepages.com/allmightysShop.zip

Read the comments in the load function. Post here if you have any questions.



I think i am doing something wrong ... I've done the text file and loaded another image on the server.

This is the code at the moment:

Code:
   //this variable should be set by a text file on your server
   //http://allmightys.com/fileadmin/files/shopitemsimages/arrayCount.txt
   //simply include this file in your folder with the number of the latest image adde
   //so night now it would just be a text file with the number 4 change the number as you add more images
   
   //uncomment the following lines when you've set the text file
   //arrayCheck = widget.system("curl http://allmightys.com/fileadmin/files/shopitemsimages/arrayCount.txt", null).outputString;
   //arrayCount = arrayCheck.replace(/\n/, "");

   //comment out this line when you uncomment the two above
   arrayCheck=widget.system("curl http://allmightys.com/fileadmin/files/shopitemsimages/arrayCount.txt", null).outputString;
   arrayCount=arrayCheck.replace(/\n/, "");



but i am geting an error somehwere....

I know i am doing something obvious wrong ...Smile

Thanks JayHD
View user's profile Send private message Send e-mail Visit poster's website Widgets
JayHD



Joined: 06 Apr 2007
Posts: 15

Posted: Sun May 13, 2007 - 1:47 pm    Post subject: Reply with quote

replace all of that with this

Code:
   arrayCheck = widget.system("curl 'http://allmightys.com/fileadmin/files/shopitemsimages/arrayCount.txt'", null).outputString;
   arrayCount = arrayCheck.replace(/\n/, "");
View user's profile Send private message Send e-mail Widgets
filip



Joined: 12 May 2007
Posts: 5

Posted: Sun May 13, 2007 - 2:01 pm    Post subject: Reply with quote

perfect! that worked!

btw, is there any way to get the widget to refresh on load? I've updated the text file and added images but the widget doesnt sho them until i close and then reopen.

sorry... Sad
View user's profile Send private message Send e-mail Visit poster's website Widgets
JayHD



Joined: 06 Apr 2007
Posts: 15

Posted: Sun May 13, 2007 - 3:02 pm    Post subject: Reply with quote

here's and updated project file
http://JMalkmus.googlepages.com/allmightysShop-u.zip

checks for new items each time you open the dashboard
fixes the previousClick function
View user's profile Send private message Send e-mail Widgets
filip



Joined: 12 May 2007
Posts: 5

Posted: Sun May 13, 2007 - 3:45 pm    Post subject: Reply with quote

Thats brilliant JayHD!! even with the little NEW banner ...wow!

I really need you web link now ...i have to put it on the widget at least. Pls!
View user's profile Send private message Send e-mail Visit poster's website Widgets
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.

 
Powered by phpBB © 2001, 2002 phpBB Group