you can try converting the form variants into math friendly values like such.
dim rf,total,price,qty
set rf = request.form
price = rf("price")
qty = rf("quantity")
'check for blanks
if not trim(price) = "" then price = int(price)
if not trim(qty) = ""...
Okay here is the problem:
I am trying to load images dynamically into flash based on a click from an html page that does 2 things via javascript.
1. calls html frame page with flash causing it to reload.
2. calls ASP page with a new variable passed to add to a text file which writes it back out...
I have been told there are problems with the recordcount feature in the RS object and it sometimes returns a 0 which would make your if statment not true.
try this around your loop:
if not rs.eof then
do while not rs.eof
response.write rs("myfield") & "<br>"
rs.movenext...
If i understand you correctly you will want to use this script on the 404 error page to take them back to the main page and close the popup window ::
<script language="javascript">
<!--
function goBackToMain(){
window.opener.href = "yourmainpage.html"...
do you know where i could find a complete syntax listing of the new string object properties and such.
By the way, thanks!! I have been sitting here trying every possible configuration like string.length("something").... Megalene
If you crap it will stink!
I am busy converting my ASP code to ASP.NET and I have come accross an error with the LEN() method. Is there a different way to get a string length in .NET? Here is my coded string ::
if Len(asContents) Mod 4 > 0 Then asContents = asContents & String(4 - (Len(asContents) Mod 4), " ")...
You can use this to check for an instance of that image file::
public function isValidImage(fileName)
dim fsoObj
set fsoObj = server.createobject("scripting.filesystemobject")
if fsoObj.FileExists(server.mappath("\images") & "\" & fileName) then
isValidImage =...
I dont know of a "delete" option, but what I usually do is set the cookie to nothing:
response.cookies("mywebsitecookie") = ""
Megalene
If you crap it will stink!
Is this for an intranet? If so you could use your network path instead of the http path of the XML document. After testing here at work locally I was able to view xml documents hosted on another workstation. Megalene
If you crap it will stink!
XML has a built in HTTPRequest to access XML document anywhere here is some code that will get an XML document and display the contents.
<%option explicit%>
<%
on error resume next
' Set the source and stylesheet locations here
dim sourceCategory
dim sourceFile
dim styleFile
dim source...
From a quick glance at what you are asking you will need to reference the frames collection in every place you call the DIV for example parent.top.document.tooltip1.write
Parent - being the master frame document
Top - being the name of your top frame
Hope this helps.
You could execute this an easier way, not as complex but much easier.
create a function like so:
<script>
<!--
function getImg(imgX,w,h){
window.open(imgX,'','toolbars=0,width='+w+'scrollbars=1,height='+h+'status=0')
}
//-->
</script>
then in your href links put this :
<a...
Thanks for the help, I will look more into the .VB files.
I have various web applications that do content management to guestbooks,forums and such. I am also looking into the ADO.NET too, so much to do, so little time.
Why not just do this:
<script language="JAVASCRIPT">
function opencalc(){
window.open('next.asp?var1=<%=rs(var1)%>&var2=<%=rs(var2)%>&var3=<%=rs(var3)%>', 'Calculation', 'width=650,height=250');
document.c1.submit();
}
</script>
<body onload="opencalc()">
then on...
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.