Connecting Tech Pros Worldwide Help | Site Map

Javascript menu not working around iframe

 
LinkBack Thread Tools Search this Thread
  #1  
Old May 16th, 2007, 02:05 AM
marckatsambis@gmail.com
Guest
 
Posts: n/a
Default Javascript menu not working around iframe

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","l ocation='../../
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 WI RE","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 FENCIN G","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","locatio n='../../
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,


  #2  
Old May 16th, 2007, 02:55 AM
ASM
Guest
 
Posts: n/a
Default Re: Javascript menu not working around iframe

marckatsambis@gmail.com a écrit :
Quote:
>
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


Quote:
function mmLoadMenus() {
it seems to be a function created by DW, no ?


--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
  #3  
Old May 16th, 2007, 03:15 AM
marckatsambis@gmail.com
Guest
 
Posts: n/a
Default Re: Javascript menu not working around iframe

On May 16, 12:53 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Quote:
marckatsam...@gmail.com a écrit :
>
>
>
Quote:
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
>
Quote:
function mmLoadMenus() {
>
it seems to be a function created by DW, no ?
>
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
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

  #4  
Old May 16th, 2007, 03:25 AM
-Lost
Guest
 
Posts: n/a
Default Re: Javascript menu not working around iframe

marckatsambis@gmail.com wrote:
Quote:
On May 16, 12:53 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Quote:
>marckatsam...@gmail.com a écrit :
>>
>>
>>
Quote:
>>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
>>
Quote:
>>function mmLoadMenus() {
>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
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?

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
  #5  
Old May 16th, 2007, 03:45 AM
marckatsambis@gmail.com
Guest
 
Posts: n/a
Default Re: Javascript menu not working around iframe

On May 16, 1:22 pm, -Lost <maventheextrawo...@techie.comwrote:
Quote:
marckatsam...@gmail.com wrote:
Quote:
On May 16, 12:53 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Quote:
marckatsam...@gmail.com a écrit :
>
Quote:
Quote:
>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
>
Quote:
Quote:
>function mmLoadMenus() {
it seems to be a function created by DW, no ?
>
Quote:
Hi Stephane,
>
Quote:
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.
>
Quote:
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.
>
Quote:
Thanks for your input :)
>
Quote:
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?
>
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Will $4 8 15 16 23 42.00 be suffice?

  #6  
Old May 16th, 2007, 04:45 AM
-Lost
Guest
 
Posts: n/a
Default Re: Javascript menu not working around iframe

marckatsambis@gmail.com wrote:
Quote:
On May 16, 1:22 pm, -Lost <maventheextrawo...@techie.comwrote:
Quote:
>marckatsam...@gmail.com wrote:
Quote:
>>On May 16, 12:53 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
>>wrote:
>>>marckatsam...@gmail.com 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 ?
> Hi Stephane,
>>
Quote:
>>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?
>>
>
Will $4 8 15 16 23 42.00 be suffice?
Yes, all of those for a total of $108.00 GBP will do just fine.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
  #7  
Old May 16th, 2007, 09:45 AM
ASM
Guest
 
Posts: n/a
Default Re: Javascript menu not working around iframe

marckatsambis@gmail.com a écrit :
Quote:
On May 16, 12:53 pm, ASM <stephanemoriaux.NoAd...@wanadoo.fr.invalid>
wrote:
Quote:
>marckatsam...@gmail.com a écrit :
>>
<http://www.redstudioweb.com/client/ars/frames/photoframe/pf_hwire.htm>
Quote:
Quote:
>>
Quote:
>>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
>
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;



--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Stephane Moriaux and his (less) old Mac already out of date
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.