Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:29

Mason/src=some.js help


Poster: markatemple
Dated: Tuesday May 11 2004 - 15:56:39 BST

I'm struggling with a mason/javascript problem implementing the Milonic menu.
Here is my Mason component:
---------------------------------------------
<%perl>
my $menu = Objects::Menu->new(
clntid => '0',
clntskin_id => '0',
ssnid => '12345'
);
my __at__ content = $menu->gen_menu(
tree_entry_point_horizontal => '340'
);
</%perl>
<h2><% $headline %></h2>
<% __at__ content %>
<hr>
<%init>
~ my $headline = "Test Menu:";
</%init>
----------------------------------------------
It fills __at__ content with the menu, but it won't display on the the screen if
called through Mason. If I save the page source, and store it in
.../htdocs/menu.htm, the menu displays fine. There are 2 src=<something>.js
calls in the javascript sections that aren't working correctly (I think). Those
files are everywhere they could possibly be seen (since it works in
.../htdocs/menu.htm, they are available). I think two things could be happening:

1) Mason may be escaping the contents of the <something>.js files as it is
passed to the browser (I have tried <% __at__ content |n %> to turn off escaping, but
that doesn't work either).

2) Call through Mason somehow hides the location of the <something>.js libraries
even though they are readily available everywhere they should be.

I have found nothing on the Milonic list concerning Mason, and I can't find
anything on Mason about src=<something>.js type calls in javascript.

Any help would be greatly appreciated.


Poster: kevin3442
Dated: Wednesday May 19 2004 - 17:50:59 BST

Hi Mark,

Unfortunately, none of the forum moderators, including myself, are familiar with Mason. So I don't think we can offer much in the way of help. I was hoping one of the other forum denizens might know something about Mason, but it looks like no replies so far. Maybe bumping the thread to the top with this reply will get a few more readers... maybe some who know Mason.

Kevin


Poster: markatemple
Dated: Wednesday May 19 2004 - 20:22:51 BST

the problem I had was the old src=m...js should be src=/m...js.
Thanks for your response.