Navigate away message appears twice -
I want to warn users if they try to leave a page without saving changes. So, I have this on the page:
<script for="window" event="onbeforeunload" type="text/javascript">
if (PageEdited)
{
event.returnValue="You have altered some of the data on this page but you have not saved your changes.";
}
</script>
I have a global variable - PageEdited - which is set to true if a user types in a text box or changes a dropdown list etc.
I have used this code on lots of .asp sites with no problems. But on my first .net site - the code fires twice. i.e. The alert that says 'Are you sure you want to navigate away from this page' fires twice - if I click on a hyperlink.
But, if I click on the close button (the browser close button at top right of window) - the alert only appears once.
Any ideas why the alert appears twice when I click on a hyperlink?
Posting this here because I think it might have something to do with 'postbacks'.
Thanks for any help.
Navigate away message appears twice -
I want to warn users if they try to leave a page without saving changes. So, I have this on the page:
<script for="window" event="onbeforeunload" type="text/javascript">
if (PageEdited)
{
event.returnValue="You have altered some
Message boxes and forms -
I have a message box which appears if the user makes an error when interacting within a form which is secondary to the main form. (The secondary form appears when the user clicks a button to see an index. ) But when the message box appears, the second form disappears, so the message
path navigation -
hi there.
i basically have a program which displays lists of files in one filelist box, and can navigate using the treenode/view box.
i have a text box where the user can type in the path to navigate to.
if the user enters the incorrect path, a message appears (exception) whic
Timed message box -
All,
I need to create a message box that appears after an Excel workbook has been open every 5 minutes. Ie. someone opens the workbook five minutes later the box appears, 10 minutes later it appears again etc. Can someone please point me in the right direction i have no idea where
msgbox having focus -
if there anyway of making sure that a message box is on top of any other window on the screen.
I am running winsock and sending remote messages. when the message box appears on the client it appears on the task bar behind everythig else
any ideas???
Question about text message -
I trying to do this...
Make a program that once the user presses the command button a text message appears..and then if he presses he/she command button again, a different message appears.
I have the user interface finished,also i have the code done for the first message that app
Insert into database problem -
Whenever I insert a record containing existing primary keys, an error message appears telling the user that the primary key already exists, which is good. The problem now is if I change the primary key to something that currently does not exist, the same error message appears. But wh
problem in installing my app -
hi
I am trying to install my VB6 application in a PC.I am using Package and Deployment tool that comes with VB6.
When I clicked the setup buttom,a message appears:
"Some files are out of date in your computer.You must restart your computer in order the update take place&quo
Method 'Navigate' of object 'IWebBrowser2' failed -
I'm using a WebBrowser control in my app to navigate to several pages. The first time I navigate to a page all works fine, but when I try to navigate to another page from there, it gives me a Method 'Navigate' of object 'IWebBrowser2' failed error. This is absolutely ridiculous Does a
Sending Multiple URLs -
Here is my dilemna and though I've searched this site high and low I have been unable to resolve my issue. So if this has been addressed before I would appreciate the thread link.
Here is the explanation of what I'm trying to do:
I have a program that sends out information in
regsvr32!!!!! -
I'm trying to register an add-in for VB using regsvr32... however it won'tr register!
No success message appears, but no error message appears either when I run regsvr32. The registry, however, has no trace of the dll I just registered!
I replaced my regsvr32.exe file, but the pr
Error with windows update -
I get an error message which has something to do with the file wmiprvse.exe i cant remember the exact message now, it appears when the windows update icon appears and when I went to download the updates. any suggestions?
Webbrowser before navigate question -
I have two option butons on my form when one the one title nonav is selected I want the webbrowser to not navigate I know about the before navigate I just dont understand the usage
vbModal and MsgBox problem -
I have two forms, Form1 and Form2.
Form1 contains the code
Private Sub cmdOpen_Click()
Me.Show
Form2.Show 1
.....
In Form2, under my Form_Load Sub I have a Message Box that I want to pop up
The problem is that on clicking Open command, the Mes
Detecting Drives -
Hi...
I want to make a cd with an autorun, then calling an html page.
what I've already done:
dim ie as internetexplorer
set ie = new internetexplorer
...
ie.navigate "\index.htm", 2
ie.visible = true
in this case, when I put it all to the cd it gives
displaying a message if something already appears in my list box -
i have a text entry box where for example i can type "blue" into it then gets added to my list box but i want it to display a message if the word "blue already appears in the list box and for it not to add it again.
Any suggestions for coding.
webbrowser navigate vs. navigate2 -
Has anyone else experienced this problem. In my app I use the Webbrowser control and the Navigate method to navigate to a URL. Works fine on my machine but evidently not on some others.
I've since changed the code to call the Navigate2 method. The results are yet to be determined.
Download Video Clips Using WebBrowser Control -
If I use Internet Explorer and navigate to a You Tube video clip a RealPlayer button appears at the top right corner of the video clip which says "Download This Video" and also if I right click on the video there is an option at the bottom of the popup box that says "Dow
[2005] Check the proxy status -
Hi guys
How do I check the connection of the proxy server to see if the connection is works then message appears to come on the screen saying you have successfully connected, otherwise if the server isn't working then message appears say that the server is not found??
Thank
internet browser error message -
hey, when i navigate with the internet browser, in some webpages it shows an error message, just like the one in the picture:
how can i make it not show the error message? and it also sometimes give a quicktime error message, i also want to shut that one down too. How can I do that
navigate pdf files in webbrowser -
hi, i have recently found out that webbrowser control can also navigate through local files like doc and xls... but how can i navigate through pdf? her's another one, when i navigate a doc or xls file, i can save and print the file... through it's own save and print button... but how c
VB6 closes when I try to view code. -
Since last week I can't run Vb6, if I open any project then it will close with message "Visual Basic has encountered a problem and needs to close. We are sorry for the inconvenience."
The same message appears when I try to view-code or compile a project.
After I reformat
Good Evening Fellow Coders. -
Anyone know how I can create an "optional Message Box"? The message box appears with a question then below you have a checkbox to indicate whether the message should be shown any more?
THanks
[Solved] Dont want webbrowser.navigate to add urls to IE history, how -
Hi,
i made a small Versioncheck routine for one of my older Tools, it checks a website with the current releasenumber if it has changed.
I use the webbrowser control...
ie.navigate "www.myurl.de/versiontext.html" something like that...the problem is this URL now appe
WebBrowser, OWA and LDAP -
Hi,
I have a VB application that has a WebBrowser(shdocvw.dll) included in a form. This webbrowser open a page whit the client mail (Outlook Web Access). When the client try to open a message, a messages to login again on the domain appears (the message doesn't appears when the OWA
preventing reboot message -
I am trying to deploy a .cab file consisting of an ocx and some dll's over the internet. My html page's code successfully downloads and extracts the .cab to the local machine. However, when it is done, the message box "You will need to reboot your system for the new settings to
Grabbing Message text -
Question for anybody:
I'm trying to write some code that will grab the text of pop-up windows from Internet Explorer. I can easily enough get the name, hWnd, etc of the pop-up window (Internet Explorer), but would like to be able to peer into the actual text of the message from cod
[2005] WebBrowser to navigate a list of Urls -
Hello all,
I'm using a webbrowser control to navigate a list of Urls... Currently what I'm doing is to use a index counter and have the WB navigate to the 1st url in the list. Then in the WB.DocumentComplete event handler, I read the document and do some manipulation with it. Once don
Command Bar -
When i am recalling a message in outlook, I get a lebel somthing like this in the sentmessage:
You attempted to recall this message on Monday, November 21, 2005 10:19 AM.
I want to take out this timing when the message was recalled.
Actually, I have written a script which re
Tricky Question -
I have a VB app that opens excel spreadsheets. Sometimes when the spreadsheet is corrupt excel terminates abnormally and causes a DR Watson error, which displays a modal dialog box. Is there any way of getting VB to either pass a key stroke ( to cancel the box, this box is only a notif
Stanalone Application in Visual Basic6 is not working on Vista but working on XP -
Hi,
I am facing some issues in my client application developed in visual basic 6 when install and work on vista opertaing system. please find below the description :
Problem : The application works fine on other operating system like Windows 98, 2000, Win XP SP2 but do not work p
Invoking an applet through a vb form -
Hi,
I'm developing a chat application. It is a java applet. and im using a VB form to invoke the browser with the URL to the chat application using the following code
URL = "http://instasystem:8080/InstaMsg/InstaMsg.html"
WebBrowser1.Navigate URL
Everything is working
Message Boxes -
How do you set the location of where a message box appears when it is called. I want to call a couple message boxes at the same time in a loop. The problem is they all stack on top of each other so you only see one at a time. Please Help Me!
Upgradind windows common controls -
Hi all,
I start a project in vb6, and I use some contents of Microsoft Windows Common Controls. But the Component checked, it's Windows common controls 5.0. Now, I need to change this to windows common controls 6.0, because I need some features of it. But when I try to uncheck the 5.0
Word 2000 offers to install help when I close it after I register my addin -
I'm getting an odd problem with a word addin dll I've written. Whenever I close word I get a message saying word can't display help because it's not installed and asking if I want to install it. If I unregister the dll the message no longer appears. This only happens in word 2000, (
Query regarding parameters of Navigate method in Internet Explorer object -
Hi,
I have a query regarding the SELF parameter of the Navigate method of Internet Explorer object.
I am retrieving the URL of the website which the user has opened in the browser. I want to navigate the user to the same URL and in the same browser window using the Navigate meth
A message not wanted in VB6 and Outlook6 -
Hi.
I have an application that needs to send automatic mails but with the
Outlook 2000 a Message like "Allow send the mails" appears and then
a Message "Accept send message". So this make mi program works bad.
I need what can I do?
Regards
Luis Solis
Browser Navigation - Frames -
Gday all
Just a quick question which hopefully is so simple that I'm a fool for not being able to find the answer. I have a browser open inside a form and am using VB to navigate through different websites etc.
I'm all good with navigating by using webbrowser.Navigate "http:
[2005] Message Boxes -
Ok, quick question, how to you code an 'OkCancel' message Box. E.G If a messagebox appears how do you tell it to do a specific action when the cancel button is clicked. I dont know how 2 word it :S
Dont report errors -
ok i have 1 question is it possible to send keys to a message box? i know the title but does the code pause when a message box appears on your app
the code is no where near the message box code. i want it like if there is a error it will close the box like a Dont Report Errors Opti