Javascript menu not working around iframe

M

marckatsambis

Hi,

Apologies in advance if this seems long winded and confusing...

I'm trying to make a javascript drop down menu work around multiple
iframes.

The initial page (http://www.redstudioweb.com/client/ars/frames/
photoframe/pf_hwire.htm) is calling 2 iframes. The first is called
'sourceframe' which loads information regarding the sub-menu
selection. The second is called 'galleryframe' which loads a bunch of
thumbnails.

The user can click on a thumbnail which replaces the initial
information page with a larger image into the 'sourceframe'. All of
this works fine, however, if I want to access another page within the
drop down menu after viewing a thumbnails larger image, I get no
response. It is as if the javascript menu has expired/disabled.

I'm fairly convinced it has to be javascript related. What it is I
need to do however, I have no idea.

Below is the portion of the script I'm using that (I think) is not
working:

}

function mmLoadMenus() {
if (window.mm_menu_0222114819_0) return;
window.mm_menu_0222114819_0 = new Menu("root",115,18,"Verdana,
Arial, Helvetica, sans-serif",
10,"#666666","#ffffff","#ffffff","#95de43","center","middle",
0,0,100,-5,7,true,true,true,0,false,false);
mm_menu_0222114819_0.addMenuItem("CAPABILITIES","location='../../
capabilities.htm'");
mm_menu_0222114819_0.hideOnMouseOut=true;
mm_menu_0222114819_0.menuBorder=1;
mm_menu_0222114819_0.menuLiteBgColor='#ffffff';
mm_menu_0222114819_0.menuBorderBgColor='#d8d8d8';
mm_menu_0222114819_0.bgColor='#ffffff';
window.mm_menu_0222115702_1 = new Menu("root",101,18,"Verdana,
Arial, Helvetica, sans-serif",
10,"#666666","#ffffff","#ffffff","#005aab","center","middle",
0,0,100,-5,7,true,true,true,0,false,false);

mm_menu_0222115702_1.addMenuItem("HORIZONTAL WIRE","location='pf_hwire.htm'");

mm_menu_0222115702_1.addMenuItem("VERTICAL WIRE","location='pf_vwire.htm'");
mm_menu_0222115702_1.addMenuItem("GLASS","location='pf_glass.htm'");
mm_menu_0222115702_1.addMenuItem("TUBE","location='pf_tube.htm'");
mm_menu_0222115702_1.addMenuItem("WALL/
HAND RAILS","location='pf_wallhand.htm'");

mm_menu_0222115702_1.addMenuItem("POOL FENCING","location='pf_pool.htm'");
mm_menu_0222115702_1.hideOnMouseOut=true;
mm_menu_0222115702_1.menuBorder=1;
mm_menu_0222115702_1.menuLiteBgColor='#ffffff';
mm_menu_0222115702_1.menuBorderBgColor='#d8d8d8';
mm_menu_0222115702_1.bgColor='#ffffff';
window.mm_menu_0222120744_3 = new Menu("root",61,18,"Verdana, Arial,
Helvetica, sans-serif",
10,"#666666","#ffffff","#ffffff","#ffcb08","center","middle",
0,0,100,-5,7,true,true,true,0,false,false);
mm_menu_0222120744_3.addMenuItem("QUOTES","location='../../
quotes.htm'");
mm_menu_0222120744_3.hideOnMouseOut=true;
mm_menu_0222120744_3.menuBorder=1;
mm_menu_0222120744_3.menuLiteBgColor='#ffffff';
mm_menu_0222120744_3.menuBorderBgColor='#d8d8d8';
mm_menu_0222120744_3.bgColor='#ffffff';

mm_menu_0222120744_3.writeMenus();
} // mmLoadMenus()

//-->
</script>

Please note any regular html links within the initial page will
respond correctly. It is only the "location='page.htm" links within
the script that seem to be effected.

Any ideas?

Cheers,
 
A

ASM

(e-mail address removed) a écrit :
if I want to access another page within the
drop down menu after viewing a thumbnails larger image, I get no
response. It is as if the javascript menu has expired/disabled.

All is OK with my FF


function mmLoadMenus() {

it seems to be a function created by DW, no ?
 
M

marckatsambis

(e-mail address removed) a écrit :




All is OK with my FF


it seems to be a function created by DW, no ?

Hi Stephane,

I totally neglected testing the site with FF, as my default browser is
Safari. However since trying FF, it seems to work fine for me aswell.
I will have to try it in IE once I get to a PC.

But I would assume if it works in Firefox, it should work in IE...
meaning there is nothing severely wrong with my code and it is more or
less a safari issue/bug.

Thanks for your input :)

Cheers
 
L

-Lost

Hi Stephane,

I totally neglected testing the site with FF, as my default browser is
Safari. However since trying FF, it seems to work fine for me aswell.
I will have to try it in IE once I get to a PC.

But I would assume if it works in Firefox, it should work in IE...
meaning there is nothing severely wrong with my code and it is more or
less a safari issue/bug.

Thanks for your input :)

Cheers

It works just fine in Internet Explorer 6 in Windows. Didn't look at
your JavaScript at all though. All I can say is it works.

So, how much do we make off of your client for doing site testing and
JavaScript work for you?
 
M

marckatsambis

It works just fine in Internet Explorer 6 in Windows. Didn't look at
your JavaScript at all though. All I can say is it works.

So, how much do we make off of your client for doing site testing and
JavaScript work for you?

Will $4 8 15 16 23 42.00 be suffice?
 
A

ASM

(e-mail address removed) a écrit :
Hi Stephane,

I totally neglected testing the site with FF, as my default browser is
Safari.

Mine is Firefox, Safari(1.3) is too much buggued.

You're true Safari has some problem with your code.
He losts the links in sub-menu

I think you'll have to do something as :

if (window.mm_menu_0222114819_0 && itIsNotSafafari) return;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top