Gossamer Forum
Home : Products : DBMan : Customization :

Load sub routine in popup

Quote Reply
Load sub routine in popup
I have created a sub rountine called "member_message" and using javascript I am trying to get it to appear in a new window via clicking on a link using the following example:

$long_url = "javascript:newWindow('$db_script_link_url&member_message=1','','scrollbars=yes,toolbar=no,location=no,status=yes,menubar=no,width=480,height=500')";

The window is created - however the sub routine is not loaded in the new window - the "Unknown Action" sub is loaded int the window.

Anyone have any ideas how I can get the member_message sub to show up in the new window?

---------------
Donm


Quote Reply
Re: Load sub routine in popup In reply to
In db.cgi, towards the top there is a big if/elsif construct. You will need to add a handler for "member_message".

eg: elsif ($in{'member_message'}) { if ($per_view) { &member_message; } else { &html_unauth; } }

You will need to replace &member_message; with the name of the sub-routine you wish to run (unless of course it is &member_message; Smile)

Regards,

- Mark


Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Load sub routine in popup In reply to
Astro - thanks works great ! :-)

----------------
donm