|
Thank for your help . But it's not what I want. Look at my code below:
function closeIt()
{
event.returnValue = "Do you want to exit?";
}
Click here to navigate to
www.microsoft.com
When I click to navigate to another page, I want to show a confirm "Do you want to exit?". If I click Ok, I can navigate to another page. If I click cancel, nothing happen. That's what I want. But when I close the page, a confirm "Are you sure you want to navigate away from this page? Do you want to exit? Press Ok to continue, or Cancel to stay on the current page." appear, that's too long and complicated. I just want to show a confirm "Do you want to exit?".
Undead142
-- modified at 22:49 Thursday 8th September, 2005
|
|
|
|
|
Basically, when you navigate to another page or close the browser the onbeforeunload , and onunload events get fired. You can raise the confirm message with the onunload event, but it's too late to cancel the event. So the only thing IMO you can use is the onbeforeunload . Thought it not 100% what you want, it seems quite close to that.
|
|
|
|
|
I want to call the Escape Key immediately after the page unload. But I don't know how to call the Escape Key ? Please help me !
Hung
|
|
|
|
|
I am in a slight dilemma at the moment i'm not sure whether to go down the a+/mcse route or whether to take the CIW courses instead. I have been doing some research to try and find out about them I would appreciate any opinions you have on the CIW and MCDBA.
I have quite good html skills and know some Javascript when it comes to web design. Wouldn’t mind taking things a step further by taking the CIW course but I need to know if employers recognize it and does passing the CIW give you a reasonable chance of getting a job in web design or anything related to the Internet?
Alisia
|
|
|
|
|
What is CIW ?
AlisiaWillimans wrote:
I have quite good html skills and know some Javascript when it comes to web design.
Sorry, but these were marketable in about 1998.
AlisiaWillimans wrote:
Wouldn’t mind taking things a step further by taking the CIW course but I need to know if employers recognize it and does passing the CIW give you a reasonable chance of getting a job in web design or anything related to the Internet?
To write web sites nowadays, you should learn J2EE or ASP.NET. ASP.NET is definately nicer and easier. Then you'd have marketable skills, for sure. I have no idea what employers regard as highly, except that I am sure they will regard it highly if you show up having taught yourself, and show yourself to be knowledgable. That's how I got my job, I have no qualifications at all.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am wondering what is the best way to validate username text on a page. HTMLEncoding and URLEncoding are what I have found to validate the username. Is there a better way to check for script attacks then this or am I on the right track?
|
|
|
|
|
Why not continue on your previous thread about script attacks?
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I have been using Visual C++ since v1.5, and now have Visual Studio 2003 and Beta2 of 2005.
Also, I have a broad use of Java,,,so no problem in using the tools.
Now is my first look at programmatic Web navigation.
What I want to know is, can I write a Client (preferably in C/C++ with/without MFC, or Java) that can navigate Web pages, and enter things like a UserID/Password on a page, then navigate to the required page after the login is OK, navigate on from that (like clicking an option on the page) to a dynamically created page, and retrieve data from it.
If there are any examples out there to get me started that would be a bonus too.
Many Thanks,
Bryan.
|
|
|
|
|
Yes...
Internet Explorer is basically a shell around the IWebBrowser2 COM object.
There are many articles on here which explain how use that object.
Using MFC you can quickly see what I mean by creating a project using appwizard and checking that you want to use views, but instead of CView you use CHtmlView
Search Codeproject for CHtmlView for lots of exmaples as to what is possible using the class (which is basically a MFC wrapper around the COM IWebBrowser2 .
Not sure if any article covers exactly what your trying to do - i'm not sure what your trying to do...too lazy to re-read...but if you search CHtmlView here on CP you should be pleasantly surprised.
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Well, that has given me something to look at - and a few new ideas...
Thanks,
Bryan.
|
|
|
|
|
Is there a way to specify a default error page in the web.config file
thanks,
Tom
|
|
|
|
|
set the customErrors node to mode="On" and defaultRedirect="your error page".
I can imagine the sinking feeling one would have after ordering my book,
only to find a laughably ridiculous theory with demented logic once the book arrives - Mark McCutcheon
|
|
|
|
|
|
Is there a function in .NET web stuff that will test a string for script attacks. For example, it tests for javascript code and html in the string the user entered in a first name blank
Thanks,
Tom
|
|
|
|
|
Not apart from the RegEx stuff, which can be used to search for such things.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
If you make sure that you properly html encode all data coming from the user that you output, you are safe from script attacks.
Also, by default the web server is set not to accept any input that contains anything that can be html. You have to set ValidateRequest to false to disable this.
---
b { font-weight: normal; }
|
|
|
|
|
Thank you for the information - sorry about posting another thread I will be sure not to do that in the future.
Tom
|
|
|
|
|
hi
How can i add user control in class library
|
|
|
|
|
Please help me for developing polar chart in .NET and what will be the parameters for polar chart?
|
|
|
|
|
I have three web applications which i have uploaded on my web site eg
1. www.xyz.com/a/
2. www.xyz.com/b/
3. www.xyz.com/c/
When i acess all the three it gives me this error
Server Application Unavailable
The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.
Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur.
Help
|
|
|
|
|
hi there,
acording to the error log, u can dig into event log to discover what the root cause is. First, I just suggest that u try to kill aspnet_wp process and then access ur website again.
if u need more info, this link might be useful for u
http://support.microsoft.com/?id=827641
<< >>
|
|
|
|
|
Hi all,
Can anybody help me with suggestions to write a browser plug-in.
Pradipta Basu
|
|
|
|
|
Best place to start:
Good Luck[^]
Writting these requires a solid understanding of ATL and understanding really confusing code
HTH
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
Thanks for your suggestion. I'm now going through the link http://www.codeproject.com/atl/ietoolbartutorial.asp that you have suggested. But I'm not a novice in VC++. It would be very kind if you can suggest some code in VB or in .NET Technology.
Thanks,
Pradipta
|
|
|
|
|
Hi,
I have many problems with pictures inserted in my documents after I compile them in Html Help Workshop. Sometimes the pictures are not shown.
Anyone knows if this is a bug?
|
|
|
|