Jump to content

Submitting Multiple records w/ CDML and javascript


This topic is 7576 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

HI,

Sometime ago I found a script in this forum (see below) that systematically submits all the forms found on the page. However, I've found that this script doesn't always work (i.e., doesn't always submit all the records on that page), if the user is on a mac, and sometimes it just stops submitting records.

These problems do not occur on a PC.

Does anyone have an updated version of this javascript code? I've copied it exactly as I have it in my CDML code. And the CDML code is correct, becuase it works on the PC.

<script>

var count=0;

// function editMe(){

// var size=1+[FMP-RangeSize];

// f[3].submit();

// countdown(count);

//}

//

//function countdown(t){

// static var count=0;

// var f=document.forms;

// f[3].submit();

// count++;

// if (count<size){

// Id = window.setTimeout("countdown();",3000);

// }

// }

// var s=0

// countdown(size);

// }

function countdown(t) {

if (count < (t+1)) {

document.forms[count].submit();

count++;

}

setTimeout("countdown("+t+");",1000);

}

</script>

this is a tough one.

thanks

Link to comment
Share on other sites

This topic is 7576 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.