Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
  1. #1
    Senior Member jf1288's Avatar
    Join Date
    Sep 2003
    Posts
    215
    Member #
    3300
    Ok, i have a form that takes user input (x) and makes a list of x many form fields. Each field stores its value in a permanent, hidden form field before it is erased.

    Now i have a list of x many form fields named "link1", "link2" and so forth. Now i want to run a script to lift the values from each consecutive form field. I tried using getElementById(), but it doesn't let you add the ".value" to the end. Then I tried to use make a small <span> at the bottom of the page and use javascript to generate a string using a for loop and whatever number x is. (its stored in another hidden field). This string is then slapped into the span using innerHTML, but i cant get the string to exocute.

    Anyone know why? Attached is the page i'm using, but the code is very complex and i really need some help from an experianced person.


    Thank you very much to anyone who can help.

    Jordan
    If its not in Family Guy its not worth it.

  2.  

  3. #2
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    Hmmm... I think you forgot something
    - Brian

  4. #3
    Senior Member jf1288's Avatar
    Join Date
    Sep 2003
    Posts
    215
    Member #
    3300
    what am i forgetting?
    If its not in Family Guy its not worth it.

  5. #4
    JR
    JR is offline
    Senior Member JR's Avatar
    Join Date
    Nov 2002
    Location
    UK
    Posts
    4,354
    Member #
    257
    The attachment
    JR

  6. #5
    Senior Member justlivyalife's Avatar
    Join Date
    Jul 2003
    Location
    Birmingham, UK
    Posts
    2,871
    Member #
    2374
    lol
    justlivyalife - The future depends on what we do in the present. (Mahatma Gandhi)
    WDF Resources: WDF Rules
    Non-WDF: JavascriptSource | Dynamic Drive | phpBB | HTML-Kit | Winamp | Download Firefox | Morguefile

  7. #6
    Senior Member jf1288's Avatar
    Join Date
    Sep 2003
    Posts
    215
    Member #
    3300
    Aww he ll. Thanks for reminding me. I coulda sworn i attached it. Ok well i've been toying with the script a bit, and heres what ive got so far.
    If its not in Family Guy its not worth it.

  8. #7
    Senior Member jf1288's Avatar
    Join Date
    Sep 2003
    Posts
    215
    Member #
    3300
    and heres an escaper/unescaper page for viewing escaped code.
    If its not in Family Guy its not worth it.

  9. #8
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    That instance of the page has an error on it, line 68 char 5 which turns out to be the line:
    [minicode] maketable();[/minicode]
    This happens because you don't have a function defined by that name.

    EX:

    Code:
    <script>
    
    function maketable() {
     // do something here...
    }
    
    </script>
    - Brian

  10. #9
    Senior Member jf1288's Avatar
    Join Date
    Sep 2003
    Posts
    215
    Member #
    3300
    hmm. i seem to be making a fool of myself on here on a regular basis. Well thanks, but i finished the page a little late. (it was for the contest). better luck next tim e i guess.
    If its not in Family Guy its not worth it.

  11. #10
    Senior Member skrlin's Avatar
    Join Date
    Apr 2003
    Location
    Illinois
    Posts
    562
    Member #
    1063
    You're not a fool, you're just learning. I still make mistakes that look worse than that...
    - Brian


Page 1 of 2 1 2 LastLast

Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 10:05 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2020 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com