Click here to Skip to main content
15,896,369 members
Home / Discussions / JavaScript
   

JavaScript

 
Questionjava question? Pin
rafiqtolas3-Dec-13 19:22
rafiqtolas3-Dec-13 19:22 
AnswerRe: java question? Pin
Blikkies3-Dec-13 20:21
professionalBlikkies3-Dec-13 20:21 
SuggestionRe: java question? Pin
Richard Deeming4-Dec-13 1:55
mveRichard Deeming4-Dec-13 1:55 
AnswerRe: java question? Pin
David Dekanozishvili5-Jan-14 2:37
professionalDavid Dekanozishvili5-Jan-14 2:37 
Questionadd to cart function to close pop-up window Pin
Member 104430993-Dec-13 15:46
Member 104430993-Dec-13 15:46 
AnswerRe: add to cart function to close pop-up window Pin
Sampath Sridhar3-Dec-13 21:24
Sampath Sridhar3-Dec-13 21:24 
GeneralRe: add to cart function to close pop-up window Pin
Member 104430994-Dec-13 1:36
Member 104430994-Dec-13 1:36 
GeneralRe: add to cart function to close pop-up window Pin
Sampath Sridhar4-Dec-13 1:52
Sampath Sridhar4-Dec-13 1:52 
First thing you'll need is to store the reference of the popup window.
Then you can use it to close the popup and refer to window.location object for updating the page as shown below.
JavaScript
var childWin = window.open(url,name,params)
function closeWindow()
{
    childWin.close();
    window.location.href = "<new url>"; // For updating the main window
    // Or write some update logic for refreshing part of the page using DOM
    document.getElementById("divId").innerHTML = "<updated html>";
}

If you want to just update a part of the page, then you can handle it through the DOM objects (document).
GeneralRe: add to cart function to close pop-up window Pin
Member 104430994-Dec-13 2:10
Member 104430994-Dec-13 2:10 
SuggestionRe: add to cart function to close pop-up window Pin
Sampath Sridhar4-Dec-13 21:38
Sampath Sridhar4-Dec-13 21:38 
SuggestionRe: add to cart function to close pop-up window Pin
Amir Hamza Md. Kayes6-Dec-13 9:11
professionalAmir Hamza Md. Kayes6-Dec-13 9:11 
GeneralRe: add to cart function to close pop-up window Pin
Sampath Sridhar6-Dec-13 17:59
Sampath Sridhar6-Dec-13 17:59 
Questioncan i send the email by javascript on html web form. Pin
prakash000602-Dec-13 18:56
prakash000602-Dec-13 18:56 
AnswerRe: can i send the email by javascript on html web form. Pin
ZurdoDev6-Dec-13 10:27
professionalZurdoDev6-Dec-13 10:27 
QuestionFinding Conflicts Pin
#realJSOP29-Nov-13 4:05
professional#realJSOP29-Nov-13 4:05 
AnswerRe: Finding Conflicts Pin
jkirkerx3-Dec-13 10:09
professionaljkirkerx3-Dec-13 10:09 
GeneralRe: Finding Conflicts Pin
Sunasara Imdadhusen21-May-14 23:46
professionalSunasara Imdadhusen21-May-14 23:46 
GeneralRe: Finding Conflicts Pin
#realJSOP22-May-14 0:41
professional#realJSOP22-May-14 0:41 
Questioncombo box values not working for quote calculator Pin
Matt Harville28-Nov-13 21:58
Matt Harville28-Nov-13 21:58 
SuggestionRe: combo box values not working for quote calculator Pin
Richard MacCutchan28-Nov-13 22:55
mveRichard MacCutchan28-Nov-13 22:55 
GeneralRe: combo box values not working for quote calculator Pin
Matt Harville28-Nov-13 23:03
Matt Harville28-Nov-13 23:03 
GeneralRe: combo box values not working for quote calculator Pin
Richard MacCutchan28-Nov-13 23:27
mveRichard MacCutchan28-Nov-13 23:27 
GeneralRe: combo box values not working for quote calculator Pin
Graham Breach29-Nov-13 3:06
Graham Breach29-Nov-13 3:06 
Questionhow to connect oracle database using jsp Pin
maheshkadtan28-Nov-13 8:14
maheshkadtan28-Nov-13 8:14 
SuggestionRe: how to connect oracle database using jsp Pin
Richard Deeming28-Nov-13 8:46
mveRichard Deeming28-Nov-13 8:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.