Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Javascript / Client Side Development

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","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.h tm'");
  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,

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 ?

--
Stephane Moriaux et son (moins) vieux Mac dj dpass
Stephane Moriaux and his (less) old Mac already out of date

On May 16, 12:53 pm, ASM <stephanemoriaux.NoAd@wanadoo.fr.invalid>
wrote:

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.

On May 16, 1:22 pm, -Lost <maventheextrawo@techie.com> wrote:

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.

marckatsam@gmail.com a crit :
> On May 16, 12:53 pm, ASM <stephanemoriaux.NoAd@wanadoo.fr.invalid>
> wrote:
>> marckatsam@gmail.com a crit :

<http://www.redstudioweb.com/client/ars/frames/photoframe/pf_hwire.htm>

>>> 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 dj dpass
Stephane Moriaux and his (less) old Mac already out of date

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc