Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Widget Development Help!

Widget Development Help!
Thread Tools
skatejedi
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
Jul 21, 2006, 06:31 PM
 
We are looking to have a dashboard widget coded that will post a new entry to the blog site http://www.pleonast.com. This site operates using PHP. After looking into have posting works, there are several issues that the widget will have to address:

1) The site uses a cookie to store and remember user-id and passwords. You cannot include this information in the widget, it must be pulled from the user's cookie.

2) Since adding an entry can only be done using the "POST" form method, you cannot simply have the user's input enclosed in a URL for a "GET" method from the server.

3) There must be three fields included on the widget: a "subject" text field, an "entry" text field, and a "allow comments?" checkbox.

From our research, the way to pull this off would be to have the information the user entered into the widget be passed to a "dummy" or temporary HTML page that when opened, auto submits the form-- just as if the user had entered it from Pleonast's webpage. This method addresses and solves these issues:

1) The user's cookie would still be used. If there login information is found, Pleonast will accept the entry. If they are not logged in (Pleonast remembers logins for two weeks) then they will be prompted to login, and then the entry is added.

2) Since only the "POST" method works, the "dummy" or temporary page allows this to work, since a widget cannot perform a "POST" request on its own.

3) All the required fields will be intact in both the widget, and then passed to the "dummy" or temporary page, and then to Pleonast.

For more information, visit Pleonast and register for a free account and look at the source code for the form method, inputs, hidden inputs, etc. on the "add entry" page. Also cross-reference this proposed method with the "Jack of All Widgets" widget (found on Google and/or on Apple's Dashboard site) -- this widget uses the same "dummy" or temporary HTML files to allow search forms from sites that only support the "POST" method.

The widget has been designed graphically and is ready to go-- it just needs a working code to be dropped into it. Can anyone please help us with this?
     
registered_user
Dedicated MacNNer
Join Date: Nov 2001
Location: Are Eye
Status: Offline
Reply With Quote
Jul 21, 2006, 06:46 PM
 
No.

Post your source code if you want help.

You should build your widget with prefs for the user to add their name and password, and that'd solve most of your issues.
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 03:31 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,