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

  1. LAwebTek

    Disable Submit after submitted

    oops, I made the same mistake, have to tell it to submit the form, too - lol: <form name='form1'> <input type=&quot;submit&quot; id=&quot;FINISH&quot; value=&quot;Submit&quot; onClick=&quot;javascript:document.form1.FINISH.disabled=true;document.form1.submit();return false;&quot;> </form>
  2. LAwebTek

    Disable Submit after submitted

    <form name='form1'> <input type=&quot;submit&quot; id=&quot;FINISH&quot; value=&quot;Submit&quot; onClick=&quot;javascript:document.form1.FINISH.disabled=true;return false;&quot;> </form>
  3. LAwebTek

    submit opens popup, popup closes when next page loads

    you're very welcome - thank you for the purple star (it's my first one!) var atFirst='developer.succeed=true' if(eval(atFirst)){ celebrate() } else { tryAgain() }
  4. LAwebTek

    converting milliseconds to minutes to hours/minutes/seconds

    omitting .toString seems to solve the problem
  5. LAwebTek

    converting milliseconds to minutes to hours/minutes/seconds

    In the above code, 10 seconds returns 0:0 function toString() { [native code] } :10 60 seconds returns 0:0 function toString() { [native code] } :0 function toString() { [native code] } and 60 minutes returns 1:0 function toString() { [native code] } :0 function toString() { [native code] }
  6. LAwebTek

    Finding which item has the focus

    Since the document knows which object has Focus already, you just need to add an onFocus handler to form elements, images, and/or links. Now when something on the page gets the focus it will call a javascript function and can even send information to that function as in the simple example below...
  7. LAwebTek

    Is it possible to...

    I was asking the same question a few days ago. Depends on what you are using it for as to the best solution. In my case, My home page is only one html page with a few links. Instead of loading new pages, the links write the new content into a div. The problem is that out of habit people hit the...
  8. LAwebTek

    submit opens popup, popup closes when next page loads

    ok there may be an easier way to do this, but here's what I came up with. On both the page that opens the popup and the page that submit takes you to - add to the <head>: <script> self.name = &quot;myWindow&quot;; self.myObject = new Object(); </script> In the <body> of both pages add...
  9. LAwebTek

    I dont know how to title this.....

    Problem solved - here's what worked: function playNext() { if (MediaPlayer.playState == 1) { //if player is stopped var playList = document.amp.playlist.options; var i, len = playList.length; for(i=0; i<len; i++) { // find current selection if (playList[i].selected) break...
  10. LAwebTek

    I dont know how to title this.....

    I'm trying to do something a little unique and I'm sure it can be done because I'm already quite close. I'm trying to write a code that will first, look to see if the &quot;continue&quot; radio button is checked (that part works). Then it needs to check if the media's playState is == 1 (that...
  11. LAwebTek

    creating select options from cookie str

    The problem is solved, but in case you want to know how it's done (thanks to Dave Clark of Dave Clark's consulting) it looks like this: function loadList() { var playList = document.amp.playlist.options; var TheList = getCookie(&quot;TheList&quot;); if (TheList != null) { var...
  12. LAwebTek

    creating select options from cookie str

    the saveList() function works. I tried to write the loadList() function to repopulate the select options, but I'm obviously doing something wrong at the end of the code. In my test I save 3 items and when it repopulates it does create 3 options, however only the first option contains the proper...
  13. LAwebTek

    list options via cookieArray

    I have been working on a project that will create a playlist of MP3,wav,midi, or au files and play them through the bgSound.src attribute. The script grabs the file path and filename of the audio file and saves it as the option value in the playlist and also grabs only the filename and uses it...

Part and Inventory Search

Back
Top