From: SourceForge.net <no...@so...> - 2003-06-13 07:15:32
|
Bugs item #753776, was opened at 2003-06-13 09:15 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 Category: Interface (example) Group: None Status: Open Resolution: None Priority: 5 Submitted By: JHoltman (jholtman) Assigned to: Nobody/Anonymous (nobody) Summary: Refreshing a frame in a frameset Initial Comment: Hi, I guess that refreshing frames in a frameset is not working as expected. I have a frameset with a "contents" frame on the left (with 2 hypertext links "Second" and "Third") and on the right another "maincontents" frame. Initially the "maincontents" frame contains a "maincontents_initial.html" page. OK, works for me. If I click on the "Second" link (on the contents frame), the "maincontents" frame should be refreshed with the "maincontents_second.html" file. I expect a webwindow event with a webwindow of type "HtmlFrame", but I get "ToplevelWindow". I expect the webwindow (via newPage().getEnclosingWindow()) to be pointing to a previous initialized "maincontents" frame. Not so. There is also no name of the webwindow (via getName). The output of the test program: =======================8<================= [1] - access the frameset WinEvent: name=Contents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Contents Contents frame with page title: Contents WinEvent: name=maincontents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Initial Main Contents MainContents frame with page title: Initial Main Contents WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Frameset test Unknown webwindow not equal to other webwindows [2] - check the contents frame [3] - check the maincontents frame [4] - push the "Second" html-link WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Second Main Contents Unknown webwindow not equal to other webwindows [5] - check the maincontents frame - should be HtmlFrame update with Second Main Contents Expected "second" main contents page =======================8<================= (For me less important) When adding the getOldPage() in the code (see NOTICE) the an exception occurs. Attached: (1) HTML code: - frameset.html (with the frameset) - contents.html (the left frame of the frameset with 2 links) - maincontents_initial.html (the initial contents of the maincontents / right frame) - maincontents_second.html (after clicking on the "Second" this shoudl be in maincontents - maincontents_third.html (also for "Third" link) (2) Java code: - TestWindowReload.java (main test program) - TestWebWindowEventListener.java (simple web window event listener) I hope you can spend some time on this one because framesets are quite important in a number of websites. And by removing the NOTICE the stack trace is shown. Greetings, Johan Holtman ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-06-14 15:07:13
|
Bugs item #753776, was opened at 2003-06-13 03:15 Message generated for change (Comment added) made by mbowler You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 Category: Interface (example) Group: None Status: Open Resolution: None Priority: 5 Submitted By: JHoltman (jholtman) Assigned to: Nobody/Anonymous (nobody) Summary: Refreshing a frame in a frameset Initial Comment: Hi, I guess that refreshing frames in a frameset is not working as expected. I have a frameset with a "contents" frame on the left (with 2 hypertext links "Second" and "Third") and on the right another "maincontents" frame. Initially the "maincontents" frame contains a "maincontents_initial.html" page. OK, works for me. If I click on the "Second" link (on the contents frame), the "maincontents" frame should be refreshed with the "maincontents_second.html" file. I expect a webwindow event with a webwindow of type "HtmlFrame", but I get "ToplevelWindow". I expect the webwindow (via newPage().getEnclosingWindow()) to be pointing to a previous initialized "maincontents" frame. Not so. There is also no name of the webwindow (via getName). The output of the test program: =======================8<================= [1] - access the frameset WinEvent: name=Contents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Contents Contents frame with page title: Contents WinEvent: name=maincontents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Initial Main Contents MainContents frame with page title: Initial Main Contents WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Frameset test Unknown webwindow not equal to other webwindows [2] - check the contents frame [3] - check the maincontents frame [4] - push the "Second" html-link WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Second Main Contents Unknown webwindow not equal to other webwindows [5] - check the maincontents frame - should be HtmlFrame update with Second Main Contents Expected "second" main contents page =======================8<================= (For me less important) When adding the getOldPage() in the code (see NOTICE) the an exception occurs. Attached: (1) HTML code: - frameset.html (with the frameset) - contents.html (the left frame of the frameset with 2 links) - maincontents_initial.html (the initial contents of the maincontents / right frame) - maincontents_second.html (after clicking on the "Second" this shoudl be in maincontents - maincontents_third.html (also for "Third" link) (2) Java code: - TestWindowReload.java (main test program) - TestWebWindowEventListener.java (simple web window event listener) I hope you can spend some time on this one because framesets are quite important in a number of websites. And by removing the NOTICE the stack trace is shown. Greetings, Johan Holtman ---------------------------------------------------------------------- >Comment By: Mike Bowler (mbowler) Date: 2003-06-14 11:07 Message: Logged In: YES user_id=46756 Contrary to what the comment above says, there are no attached files. Please add these files so we can reproduce the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-10-15 00:20:13
|
Bugs item #753776, was opened at 2003-06-13 03:15 Message generated for change (Settings changed) made by dktaylor You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 Category: Interface (example) Group: None Status: Open Resolution: None Priority: 5 Submitted By: JHoltman (jholtman) >Assigned to: David K. Taylor (dktaylor) Summary: Refreshing a frame in a frameset Initial Comment: Hi, I guess that refreshing frames in a frameset is not working as expected. I have a frameset with a "contents" frame on the left (with 2 hypertext links "Second" and "Third") and on the right another "maincontents" frame. Initially the "maincontents" frame contains a "maincontents_initial.html" page. OK, works for me. If I click on the "Second" link (on the contents frame), the "maincontents" frame should be refreshed with the "maincontents_second.html" file. I expect a webwindow event with a webwindow of type "HtmlFrame", but I get "ToplevelWindow". I expect the webwindow (via newPage().getEnclosingWindow()) to be pointing to a previous initialized "maincontents" frame. Not so. There is also no name of the webwindow (via getName). The output of the test program: =======================8<================= [1] - access the frameset WinEvent: name=Contents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Contents Contents frame with page title: Contents WinEvent: name=maincontents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Initial Main Contents MainContents frame with page title: Initial Main Contents WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Frameset test Unknown webwindow not equal to other webwindows [2] - check the contents frame [3] - check the maincontents frame [4] - push the "Second" html-link WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Second Main Contents Unknown webwindow not equal to other webwindows [5] - check the maincontents frame - should be HtmlFrame update with Second Main Contents Expected "second" main contents page =======================8<================= (For me less important) When adding the getOldPage() in the code (see NOTICE) the an exception occurs. Attached: (1) HTML code: - frameset.html (with the frameset) - contents.html (the left frame of the frameset with 2 links) - maincontents_initial.html (the initial contents of the maincontents / right frame) - maincontents_second.html (after clicking on the "Second" this shoudl be in maincontents - maincontents_third.html (also for "Third" link) (2) Java code: - TestWindowReload.java (main test program) - TestWebWindowEventListener.java (simple web window event listener) I hope you can spend some time on this one because framesets are quite important in a number of websites. And by removing the NOTICE the stack trace is shown. Greetings, Johan Holtman ---------------------------------------------------------------------- Comment By: Mike Bowler (mbowler) Date: 2003-06-14 11:07 Message: Logged In: YES user_id=46756 Contrary to what the comment above says, there are no attached files. Please add these files so we can reproduce the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 |
From: SourceForge.net <no...@so...> - 2003-10-17 22:24:56
|
Bugs item #753776, was opened at 2003-06-13 03:15 Message generated for change (Settings changed) made by dktaylor You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 Category: Interface (example) Group: None >Status: Closed Resolution: None Priority: 5 Submitted By: JHoltman (jholtman) Assigned to: David K. Taylor (dktaylor) Summary: Refreshing a frame in a frameset Initial Comment: Hi, I guess that refreshing frames in a frameset is not working as expected. I have a frameset with a "contents" frame on the left (with 2 hypertext links "Second" and "Third") and on the right another "maincontents" frame. Initially the "maincontents" frame contains a "maincontents_initial.html" page. OK, works for me. If I click on the "Second" link (on the contents frame), the "maincontents" frame should be refreshed with the "maincontents_second.html" file. I expect a webwindow event with a webwindow of type "HtmlFrame", but I get "ToplevelWindow". I expect the webwindow (via newPage().getEnclosingWindow()) to be pointing to a previous initialized "maincontents" frame. Not so. There is also no name of the webwindow (via getName). The output of the test program: =======================8<================= [1] - access the frameset WinEvent: name=Contents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Contents Contents frame with page title: Contents WinEvent: name=maincontents, class=com.gargoylesoftware.htmlunit.html.HtmlFrame, new page title=Initial Main Contents MainContents frame with page title: Initial Main Contents WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Frameset test Unknown webwindow not equal to other webwindows [2] - check the contents frame [3] - check the maincontents frame [4] - push the "Second" html-link WinEvent: name=, class=com.gargoylesoftware.htmlunit.TopLevelWindow, new page title=Second Main Contents Unknown webwindow not equal to other webwindows [5] - check the maincontents frame - should be HtmlFrame update with Second Main Contents Expected "second" main contents page =======================8<================= (For me less important) When adding the getOldPage() in the code (see NOTICE) the an exception occurs. Attached: (1) HTML code: - frameset.html (with the frameset) - contents.html (the left frame of the frameset with 2 links) - maincontents_initial.html (the initial contents of the maincontents / right frame) - maincontents_second.html (after clicking on the "Second" this shoudl be in maincontents - maincontents_third.html (also for "Third" link) (2) Java code: - TestWindowReload.java (main test program) - TestWebWindowEventListener.java (simple web window event listener) I hope you can spend some time on this one because framesets are quite important in a number of websites. And by removing the NOTICE the stack trace is shown. Greetings, Johan Holtman ---------------------------------------------------------------------- >Comment By: David K. Taylor (dktaylor) Date: 2003-10-17 18:24 Message: Logged In: YES user_id=742109 Fixed the bug where newly opened windows targetted at named frames were not opening in the correct windows. Changed returned page from click() method to work with new targets. That is, instead of just returning changes to the immediate window, it returns any window that is opened. So, if you call click() on an element that has a target set, you will get the page in the window for that target. This is particularly needed for the _blank target where you couldn't find the new window without this change since it is not named. I've attached a development version of the HtmlUnit.jar file for jholtman to use to verify the fix since he has had trouble building from CVS. ---------------------------------------------------------------------- Comment By: Mike Bowler (mbowler) Date: 2003-06-14 11:07 Message: Logged In: YES user_id=46756 Contrary to what the comment above says, there are no attached files. Please add these files so we can reproduce the problem. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=448266&aid=753776&group_id=47038 |