Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. megalene

    Calculating Form Values using ASP

    try using on your response.write this - response.write formatcurrency(ccur(total),2) Megalene If you crap it will stink!
  2. megalene

    Calculating Form Values using ASP

    ah yes ccur() how fast i forget, nice catch genimuse! Megalene If you crap it will stink!
  3. megalene

    Calculating Form Values using ASP

    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) = "&quot...
  4. megalene

    ASP to Flash Problem or maybe just me?

    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...
  5. megalene

    * Whats Wrong with this code ???

    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(&quot;myfield&quot;) & &quot;<br>&quot; rs.movenext...
  6. megalene

    Open page from a popup in the parent/main and close popup

    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=&quot;javascript&quot;> <!-- function goBackToMain(){ window.opener.href = &quot;yourmainpage.html&quot...
  7. megalene

    string length error

    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(&quot;something&quot;).... Megalene If you crap it will stink!
  8. megalene

    Detecting if image url is valid

    plug that right into your asp page. Megalene If you crap it will stink!
  9. megalene

    string length error

    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), &quot; &quot;)...
  10. megalene

    Detecting if image url is valid

    You can use this to check for an instance of that image file:: public function isValidImage(fileName) dim fsoObj set fsoObj = server.createobject(&quot;scripting.filesystemobject&quot;) if fsoObj.FileExists(server.mappath(&quot;\images&quot;) & &quot;\&quot; & fileName) then isValidImage =...
  11. megalene

    cookie methods

    I dont know of a &quot;delete&quot; option, but what I usually do is set the cookie to nothing: response.cookies(&quot;mywebsitecookie&quot;) = &quot;&quot; Megalene If you crap it will stink!
  12. megalene

    Reading XML files

    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!
  13. megalene

    Reading XML files

    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...
  14. megalene

    Arrays

    dim arrayNum arrayNum = ubound(yourArrayName)
  15. megalene

    Windows......again

    You will need to use javascript for the timed window close event as far as I know. And the same for a popup window.
  16. megalene

    Div , Frames and talking between them

    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.
  17. megalene

    dynamic image by passing the image name through the url - how?

    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...
  18. megalene

    ????Cursor in first input field????

    function firstField(){ document.forms[0].elements[0].focus() } <body onload=&quot;firstField()&quot;>
  19. megalene

    Converting ASP Class Files to the ASP.NET Platform

    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.
  20. megalene

    open new window and pass parameters from a button

    Why not just do this: <script language=&quot;JAVASCRIPT&quot;> 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=&quot;opencalc()&quot;> then on...

Part and Inventory Search

Back
Top