Hi,
I tried to embed the forms to my .net site.
Basically I want the form script to depend on the button click.
I registered your utils.js on top of the aspx page.
Then on my aspx page, I added:
<asp:updatepanel runat="server" id="updatepanel" >
<contenttemplate>
<asp:button runat="server" id="button"></asp:button>
<asp:literal runat="server" id="formliteral"></asp:literal>
</contenttemplate>
</asp:updatepanel>
code-behind:
Public Sub button_click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button.click
Dim script As String = " <script type=""text/javascript"">pf_embed(""http://app.perfectforms.com/player.aspx"", ""flexApplicationLTIxNDc0NjYwNjc="", ""f=tFRgAgWE"", ""654"", ""470"", ""window""); </script>"
ScriptManager.RegisterClientScriptBlock(formliteral, formliteral.GetType(), script,False)
formliteral.text= script
End Sub
The form doesn't show up when the button is clicked - although no JS error shown. Do you know how to fix this?
The idea is that I want to replace the button with dropdownlist, and show the correct form when a form is selected.
Thanks,
Andreas
