M
mwschenckCRL
Questions are:
I have a web page that displays a flash file that zooms and pans, but
the next page button doesnt work.
1. Can the next page work and load the next or previous numbered file?
2. Does it have to have all pages in one file, then it calls the next
frame?
I have files in a zip file I can send, or look below for a snippet.
Thank you
=========
<form name="f" onsubmit="return false;">
<button onclick="zoom()">Zoom In</button>
<button onclick="zoom2()">Zoom Out</button>
<button onclick="pan()">Pan</button>
<button onclick="setzoomrect()">Rect</button>
<button onclick="next_page()">Next Page</button>
</form>
<script language="JavaScript1.2">
function zoom() {
var flash = window.movie || document.movie; // Get Flash object.
flash.Zoom(50);
}
if (isNaN(hdnPage) == true) {
iPage = 1;
} else {
iPage = parseInt(hdnPage) - 1;
}
if (iPage < FIRST_PAGE - 2) {iPage = FIRST_PAGE - 2;}
if (iPage > LAST_PAGE + 2) {iPage = LAST_PAGE + 2;}
current_page = iPage;
load_page();
/*
document.MainForm.hdnAction.value = "prevPage";
document.MainForm.submit();
*/
}
function next_page() {
var hdnPage = current_page;
var iPage;
if (isNaN(hdnPage) == true) {
iPage = 1;
} else {
iPage = parseInt(hdnPage) + 1;
}
if (iPage < FIRST_PAGE - 2) {iPage = FIRST_PAGE - 2;}
if (iPage > LAST_PAGE + 2) {iPage = LAST_PAGE + 2;}
current_page = iPage;
load_page();
/*
document.MainForm.hdnAction.value = "nextPage";
document.MainForm.action = "/apps/catalogpager/pager.asp";
document.MainForm.submit();
*/
}
</script>
I have a web page that displays a flash file that zooms and pans, but
the next page button doesnt work.
1. Can the next page work and load the next or previous numbered file?
2. Does it have to have all pages in one file, then it calls the next
frame?
I have files in a zip file I can send, or look below for a snippet.
Thank you
=========
<form name="f" onsubmit="return false;">
<button onclick="zoom()">Zoom In</button>
<button onclick="zoom2()">Zoom Out</button>
<button onclick="pan()">Pan</button>
<button onclick="setzoomrect()">Rect</button>
<button onclick="next_page()">Next Page</button>
</form>
<script language="JavaScript1.2">
function zoom() {
var flash = window.movie || document.movie; // Get Flash object.
flash.Zoom(50);
}
if (isNaN(hdnPage) == true) {
iPage = 1;
} else {
iPage = parseInt(hdnPage) - 1;
}
if (iPage < FIRST_PAGE - 2) {iPage = FIRST_PAGE - 2;}
if (iPage > LAST_PAGE + 2) {iPage = LAST_PAGE + 2;}
current_page = iPage;
load_page();
/*
document.MainForm.hdnAction.value = "prevPage";
document.MainForm.submit();
*/
}
function next_page() {
var hdnPage = current_page;
var iPage;
if (isNaN(hdnPage) == true) {
iPage = 1;
} else {
iPage = parseInt(hdnPage) + 1;
}
if (iPage < FIRST_PAGE - 2) {iPage = FIRST_PAGE - 2;}
if (iPage > LAST_PAGE + 2) {iPage = LAST_PAGE + 2;}
current_page = iPage;
load_page();
/*
document.MainForm.hdnAction.value = "nextPage";
document.MainForm.action = "/apps/catalogpager/pager.asp";
document.MainForm.submit();
*/
}
</script>