1 Attachment(s)
IFrame source does not take effect when raised from it's containing page
I need to store some values that's applicable to only the user's session.
When this value's changes, I need to take action on several places in the application.
So what I did is create a class that publish event's that will be raised when properties change.
Then I add an instance of this class to the Session Collection.
I got a main form. In the form is an IFrame, with one of many other forms. All forms can change properties of the class in the Session Collection and the events get raised as necessary. I subscribe to this events in the main form.
One property is the target property which specify what page to be displayed in the iFrame on the main form.
Now if you look at the sample app I wrote (SessionVars), you will see that even though the event get caught in the main form, when the target property are set from the page in the IFrame, the IFrame's source does not get updated.
Please have a look and let me know what I am doing wrong.
Kind Regards
Petrol.
1 Attachment(s)
Re: IFrame source does not take effect when raised from it's containing page
Hmmm...I just added a form from which one can change the properties as well. I show this form in a new window using a hyperlink.
In the form, I set a new source (target property) for the iframe, and close it, but nothing happens.
but nwhen i click the button to set the iframe to whatever the class target property are now, the correct page load in the iFrame.
Seems I got to do whatever a button on a form does after clicked...refresh or reload or sth?
Sorry if my questions make no sense (PLEASE ASK!), but I'm kind of new to web development (comes from desktop apps which AIN'T STATELESS!!!)
Thanks
Petrol
Re: IFrame source does not take effect when raised from it's containing page
anyone that want to take up the challenge?