AC_FL_RunContent does not work after UpdatePanel postback

I have a javascript in a repeater element that calls AC_FL_RunContent

to download and display the flash file (in each repeater element) when a link is clicked (the link is part of the repeater element).

I have a paged data source showing the first page of video links. Five elements on each page.

Video link displays work fine on the start page when there was no postback from the UpdatePanel. Clicking on the buttons opens fancybox and shows a flash movie to play.

However, after I navigated to the next page of video links using the dumped data source .. (or try afterwards to navigate to any other page page). AC_FL_RunContent doesn't work.

Fansybox still pops up, test alert () with data value in database is still working. AC_FL_RunContent just doesn't want to download the flash file.

If I uninstall UpdatePanel. It works fine. But that's not the option I'm afraid of.

So:

  • Data binding is working.
  • Javasript still works (warning confirms this)
  • Fancybox is still running
  • AC_FL_RunContent

    just doesn't load the flash file.

I have the following setup

UpdatePanel

- Repeater

---- REPEATER_ITEM

------ SCRIPT

-------- alert ('data binding value');

-------- AC_FL_RunContent

Paged Data Source (on the update panel)

Any thoughts?

+2


source to share


1 answer


I've done two different things in the past:



  • Use the Object tag

  • Wrap my calls to AC_FL_RunContent in a JS function that is outside the UpdatePanel. If you need to pass dynamic parameters, just create a generic JS function with the required parameters.

0


source







All Articles