CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2005
    Posts
    7

    Question plz help me to solve this problem

    hello dear,

    i m developing a Web Based application.in that when i select a customer name from a dropdown list in web page
    'Quoattion.aspx'. at that time i'll open a web page 'customerDetail.aspx' in a dialog window by using

    showModalDialog('customerDetail.aspx','','').

    now depends upon data present on dialog window ,we have two options (two buttons). first if we want to continue to this

    Quotation then this dialog window will be closed (by pressing one button) and we continue with previous page 'quotation.aspx'

    in prevoius window. second option is that if we want to block this quotation then first of all the dialog window will closed

    and then the web page open in previous window will be refreshed and new blank interface ie web page 'Quotation.aspx' will be

    reloaded in current window (by pressing second button).


    now my problem is that. i m able to close the dialog window (by using self.close() on one button) but i m not able to reload

    the web page 'quotation.aspx' in main window when i close the dialog window.

    so plz tell how i'll perform two operations on click of one button in JavaScript.
    (1) close the dialog window
    (2) reload the web page in current main window.

    waiting for ur reply......

    Ankush

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: plz help me to solve this problem

    Just call the parent windows name.

    Code:
    parent.WINDOWNAME.location.reload();
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    May 2004
    Location
    Germany
    Posts
    655

    Re: plz help me to solve this problem

    well, so the originating window has to have a name... and i don't think that it has one

    but you just can user "opener" instead of peejavery's WINDOWNAME

    note: you have to do this before you close the dialog window.
    there are 10 kinds of people. those who understand binary and those who don't...

    rate a post if you find it usefull, thx
    check out my Firefox/Mozilla Extension: http://urlparams.blogwart.com/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured