Click here to Skip to main content
16,004,927 members
Home / Discussions / JavaScript
   

JavaScript

 
SuggestionRe: For non-programmer, Implementing following specific code example - Using JSON and File API to View Starred Google Reader Posts Pin
Richard MacCutchan28-Dec-13 23:29
mveRichard MacCutchan28-Dec-13 23:29 
GeneralRe: For non-programmer, Implementing following specific code example - Using JSON and File API to View Starred Google Reader Posts Pin
Member 104879183-Jan-14 6:01
Member 104879183-Jan-14 6:01 
AnswerRe: For non-programmer, Implementing following specific code example - Using JSON and File API to View Starred Google Reader Posts Pin
Manuel F. Hernandez15-Jan-14 7:33
Manuel F. Hernandez15-Jan-14 7:33 
QuestionTiming issue? Pin
#realJSOP24-Dec-13 5:12
professional#realJSOP24-Dec-13 5:12 
AnswerRe: Timing issue? Pin
twseitex28-Dec-13 8:53
twseitex28-Dec-13 8:53 
QuestionBackbone Pin
Rockerr Black23-Dec-13 22:18
Rockerr Black23-Dec-13 22:18 
AnswerRe: Backbone Pin
Richard MacCutchan24-Dec-13 0:52
mveRichard MacCutchan24-Dec-13 0:52 
AnswerRe: Backbone Pin
Rahul Rajat Singh29-Dec-13 20:50
professionalRahul Rajat Singh29-Dec-13 20:50 
AnswerRe: Backbone Pin
joginder-banger9-Jan-14 22:54
professionaljoginder-banger9-Jan-14 22:54 
QuestionDisplay the server time and refresh every 1 sec using Javascript in asp.net Pin
G.Mariappan(a)Murugan23-Dec-13 18:41
G.Mariappan(a)Murugan23-Dec-13 18:41 
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).

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.