Gossamer Forum
Home : Products : DBMan : Customization :

Heir menus

Quote Reply
Heir menus
Hi,
i am modifying a site and added dynamic pop out heir menus. But i can't get the script to run with this jave script in the code.

Has anyone else gotten heir menus to work with dbman.

Thanks

sean

Quote Reply
Re: Heir menus In reply to
A link to DBMan or some code of the Perl/JavaScript in question would be helpful.

The most common problem with adding any JavaScript to DBMan is people tend to overlook pipes that JavaScript uses as "or" statements.

For example, the following JavaScript will break a print qq|:
print qq|
<script language="javascript">
if (variable || variable2) { alert('hi'); }
</script>
|;


What you need to do, is either escape any pipes:
if (variable \|\| variable2) { alert('hi'); }

Or, use a different character for the print qq. I tend to use the tilda character.

eg: print qq~ etc... ~;

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Heir menus In reply to
Here is a link to the non working script

This is the error message that I get

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: Unterminated <> operator at ./html3.pl line 122.

http://209.235.232.232/cgi-bin/resume/resume.cgi?db=limited2&uid=&view_records=1&ID=*

Here is a link to a working copy without the menus
http://209.235.232.232/cgi-bin/resume/resume.cgi?db=limited&uid=&view_records=1&ID=*

Here is the java script coding that dbman does not like

http://209.235.232.232/java_script.txt

You will have to view source code in your browser because it will show a blank page.

Any help would be greatly appreciated.

Thanks

Sean

Quote Reply
Re: Heir menus In reply to
Fixed it, thanks astroboy

replace

print qq|
with

print qq~
and at the bottom of the subroutine:

just before the closing }

replace

|;
with

~;

Hope this helps someone else.

Sean

Quote Reply
Re: Heir menus In reply to
This was actually discussed about 10 threads down from here and you would have found it with a quick search....

http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=DBCust&Number=136212&page=0&view=collapsed&sb=5

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: Heir menus In reply to
Paul:

If you can not add constuctive help to the forum message, please refrain from leaving any comments at all!

People do not need to hear that they should have searched the forums. If you are not posting to help, please refrain from making comments which just add to the long list of threads to be searched through.

Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/
Quote Reply
Re: Heir menus In reply to
Actually Lois, it was a contructive comment that would have prevented an redundant thread from being started Wink

Maybe you should post your "grievances" to me in private.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/