Results 1 to 5 of 5

Thread: DHTMLwindow + ASP + java - Closing current window

  1. #1
    Join Date
    Apr 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question DHTMLwindow + ASP + java - Closing current window

    Hi,

    I am using ASP ... and i am making a small application with windows like a virtual desktop into web... at least i am trying to do it...

    I had one problem using dhtmlwindow because i have many windows...

    I want to close the current window (dhtmlwindow)..

    I am doing with this command perfectly on a submit button or a simple button
    Code:
    onclick=parent.myxwindow.close();
    but as i said i have many windows that created through html generation from asp code... so it is difficult to know the current name of window - or must use sessions and querysting and blah blah.. it's kind a difficult...

    1. is any code to know the current name of dhtmlwindow ?

    i am using dhtmlwindow with iframe and i am opening the new window on the fly like this:
    Code:
    <a href="#" onclick="myxwindow=dhtmlwindow.open('myxwindow', 'iframe', 'test.asp?run=new&option=1', 'My title of X window', 'width=750px,height=490px,resize=0,scrolling=1,center=1', 'recal');">New X Window</a>
    2. i want to use the current name of window to load at iframe different asp page...

    Thanks in advance...

  2. #2
    Join Date
    Apr 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    anyone ? snif :-(

  3. #3
    Join Date
    Apr 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question

    Quote Originally Posted by cyberd View Post
    anyone ? snif :-(
    i ve just create one session and keep the name of window...

    so i can work like this...

    thanx for answering :-)

  4. #4
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    Quote Originally Posted by cyberd View Post
    i ve just create one session and keep the name of window...

    so i can work like this...

    thanx for answering :-)
    I'm glad you found the answer. People may not have answered because they were looking into it. I myself thought it was nearly impossible without a session.
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  5. #5
    Join Date
    Apr 2008
    Posts
    27
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Default

    @master_script_maker

    you have right... ofcourse they were looking into it.. but when the time is pressing you and i don't want to press the forum friends.. i must give answers to myself...

    The reality is when you want to make a project you must have time- that time i have not- so i am so wrong that i ve started again to programming ( i love to programming ) - because my job is all day from 7am to 9pm

    by the way with session works ok!

Bookmarks

Posting Permissions

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