It is completely possible... You can do just about anything with client-side javascript... especially in IE...
Sorry I don't have time to help you with this but here is a great reference...
http://devedge.netscape.com/library/manuals/2000/javascript/1.3/reference/frames.html
Also if you are...
Whoops... in my haste I forgot to remove the actual code I copied the example from.. so ignore the commented out code...
//var dt;
//var cl = document.all.cal
//dt = cl.month + "/" + cl.day + "/" + cl.year
//opener.document.forms[0].ef_tvarchar_tDate_sRec.value=dt;
//...
You have 2 options... (as I see it)
Option #1
Use a div that is hidden and then display it when you need it... it can be absolutly positioned on the page so it will in affect hover over your page... Since it is on the same page (document) it is easy to retrieve the info and then hide the div...
one more example
---------------------------------
<html>
<head>
<script>
function validate(){
return confirm("Are you sure you want to submit?")
}
</script>
</head>
<body>
<form method='get' onsubmit='return validate()'>
<input type='hidden' name='stuffForQuerystring'...
Look I have no clue what you have messed up... but here is a working simple example...
--------------------------------------------------------
<html>
<head>
<script>
function validate(ths){
if (ths.silly.value.toLowerCase() != "no"){
alert("I said NO!!!!");
return...
forget the event.returnValue=false;
change to onsubmit='return validate()'
and then just return false from your validate function if your validation fails
show your validate function... if this doesn't work
but you should change your onsubmit to be...
onSubmit="return Validate();"
make sure your Validate function returns false if you don't want the page to sumbit... good luck
I would answer your question with a question... do you have a performance problem now? If not go with the most simple... easiest code to understand...
But this is just a generality as I cringe everytime I see context swithing within a loop...
so if you are interested check out these links...
you should put the return confirm('Submit form?');
in the onsubmit event of your form...
<form onsubmit='return(confirm("Submit form?");' ...
That should work...
That is all fine and dandy but it won't work from asp... as the wscript object is not available because the wscript or cscript engine is not running the vbscript... If you find a way to do this I would love to know... As far as I know there is no way to invoke a command from an asp program...
The constanT ForReading is not defined... you must either define it yourself or add a reference to the dll that contains those constants... in this case it is the scripting runtime...
You could add this (see metadata tag below) to your asp page or in your global.asa or..
if you are using MS...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.