|
Rank: Advanced Member Groups: Member
Joined: 4/2/2014 Posts: 37
|
Hi, I have two problems about javascript popup on the windows form web browser control. 1. Javascript popup sometimes does not show on the center of the screen. I have a page with an onload event. In the event, I use window.alert to open javascript popup. So you can imagine that after the page is loaded, you will see javascript popup without clicking any link or button. The page takes time to be rendered. If I open this page on the web browser control, wait, and don't do anything on my computer, then I see the javascript popup shows on the center of my screen. However, if I open this page on the web browser, click the desktop button on the task bar to minimize all applications before the page is loaded. After waiting for a minutes to ensure the page is completely loaded, then I bring up my web browser application, the javascript popup will show at the upper left corner of the screen. Is there anyway to center the popup? 2. If I drag and move any javascript pop-up, the web browser has drawing problem. Here is a screenshot: http://ironspeed.org/howie1/popup.pngAny suggestion? Thanks Yuenho
|
|
Rank: Advanced Member Groups: Member
Joined: 4/2/2014 Posts: 37
|
Any idea??
Thanks Yuenho
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
We have posted a new build that addressed both issues. You can download the new build from the download page.
For #1, in the new build if you use the default dialogs (by NOT handling JSDialog event), then the dialogs will be centered according to the WebView window. If you prefer a different behavior (for example, to center on the screen), you can handle JSDialog event and display your own custom dialogs.
For #2, this should no longer be an issue in the new build.
Please take a look and let us know how it goes.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 4/2/2014 Posts: 37
|
Thanks!
#1 doesn't work liked you described. If I use the default dialogs (by NOT handling JSDialog event), I will still have problem #1. I reviewed your sample wpf application and I didn't see problem #1 because the sample application has JSDialog event handler. If I do the same, I will not see problem #1. So I fix it temporary by implementing JSDialog event for now.
#2 works without problems.
Anyway. Thanks for the help
|
|
Rank: Advanced Member Groups: Member
Joined: 4/2/2014 Posts: 37
|
Oh.. I found another bug with the current dll. If I drag around a "open file" dialog, the background also has redraw problem. To reproduce it, open your sample web browser application. Navigate to http://www.ironspeed.org/howie1/Categories/Add-Categories.aspx on your sample application. Click the "Choose File" button to open a file dialog. Drag and move the file dialog. You will see the background looks ugly. Thanks Yuenho
|
|
Rank: Advanced Member Groups: Member
Joined: 4/2/2014 Posts: 37
|
Another similar case on "save file" or "file download" dialog. To reproduce it, open your sample web browser application. Navigate to http://www.ironspeed.org/howie1/Categories/Show-Categories-Table.aspx on your sample application. Click the "Actions" button" followed by "Excel" button to open a file dialog. Drag and move the file dialog. You will see the background looks ugly.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
yleung wrote: #1 doesn't work liked you described. If I use the default dialogs (by NOT handling JSDialog event), I will still have problem #1. I reviewed your sample wpf application and I didn't see problem #1 because the sample application has JSDialog event handler. If I do the same, I will not see problem #1. So I fix it temporary by implementing JSDialog event for now.
Hi, The designed behavior is NOT for it to be displayed at the center of the SCREEN. It is at the center of the WebView window. Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Hi,
This is just to let you know that we have posted a new build that fixed the file dialog issue. You can download the new build from our download page.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 4/2/2014 Posts: 37
|
Thanks.. That works.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,196
|
Great. Thanks for confirming the fix!
|
|