I am dynamically changing the source of IFrames by overwritting the "src" module setting in the module settings table for the IFrame. But since the page loads before the event code that does this runs, the IFrame content is not changed until I post back a second time.
So... button pressed.. Page_Load occurs... button click event fires... src changed.
So the next time the page loads the source is correct.
How can I find the clientID of the IFrame so I can change the source immediately when the button is pressed?
I looked at the source of the page and can't find an IFrame at all, probably because it's just an html token taht is replaced by content.
Can anyone help me solve this?
I actaully want several IFrames on the page, so getting the correct client ID is necessary.
I am able to load the frame content instantly if I do not use the DNN IFrame module,
but instead put IFrame tokens in the skin manually...
However when I do that, I can't get the IFrame to resize.
I checked out the DNN IFrame module source and see they have a resize javascript function, but it uses the clientid; since the id of the IFrame is set in the ascx file of that module, referencing the clientID is a piece of cake... and I can see it inthe code; in my case, the IFrame is external to the module so I still need to know how to get the clientID and somehow set an object in my code that references that object; e.g. Dim objIFrame as htmlcontrol = Page.FindControl("IFrameID") but I can't seem to do this.
I'm not sure why the IFrame resizes to the actual size of the page I'm loading.
Help!
Thanks.