oops, I made the same mistake, have to tell it to submit the form, too - lol:
<form name='form1'>
<input type="submit" id="FINISH" value="Submit" onClick="javascript:document.form1.FINISH.disabled=true;document.form1.submit();return false;">
</form>
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()
}
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...
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...
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 = "myWindow";
self.myObject = new Object();
</script>
In the <body> of both pages add...
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...
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 "continue" radio button is checked (that part works). Then it needs to check if the media's playState is == 1 (that...
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("TheList");
if (TheList != null) {
var...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.