This is a migrated thread and some comments may be shown as answers.

Portal with Dynamic Docks and Asynch Content

1 Answer 62 Views
Dock
This is a migrated thread and some comments may be shown as answers.
cgreen
Top achievements
Rank 1
cgreen asked on 19 Nov 2009, 09:21 PM
I know that there ave been numerous posts regarding portal implementations but none that I could find related to both dynamic docks and asynchronous content.
My scenario is this:
I have a number of docks that can be added from a catalog. I am able to add the add the docks dynamically without problems (that has been covered in numerous other posts). Where I'm having trouble is when I add a dock that asynch loads its data from the browser. 

How do I get the content of my dynamically added dock to begin an asynch request for data? I'd love to see a simple example of a dynamically added RSS reader dock which begins retrieving data once its rendered on the browser.

Forgive me if this question/sample already exists.


1 Answer, 1 is accepted

Sort by
0
EpiqDev
Top achievements
Rank 2
answered on 20 Nov 2009, 11:06 PM
I have a similar requirement, and used the technique given in this codeproject article:

http://www.codeproject.com/KB/ajax/DelayedContentLoading.aspx

The basic concept is to load the usercontrol really quickly and then kick off the process to get the data afterward.

In the above example this is done with an Ajax Timer and an update panel in the usercontrol.

There is another method using a webservice, which will work fine if you are doing read-only widgets. 

Unless I'm missing something, there isn't a "simple" way to get a postback in the user control to work with this webservice method.

Tags
Dock
Asked by
cgreen
Top achievements
Rank 1
Answers by
EpiqDev
Top achievements
Rank 2
Share this question
or