Mason/src=some.js help

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
markatemple
Beginner
Beginner
Posts: 2
Joined: Tue May 11, 2004 3:51 pm
Contact:

Mason/src=some.js help

Post by markatemple »

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 @content = $menu->gen_menu(
tree_entry_point_horizontal => '340'
);
</%perl>
<h2><% $headline %></h2>
<% @content %>
<hr>
<%init>
~ my $headline = "Test Menu:";
</%init>
----------------------------------------------
It fills @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 <% @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.
Mark_Temple_cerebrum_exerce_(practice_thinking)_gpg_key:keyserver.kjsl.com
User avatar
kevin3442
Milonic God
Milonic God
Posts: 2460
Joined: Sat Sep 07, 2002 12:09 am
Location: Lincoln, NE
Contact:

Post by kevin3442 »

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
markatemple
Beginner
Beginner
Posts: 2
Joined: Tue May 11, 2004 3:51 pm
Contact:

Post by markatemple »

the problem I had was the old src=m...js should be src=/m...js.
Thanks for your response.
Mark_Temple_cerebrum_exerce_(practice_thinking)_gpg_key:keyserver.kjsl.com
Post Reply