+ Start a Discussion
vijaymindvijaymind 

InputFile And Rerender Problem

Hi All ,

I have open a child window with window.open

And I want when I uploaded all attachment on this child window , I have another button to close this window , once I click on this button my parent visualforce page must be rerender not refresh so I Can maintain the values I had selected on visualforce page .

Because when the page is refreshed the all values are lossed .

 

 

Navatar_DbSupNavatar_DbSup

Hi,

You can set the values from the child window to the parent window by using the HTML component like hidden field or the InnerHtml of the div

Use below code sample:

Selectedcontactid is the html hidden field on the parent window

 

window.parent.opener.document.getElementById("selectedcontactid").value=value1;

window.parent.opener.document.getElementById("selectedcontactid").onchange();

 return false;

 

Call a JavaScript function on the onchange event of the Selectedcontactid field and you can also action function through JavaScript function

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.