The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
how can i transfer this alert :
<script language=javascript>
if (window.print) {
agree = confirm('thank you');
if (agree) {window.location.href = 'default.asp'}
}
</script>
to an alert ASP code ???
<script language=javascript>
if (window.print) {
agree = confirm('thank you');
if (agree) {window.location.href = 'default.asp'}
}
</script>
to an alert ASP code ???
نوشته شده در
a quick way coudl be like this (just put it all in an asp page, i think it should work hvent tested it)
<%
strHello = "Hello World"
%>
<script language=javascript>
if (window.print) {
agree = confirm('<%= strHello %>');
if (agree) {window.location.href = 'default.asp'}
}
</script>
<%
strHello = "Hello World"
%>
<script language=javascript>
if (window.print) {
agree = confirm('<%= strHello %>');
if (agree) {window.location.href = 'default.asp'}
}
</script>
© 1999-2010 MaD2ko0l
نوشته شده در
Originally posted by MaD2ko0l
a quick way coudl be like this (just put it all in an asp page, i think it should work hvent tested it)
<%
strHello = "Hello World"
%>
<script language=javascript>
if (window.print) {
agree = confirm('<%= strHello %>');
if (agree) {window.location.href = 'default.asp'}
}
</script>
brother ; I want to transfer all java code to asp code
نوشته شده در
I want to transfer all java code to asp codeFirstly, asp is not code, asp is an engine for interpretting code and can be written in vbscript or javascript, however generally where there is a mix of vbscript and javascript it is done for a simple reason, the vbscript runs on the server and the javascript runs in the browser, so you can't rely replace the javascript as it would no longer function in the same way. So please explain why you are wanting to do it ?
نوشته شده در
thank you " HuwR " for the right definition of ASP !!!!
I want to do an alert in an ASP page ! so how can I do this !! ??
I want to do an alert in an ASP page ! so how can I do this !! ??
نوشته شده در
What is happening to trigger this event?
Is it on page load, when a form is submitted, etc?
Because ASP runs at the server you can't trigger these things without reloading the page. Hence the reason for JS. JavaScript runs client side and can detect something like a form field value on change. For asp to do this you have to submit it.
So the context is important.
Is it on page load, when a form is submitted, etc?
Because ASP runs at the server you can't trigger these things without reloading the page. Hence the reason for JS. JavaScript runs client side and can detect something like a form field value on change. For asp to do this you have to submit it.
So the context is important.
[image=left]http://knswebdesigns.net/common/images/phoenix-logo.png[/image=left]Phoenix! - Ful site integration, CSS driven & XHTML compliant, MooTools, TinyMCE editor for posts & custom content management, , Visual Theme Designer, custom menus & pages, member galleries with ASP JPeg and ASPResize, ASP WordPress style Blog, web friends, FaceBook, Twitter & other social-sharing integration, ReCaptcha & Anti-Spam Registration...and much more.
Email Member
Message Member
Post Moderation
بارگزاری فایل
If you're having problems uploading, try choosing a smaller image.
پیشنمایش مطلب
Send Topic
Loading...