User Profile

Collapse

Profile Sidebar

Collapse
dpi
dpi
Last Activity: Jul 31 '07, 10:18 PM
Joined: Jan 24 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dpi
    replied to Auto Populating Form
    Thanks for all your help.

    Cory Wright
    Graphicworx...
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    I havew no clue what that stuff is, it doesnt show up in my code offline. The spaces came in when I pasted the code from here, I thought I removed them.

    Luckily, I did figure out how to do it.

    Code:
    function dm(amount) 
    {
      string = "" + amount;
      dec = string.length - string.indexOf('.');
      if (string.indexOf('.') == -1)
      return string + '.00';
      if (dec == 1)
    ...
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    Thanks, that all makes sense, but it still wont do anything.
    http://www.rotarytrici ties.com/test.html...
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    Thanks, I know I just must be completly missing something here, but this still wont work:

    Code:
    <html>
    
    	<head>
    		
    		<script><!--
    		
    		function calculate() {
     var adultAttend = document.getElementById('adult_attend_full_#').value;
     document.getElementById('adult_attend_full_total').value = adult_attend_full_# * 160;
    }
    //-->
    </script>
    ...
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    I just noticed I didnt have any link for the form process the info, or a submit button on this one (it is on the real one) I didnt think it matters....
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    I appreciate all your help. I still cant seem to get it to work. I simplified it down so I could figure it out, here is the code with what you suggested:

    Code:
    <html>
    
    	<head>
    		
    		<script><!--
    function calculate() {
     document.getElementById('adult_attend_full_#').value
     document.getElementById('adult_attend_full_total').value
     var "adult_attend_full_total"
    ...
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    isnt this the javascript forum?

    Ok, bare with me as I am not a programmer.

    So does the:

    Code:
    document.getElementById('adult_attend_full_#').value
    and

    Code:
    var adult_attend_full_total = adult_attend_full_# * 160;
    Need to be in a <script></script> in the header?

    Do i need to do the:
    Code:
    document.getElementById('adult_attend_full_#').va
    ...
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    Any ideas?
    See more | Go to post

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    So basically I want the value from 'adult_attend_# ' to be multplied by 160, and the resulting total to appear in the 'adult_attend_t otal' field. Then I want the values of 'adult_attend_t otal' and 'child_attend_t otal' to be added together in 'total' field.

    There is actually going to be more to the form, but basically using the same concept, one number that is inputed needs to be multiplied by a fixed number to show a total for that...
    See more | Go to post
    Last edited by acoder; Jan 29 '07, 08:32 PM. Reason: Code in proper tags + removed extra whitespace

    Leave a comment:


  • dpi
    replied to Auto Populating Form
    If there is a simple way to implement a javascript function into an already established HTML form that uses php to process that would be great.

    I wouldnt expect it to be custom written, I would assume there has to be something like this out there that has already been done, or at least elements that I can use.

    Like i said, I have the way to process the forms and can create the forma nd everything else, I just need...
    See more | Go to post

    Leave a comment:


  • dpi
    started a topic Auto Populating Form

    Auto Populating Form

    Hello All,

    I am created an Event Sign up form. They have a bunch of different conferences during the event people can sign up for. What i want to do is when they check an event, the costs of the event is automatically added to a "total" field at the bottom so people know how much they are paying. I assumed this would be simple, but i cant find for the life of me how to do it.

    Any help would be very greatly...
    See more | Go to post
No activity results to display
Show More
Working...