473,378 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

stop webbrowser DOM changed alerts

has anyone found a solution to this yet? I joined so I could continue this thread but I'm not allowed to reply to the original message!

I am having the same situation, web browser used in a C#.NET project throws alert when DOM is changed. I'm bypassing it by throwing out a "n" keypress event when I anticipate the alert box, but it's sloppy and occasionally causes the n to insert elsewhere if a user changes focus before the alert appears.

this project has used embedded web browsers all over, and this is an irritating problem. Any ideas?

>Sorry, should have been plainer.

>Its the webbrowser that generating these errors, not >VS.NET :-)


"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> wrote in
message news:O8GyHPmvDHA.3216@TK2MSFTNGP11.phx.gbl...[color=blue]
> Tam,
>
> If you go to the options dialog in VS.NET, under the "Environment"
> folder and the "Documents" section there is a textbox labled:
>
> Detect when file is changed outside of the environment
>
> Make sure this is unchecked, and when the file is changed, it will not
> give you that message.
>
> However, this does this for all files, so be careful.
>
> Hope this helps.
>
>
> --
> - Nicholas Paldino [.NET/C# MVP]
> - mvp@spam.guard.caspershouse.com
>
> "Tam Inglis" <joseph.inglis@btclick.com> wrote in message
> news:br4fpd$pmb$1@sparta.btinternet.com...[color=green]
> > Got a problem.
> >
> > Setting design mode on and making changes to an existing HTMLDocument[/color]
> makes[color=green]
> > subsequent page changes to throw up dialog
> >
> > ----------------
> > Title has application path and file name,
> > "This document has been modified. Do you want to save changes?"
> > "Yes: Saves your changes"
> > "No: Discards your changes"
> > "Cancel: Keeps this document open"
> > Yes/No/Cancel buttons.
> > -----------------
> >
> > How can i supress this?
> >
> > Bascially I'm loading the contents (<body>) from a text file, wrapping[/color][/color]
it[color=blue]
> in[color=green]
> > html headers and saving to a temp.html which i then
> > .Navigate({pathto}\temp.html) to. Works well.
> >
> > When done i extract the body content and save to its original source[/color][/color]
file.[color=blue][color=green]
> > So i dont care for this message.
> >
> > I cant call document.Exec("SaveAs",false,{pathto}\temp.html) as this[/color]
> causes[color=green]
> > the FileSave dialog to appear. The third argument is ignored as part of[/color]
> the[color=green]
> > underlying security policy (cos webpages could upload to your HD at that
> > point i suppose).
> >
> > Am stuck. Any help any of you can give this would be appreciated.
> >
> >[/color]
>
>[/color]


Nov 15 '05 #3
Apr 30 '12 #1
0 1793

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Matt | last post by:
Hi group, Here's a problem I've been trying to solve for the past several weeks. I have the standard WebBrowser object added to a form so it can access websites, and I have it load a default...
2
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2...
7
by: Doe | last post by:
I've been trying this for months. Doesn't work. I've used the code in this article, http://support.microsoft.com/kb/311288/en-us, HOW TO: Invoke the Find, View Source, and Options Dialog Boxes...
12
by: Alex Clark | last post by:
Greetings, (.NET 2.0, WinXP Pro/Server 2003, IE6 with latest service packs). I've decided to take advantage of the layout characteristics of HTML documents to simplify my printing tasks, but...
7
by: Dave Booker | last post by:
I am using a WebBrowser object in my .NET 2.0 application, but it is not shown to the user. Every time a timer event triggers it to perform a m_WebBrowser.Navigate() I get that classic IE 'click'...
1
by: Sin Jeong-hun | last post by:
Is it possible to modify the HTML or the script of a WebBrowser control in DocumentCompleted event? I tried to modify it but that caused DocumentCompleted again so the program fell in an endless...
4
by: Robson Siqueira | last post by:
Folks, I am facing a problem. I am trying to manipulate the HTML data (thru the Document and DocumentText properties) of the WebBrowser object (System.Windows.Forms). The problem is that the...
18
by: Zytan | last post by:
I have multiple threads writing to WebBrowser (using a function that checks InvokedRequired, and if so, invokes itself on the WebBrowser thread) and they are getting deadlocked. They only...
14
by: Ron Adam | last post by:
Is anyone else having problems with the webbrowser module? Python 2.5.1c1 (release25-maint, Apr 12 2007, 21:00:25) on linux2 Type "help", "copyright", "credits" or "license" for more...
11
by: kimiraikkonen | last post by:
Hi there, I needed to use MouseOver event on Webbrowser which is NOT provided by webbrowser control natively(what a disappointment), so i decided to go with another route to simulate this like: ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.