Click here to Skip to main content
15,919,749 members
Home / Discussions / JavaScript
   

JavaScript

 
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 
AnswerRe: how to connect oracle database using jsp Pin
Richard MacCutchan28-Nov-13 22:53
mveRichard MacCutchan28-Nov-13 22:53 
QuestionXMLHttpRequest (a)synchronous file upload Pin
csrss26-Nov-13 19:41
csrss26-Nov-13 19:41 
AnswerRe: XMLHttpRequest (a)synchronous file upload Pin
csrss26-Nov-13 21:17
csrss26-Nov-13 21:17 
Questiononkeypress event is not working google chrome Pin
Mithra Madhu25-Nov-13 20:36
Mithra Madhu25-Nov-13 20:36 
QuestionRe: onkeypress event is not working google chrome Pin
ZurdoDev6-Dec-13 10:28
professionalZurdoDev6-Dec-13 10:28 
Questionrestrict file type and size of form upload javascript only Pin
vbslacker24-Nov-13 8:37
vbslacker24-Nov-13 8:37 
AnswerRe: restrict file type and size of form upload javascript only Pin
Snehasish_Nandy24-Nov-13 20:06
professionalSnehasish_Nandy24-Nov-13 20:06 

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.