samluc
08-20-2008, 02:17 PM
hi hope someone can advice
I got a training cd when launched it opens up a index,html and plays a flash embedded menu.
Once its launched i have to scroll to different text fields with buttons and click on a button to open the next page, but when i do it does not open the next menu. and get javascript error box. so i tried to decompile and this is the action i found:
This is the code of the main html:
<script language="JavaScript">
<!--
function launchExam(path) {
hwnd = window.open(path+document.location.search,"examwin");
hwnd.focus();
}
function getValue(whichKey) {
q = new String(location.search);
if (q.length > 1) q = q.substring(1, q.length);
tmp = q.split(whichKey+'=');
if (tmp.length<2) {
keyValue = ''; //key not found
} else {
keyValue = tmp[1];
amp = keyValue.lastIndexOf('&'); //ampersand
if (amp != -1) keyValue = keyValue.substr(0, amp);
}
return keyValue;
}
aicc_sid = getValue('aicc_sid');
aicc_url = getValue('aicc_url');
//-->
</script>
</head>
<frameset rows="*" cols="100%,*,*" framespacing="0" frameborder="NO" border="0">
<frame src="launch.html" name="contentFrame" scrolling="AUTO" noresize>
<frame src="lmsTalk.html" name="hiddenFrame" scrolling="AUTO" noresize>
<frame src="about:blank" name="receiverFrame" scrolling="AUTO" noresize>
</frameset>
<noframes>
<body></body>
</noframes>
</html>
And this is the code of flash button
// Button 111
// On release
on (release)
{
getURL("javascript:launch(7);void(0)","");
}
This is for menu item number 7 and it should open a folder named cod7 and launch the main index in that folder which is sto_0_ny
Any ideas how to fix this
Thanks
I got a training cd when launched it opens up a index,html and plays a flash embedded menu.
Once its launched i have to scroll to different text fields with buttons and click on a button to open the next page, but when i do it does not open the next menu. and get javascript error box. so i tried to decompile and this is the action i found:
This is the code of the main html:
<script language="JavaScript">
<!--
function launchExam(path) {
hwnd = window.open(path+document.location.search,"examwin");
hwnd.focus();
}
function getValue(whichKey) {
q = new String(location.search);
if (q.length > 1) q = q.substring(1, q.length);
tmp = q.split(whichKey+'=');
if (tmp.length<2) {
keyValue = ''; //key not found
} else {
keyValue = tmp[1];
amp = keyValue.lastIndexOf('&'); //ampersand
if (amp != -1) keyValue = keyValue.substr(0, amp);
}
return keyValue;
}
aicc_sid = getValue('aicc_sid');
aicc_url = getValue('aicc_url');
//-->
</script>
</head>
<frameset rows="*" cols="100%,*,*" framespacing="0" frameborder="NO" border="0">
<frame src="launch.html" name="contentFrame" scrolling="AUTO" noresize>
<frame src="lmsTalk.html" name="hiddenFrame" scrolling="AUTO" noresize>
<frame src="about:blank" name="receiverFrame" scrolling="AUTO" noresize>
</frameset>
<noframes>
<body></body>
</noframes>
</html>
And this is the code of flash button
// Button 111
// On release
on (release)
{
getURL("javascript:launch(7);void(0)","");
}
This is for menu item number 7 and it should open a folder named cod7 and launch the main index in that folder which is sto_0_ny
Any ideas how to fix this
Thanks