how to close a parent form
View Complete Post
I am using MOSS 2007 and I have a requirement:
The user should be able to create a new quick link on a popup window. So I have created a custom NewForm.aspx that is a popup. Now I need that when the data is filled the popup closes and the parent form get refresh.
This is the code for the Save button: <SharePoint:SaveButton runat="server" ControlMode="New" id="savebutton2" />
I've been spent the last couple hours trying to work on this issue. I an creating Facebook Oauth stuff, when i click on parent window. The popup shows the Facebook login, when i logged in with my details, it redirects to my site. But i need to close this popup after returning and refrsh the parent window.
can you please provide me this kind of stuff. i already spent whole day in this...
If i could solve this then i will go for another logic but stucked on 1st step.
how to close a form,subform,iframe and everthing using jquery
i have 3 iframe how to access the paten(t textbox value=1) in the 3rd iframe
I have two forms, a parent and a child. When I close the child form I need to pass a (bool value?) to the parent form which indicates
whether I want to close the parent form as well, or not.
How do I pass this value from the child form to the parent form? Or is there a better way to return a value to a parent form?
I’m using VS 2008 and C#
I have an InfoPath 2007 form, which is web enabled and deployed to Forms Server 2007.
On the form I have a button. What I want to happen when the button is pressed is this:
1. My custom code behind should be executed. The custom code calls an external aseembly (common to ALL my InfoPath forms) which has a method that includes a dataconnection.Execute which will submit the form.
2. Close the form IF the submit went well.
Currently, I have a code behind and a rule on the button. What I am trying to get working is that the code behind sets a status flag on the form to "Success" and then executes the data connection. If an exception is thrown, I set the status flag to something
else ("Failed") and rethrow the exception. In the rule of the button I then check this status field in the condition of the rule and if it is set to Success I close the form. What happens is, that the form is not closed uppon succesfully execution of the data
connection. I am not sure in what order the code is run; Is the rule fired first or is the .NET code behind? It appears that the .NET code IS fired... and if the form was closed in the rule, then I wouldn't expect that to happen. So that means the rule is
fired last. On the other hand the value set in one of the fields is not present upon validation of the condition of the rule, so tha