[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 287
  • Last Modified:

Jquery Dialog

I am using jquery Dialog feature and it works , except When I click delete option the it would call the external function but in the same window, rigth now it opens up the the separate tab

buttons: {
                        "Delete": function() {
                               window.open(targetUrl);
                               e.preventDefault();
                              
                               //reloadPage;
                              $(".classname").dialog("close");
                        },
0
erikTsomik
Asked:
erikTsomik
  • 3
  • 3
1 Solution
 
knightEknightCommented:
instead of:
  window.open(targetUrl);

try:

  self.open(targetUrl,self.name);
0
 
erikTsomikSystem Architect, CF programmer Author Commented:
nope does not work
0
 
HainKurtSr. System AnalystCommented:
because that window is not actually a window... a div on top of document... you have actually one window... do you want to replace whole page? or just the content on dialog?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
erikTsomikSystem Architect, CF programmer Author Commented:
well the dialog is just a confirmation screen Yes/No, If Yes is clicked then I do the update But the update must happened in the same window
0
 
HainKurtSr. System AnalystCommented:
try this

window.location.href=targetUrl;
0
 
HainKurtSr. System AnalystCommented:
I suggest close the dialog and open a new dialog with targeturl
0
 
erikTsomikSystem Architect, CF programmer Author Commented:
Great . Thank you
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now