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

JavaScript

 
AnswerRe: Display the server time and refresh every 1 sec using Javascript in asp.net Pin
Richard MacCutchan23-Dec-13 22:18
mveRichard MacCutchan23-Dec-13 22:18 
AnswerRe: Display the server time and refresh every 1 sec using Javascript in asp.net Pin
G.Mariappan(a)Murugan23-Dec-13 22:36
G.Mariappan(a)Murugan23-Dec-13 22:36 
AnswerRe: Display the server time and refresh every 1 sec using Javascript in asp.net Pin
joginder-banger9-Jan-14 23:01
professionaljoginder-banger9-Jan-14 23:01 
Questionjquery autocomplete not working though json is success Pin
Member 1047675719-Dec-13 1:17
Member 1047675719-Dec-13 1:17 
Questionalt attribute displayed when mouse leave Pin
dada201017-Dec-13 21:31
dada201017-Dec-13 21:31 
AnswerRe: alt attribute displayed when mouse leave Pin
twseitex28-Dec-13 8:43
twseitex28-Dec-13 8:43 
QuestionAutoFill plugin/extension which works for all browsers? Pin
Saad Sarwar4-Dec-13 8:36
Saad Sarwar4-Dec-13 8:36 
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 

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.