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 SkipVought 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: *

  • Users: sdi
  • Order by date
  1. sdi

    Formating number in output

    Or you could use the toFixed() method formName.Name.value.toFixed(2)
  2. sdi

    Load another page when back is pressed

    You could try and use an allowed referrer script where the flash page or pages would only be viewed in a particular sequence. Thus when the back button is pressed an alert will come up and when clicked will return them to the page of your choice... Try this out for a possible solution...
  3. sdi

    Check for Radio Button's Presence

    bont, Can you provide us with your code? Thanks, Brian
  4. sdi

    Installing PHP

    Omegabeta, Here is a link that you can use to help with your installation.. I had to change a couple of lines from what is shown in it but that was due to different paths, etc.. I had never used php or mysql before and was successful on the very first try.. (I think this covers apache...
  5. sdi

    how do i work out a total vaue in dollers cents by * total quantity by

    Jeff, Thank you! (*). I was actually holding off on publishing part of my web page because of not having that question answered. Actually, you have given me many solutions just by reading various posts and the solutions you have provided. Thank you again, Brian
  6. sdi

    how do i work out a total vaue in dollers cents by * total quantity by

    data1, Just a word of caution. Try to refrain on submitting multiple posts on the same subjects. This will help those within the forum to best advise you with possible solutions, as well as see what others have suggested already. If you have difficulties puting the pieces together with the...
  7. sdi

    how do i work out a total vaue in dollers cents by * total quantity by

    Jeff, I have been using the toFixed() method alot here lately. This is a trick I learned from you in previous posts (I thought it would save me the time of writing a function to handle the decimal places). My concern is that Netscape will not know the toFixed() method and raise an error. I...
  8. sdi

    This works except if i say leave t3 empty int4 it will display NaN

    data1, Would it be ok to asign 0 to the text box by default? If so just do this to all text boxes.. t1 and t2 and t3.. <INPUT type=&quot;text&quot; name=&quot;t1&quot; value=&quot;0&quot;> <INPUT type=&quot;text&quot; name=&quot;t2&quot; value=&quot;0&quot;> <INPUT type=&quot;text&quot...
  9. sdi

    I would like to add txtbox1+textbox2to get an answer txt3

    Oh yeah another thing to keep in mind.. If you will be using decimal points and adding your values, you will need to write a function to control the precision of decimal places. (If you will be using IE only you could use the toFixed(x)method [where x is the number of desired decimal places]...
  10. sdi

    I would like to add txtbox1+textbox2to get an answer txt3

    Hi data1, Give this a shot.. I also set it to where the result &quot;t3&quot; box would not allow any data to be changed or entered into it. <HTML> <HEAD> <TITLE>Untitled</TITLE> <SCRIPT language=&quot;JavaScript&quot;> function calculate(){ var f = document.form1; var first = f.t1.value; var...
  11. sdi

    Calculate total w/ dropdown list values

    I don't have netscape but I believe the problem may simply be the one line that ends with .toFixed(2) .. toFixed() may be an IE only method.. remove it from that line and see if it works for you. If it does then you may have to write code to get your 2 digits for the math.. Brian
  12. sdi

    Calculate total w/ dropdown list values

    Ok got it working, try this function... function calculation() { // -- Thanks to Owl from the PageResource.com/JavaScript // -- City support forums for help with the math behind // -- this script. var people = 0; if ((document.resform.adults.value != '') || (document.resform.youth.value != ''))...
  13. sdi

    Calculate total w/ dropdown list values

    Ok that didn't fix your problem, I just now fully understand what you were saying.. scratch that last post it. Sorry, still working on it though.. Brian
  14. sdi

    Calculate total w/ dropdown list values

    Lahddah, I made a couple of small changes to your code and get the calculations I believe you wanted. I also set the amount to have two decimal places with the .toFixed() method. Try this and see if it is what you are looking for... function calculation(triptypeValue) { // -- Thanks to Owl...
  15. sdi

    Moving items from one list to another

    Great script Gary, I often find myself challenged with how to do things. Yet I try not to post for an answer ( being relatively new to javascript I find that I can retain the lesson better when I figure out things by working them out ) however, I would not be able to overcome the problems if...
  16. sdi

    Is alert and confirm the only types of message boxes.

    You could create a pop up window to handle the events that you want to happen. There have been several posts on the subject. Try this thread for starters.. thread216-611877 Good luck, Brian
  17. sdi

    Object Expected Error help!!!

    Hey Matt, Sorry about that. I promise the code that I posted worked on my local machine without error, so I went to the link you just provided and duplicated the error. I did a little more trimming to your code and believe the submit function is working properly. Then the cancel function...
  18. sdi

    Object Expected Error help!!!

    I found 2 places on the page that generates the error and removed the lines in both places that said onFocus=&quot;hadFocus(true)&quot; and the errors disappeared. Try this.. <html> <head> <title>UCC Portia Home</title> <meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html...
  19. sdi

    Changing dropdown menu bar options

    I would want to populate the first list when the form loads rather than when a selection is made, however, here is something to help you out. <html> <head> <script language=&quot;JavaScript&quot;> function myselect() {...
  20. sdi

    Getting java error message.

    To help you out with number 3).. here is a code example of returning to a previous page where the cursor will change depending on the browser used... The &quot;hand&quot; is IE only, &quot;pointer&quot; is NS, and when not sure use &quot;default&quot; for the cursor style.. This part goes in...

Part and Inventory Search

Back
Top