User Profile

Collapse

Profile Sidebar

Collapse
windsorben
windsorben
Last Activity: Jan 20 '08, 05:47 AM
Joined: Nov 2 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • I added the input types below but must have done something wrong because it doesn't work. Let me know if you see what I did wrong. Thanks!


    Code:
    var score = 0;
    var answer = new Array("pass","brag","drag","began","else","held","felt","kept","smell");
    var inputs = document.getElementsByTagName('input');
    
    function check(){
    ...
    See more | Go to post

    Leave a comment:


  • I did this but obviously it didn't work:. I don't know exactly how to specify (or where) the type (text). Thanks and sorry to be a pest...

    [CODE=javascript]}
    var score = 0;
    var answer = new Array("pass","b rag","drag","be gan","else","he ld","felt","kep t","smell");
    var inputs = document.getEle mentsByTagName( 'input');
    ...
    See more | Go to post
    Last edited by acoder; Nov 30 '07, 09:08 AM. Reason: Added code tags

    Leave a comment:


  • clarify

    Acoder,
    I'm beginning to think that I'll just embed the sound files outside of the form. I guess I should just keep it simple stupid (that's me--not you--you're a genius).

    Any good recommendations on learning javascript?
    Thanks!
    See more | Go to post
    Last edited by windsorben; Nov 29 '07, 06:12 AM. Reason: clarify

    Leave a comment:


  • error

    Hi Acoder,
    Well, it is working better but now my submit button reads "Try Again." I don't understand because it is type "submit" not type "text." Also, I end up getting a funny score with this new code. Any ideas? Thanks again!

    [CODE=javascript]var score = 0;
    var answer = new Array("pass","b rag","drag","be gan","else","he ld","felt","kep t","smell");...
    See more | Go to post
    Last edited by acoder; Nov 29 '07, 08:51 AM. Reason: Added code tags

    Leave a comment:


  • firefox vs ie

    Acoder,

    What I don't understand is that my original code works fine in Firefox but it doesn't work in IE. I tried making some changes but still no luck in IE.
    Thanks for any ideas you can give me.
    See more | Go to post
    Last edited by windsorben; Nov 28 '07, 04:26 AM. Reason: have a different question

    Leave a comment:


  • Thanks, since my form has nine fields, would I have to call up each field separately or is there still some way to make it work with an array, and if so, would you mind showing me what that would look like? Thanks "acoder," I really appreciate all of your help! I'm getting better at this but javascript has been a tough one for me to learn......
    See more | Go to post

    Leave a comment:


  • javascript problem with embed tag and form elements

    I have some javascript that checks whether or not an answer is correct. It was working fine when the question was asked with text but now that I'm asking the question with audio, the javascript no longer works. (I think it is considering the embed tag as an element in my form and I think that's causing the problem.) I think adding and specifying to only look at a div tag within the form would solve the problem but I'm not sure. Can someone check...
    See more | Go to post
    Last edited by gits; Nov 27 '07, 08:41 AM. Reason: added code tags

  • windsorben
    replied to Text to Speech Javascript
    thanks for your help!

    Thank you for helping a beginner!
    See more | Go to post
    Last edited by windsorben; Nov 21 '07, 07:46 PM. Reason: caught my mistake

    Leave a comment:


  • windsorben
    replied to Text to Speech Javascript
    Would you mind showing me how this would look in my code. I hate to take up your time but what I've tried isn't working.
    Thanks!...
    See more | Go to post

    Leave a comment:


  • windsorben
    replied to Text to Speech Javascript
    What would the div element look like? Sorry, I'm a beginner....
    See more | Go to post

    Leave a comment:


  • windsorben
    started a topic Text to Speech Javascript

    Text to Speech Javascript

    Why do my images dissappear after I clik on them? Otherwise, the text to speech is working just fine. However, it is not functional if the images dissappear.

    [HTML]<script language="JavaS cript" type="text/javascript" >
    <!--

    function insertTTS(tts,l oop) {
    document.write( '<object classid="clsid: 166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macrom edia.com/pub/shockwave/cabs/director/sw.cab#version= 8,5,0,0"...
    See more | Go to post
    Last edited by acoder; Nov 20 '07, 10:28 AM. Reason: Added code tags

  • Wow, good eyes. Looks like your other solution is better though.
    Thanks,
    Ben
    See more | Go to post

    Leave a comment:


  • Thanks,
    Ben
    See more | Go to post

    Leave a comment:


  • if greater than 60 convert to minutes and add seconds

    Can anyone show me the javascript to do this and submit it to a form called "my form" and a field called "time"?

    Also, let me know if I need to put anything in the "body" to start the timer.

    Thanks in advance,
    See more | Go to post

  • Yeah, that would work but the page navigation generated by dreamweaver works with URL variables and then when I hit the next button my form variables no longer exist and then I get no second page of results (even when there are more results). I guess with the page navigation generated by dreamweaver, I'll have to convert my form varialbes to url variables and then use the GET method. I guess this isn't a big deal since no "secret" information...
    See more | Go to post
    Last edited by acoder; Apr 2 '12, 01:32 PM.

    Leave a comment:


  • windsorben
    started a topic if statement to convert seconds to minutes

    if statement to convert seconds to minutes

    What's wrong with this code?

    }
    function getSecs(){
    var mySecs = initStopwatch() ;
    var mySecs1 = ""+mySecs;
    mySecs1= mySecs1.substri ng(0,mySecs1.in dexOf("."));

    if (mySecsl < 60)
    {document.myfor m.time.value = mySecsl + ' seconds'}
    else
    {document.myfor m.time.value = mySecsl/60 + ' minutes'};

    ...
    See more | Go to post

  • Have to submit form twice to get URL query to appear correctly

    I'm submitting a form to the same page. Form variables are being output into the URL and the query works from the URL variables. Problem is, I have submit the form twice before the form field I have selected are passed to the URL variables. In between, it goes back to the default form and url variables that I set to zero. Any idea what going wrong? Interestingly, if I change Post to Get, it works the first time. Here's the code:

    Code:
     <cfparam
    ...
    See more | Go to post
    Last edited by acoder; Apr 2 '12, 01:31 PM.

  • windsorben
    replied to Best book in coldfusion
    I use Ben Forta ColdFusion Book big blue and white book. Plus use the macromedia getting started tutorials.
    See more | Go to post

    Leave a comment:


  • windsorben
    started a topic coldfusion mysql error

    coldfusion mysql error

    Anyone see what I'm doing wrong?
    Here's the form field:
    Code:
    <input type="hidden" name="date" value="<cfoutput>#DateFormat(Now(), "MM/DD/YY")# At #TimeFormat(Now(),"hh:mm tt")#</cfoutput>" size="32">
    Here's the sql insert:
    Code:
      <cfif IsDefined("FORM.date") AND #FORM.date# NEQ "">
        '#FORM.date#'
          <cfelse>
    ...
    See more | Go to post
    Last edited by acoder; Apr 2 '12, 11:09 AM.

  • Thanks, that worked. I'm new at Javascript and didn't know how to pass it to a regular form field either. I appreciate your help....
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...