Welcome Guest Search | Active Topics | Sign In | Register

javascript popup Options
yleung
Posted: Friday, June 6, 2014 8:08:01 PM
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.png
Any suggestion?

Thanks
Yuenho
yleung
Posted: Tuesday, June 10, 2014 6:38:00 PM
Rank: Advanced Member
Groups: Member

Joined: 4/2/2014
Posts: 37
Any idea??

Thanks
Yuenho
eo_support
Posted: Tuesday, June 10, 2014 10:50:34 PM
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!
yleung
Posted: Wednesday, June 11, 2014 7:15:59 PM
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
yleung
Posted: Thursday, June 12, 2014 7:09:56 PM
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

yleung
Posted: Thursday, June 12, 2014 7:16:49 PM
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.
eo_support
Posted: Thursday, June 12, 2014 9:09:38 PM
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!
eo_support
Posted: Saturday, June 14, 2014 9:14:07 PM
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!
yleung
Posted: Monday, June 16, 2014 7:20:17 PM
Rank: Advanced Member
Groups: Member

Joined: 4/2/2014
Posts: 37
Thanks.. That works.
eo_support
Posted: Monday, June 16, 2014 8:38:00 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Great. Thanks for confirming the fix!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.