Advertisement

05.06.2008 at 09:01AM PDT, ID: 23379933
[x]
Attachment Details

javascript reloading parent page

Asked by sevensnake77 in .Net Editors & IDEs, Microsoft Applications, Microsoft Development

Tags: javascript reloading parent page

I have a dhtml window. What I need to do is when I click close I need the parent page
to refresh the parent page

this is done with asp.net vb codebehind.

When I click close from the function below I want the parent page to refreshStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
function CloseButton_onclick() {
window.opener.window.lblMessage.innerHTML = "File Upload Complete.";
window.close();
}
close:function(t, forceclose){ //DHTML modal close function
        t.contentDoc=(t.contentarea.datatype=="iframe")? window.frames["_iframe-"+t.id].document : t.contentarea //return reference to modal window DIV (or document object in the case of iframe
        if (typeof forceclose!="undefined")
                t.onclose=function(){return true}
        if (dhtmlwindow.close(t)) //if close() returns true
                this.closeveil()
                
}
[+][-]05.06.2008 at 09:05AM PDT, ID: 21508467

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: .Net Editors & IDEs, Microsoft Applications, Microsoft Development
Tags: javascript reloading parent page
Sign Up Now!
Solution Provided By: jamespfinn
Participating Experts: 1
Solution Grade: B
 
 
[+][-]05.06.2008 at 09:23AM PDT, ID: 21508643

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906