When executed, each of the JavaScript functions does the same thing:
It sets the current URL to a value specified in a hidden form variable. You set the form variables in the
next step.
Although there are four variations??”one for each type of recordset navigation??”the basic function looks
like the following:
function moveNext() {
document.location.href=document.theForm.nextHidden.value
}
The function name??”here, moveNext()??”is arbitrary, but note that it matches the function name specified
in the Flash button setup. The reference to the hidden form variable is also specific to this code??”again, you
can name the variables whatever you like; just ensure that the names match the code in the function.
This code uses the following four functions:
function moveNext() {
document.location.href=document.theForm.nextHidden.value
}
function movePrev() {
document.location.href=document.theForm.prevHidden.value
}
function moveFirst() {
document.location.href=document.theForm.firstHidden.value
}
function moveLast() {
document.location.href=document.theForm.lastHidden.value
}
If you??™re totally unfamiliar with writing JavaScript, you can use Dreamweaver??™s Script object to insert the
code. However, make sure that the code goes in the section of the document.
Pages:
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240