Gossamer Forum
Home : Products : DBMan : Customization :

Trouble with sub html_page_bottom routine

Quote Reply
Trouble with sub html_page_bottom routine
Hello,

I would greatly appreciate some assistance in determining as to why the friendly_html file fails when I attempt to insert code (a table) within the sub html_page_bottom routine in JPDeni's html_friendly file.

Regardless of how I insert this table, which is actually one large table with three other tables nested within it fails on me. Giving me that nasty 'DBMan has found an eternal error, please activate the debug function'.

I have searched through the archive here at GT as well as the Unofficial DBMan site, but I have found nothing that has helped me in righting whatever I have done wrong. Crazy

You can see the login page by pointing your browser to:

http://viewpointdesign.net/cgi-bin/plans/db.cgi

It renders correctly, except that it needs to show the footer information (Text links, Company Info, Credits).

I have also included a .txt file of the html.pl file at:

http://viewpointdesign.net/...s/proofs/html_pl.txt

Thank you.



Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Change

dreamhome@viewpointdesign.net

to

dreamhome\@viewpointdesign.net

That's the only syntax error I found.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi Carol!

If I could I would give you a big hug! Your suggestion to fix the email format was exactly what was wrong! Once I changed it, the footer info now renders!

Thanks again!



Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Laugh I gladly accept virtual hugs!! Wink

It was really just a matter of pasting your file into my text editor, saving it and compiling it. I got a message that told me what was wrong. (I keep a special file on my hard drive just for this purpose. Smile)

I was glad it was something so simple. Some syntax errors are harder to find.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Good Morning Carol,

On the subject of editors and compiling...what text editor do you use? The special file that you use, is this one in the same? Or different?

A tool such as this would certainly keep my head and the wall from meeting so frequently. Laugh







Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
I use EditPlus, a shareware editor which is available at http://www.editplus.com. (I see it's gone up in price. It's now $30, instead of the $20 that I paid. I wonder if there's any spiffy new features.)

I also installed the ActivePerl from http://www.activestate.com/...ctivePerl/index.html. (This is a free download.)

Once both are installed, you can set up EditPlus to compile the current file. I have it set up so it's just one keystroke to compile and another one to run a Perl script. (You can't run a CGI script. Those need to be executed from a browser. But you can create little test scripts to check on whether an idea will work. I write those all the time.)

No doubt there are other text editors that allow compiling of the script from within the editor, but EditPlus is the one I know. If you install these two programs and need some help in setting up the compiler, just holler. It's really pretty easy to do, but not necessarily obvious from the documentation.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi Carol,

I have EditPlus. I couldn't tell you if there are any new tools within the product as I have only been using it for a short time.

I will go and get ActivePerl. Once I have it, I will take you up on your offer for help in setting up the compiler.

Thanks! Smile



Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi Carol,

I have a question as to what version I should download. The server I am working on right now has Perl version 5.00502 installed.

The most recent version of Active Perl is based on Perl 5.6

There is also an option to download an older version which is based on Perl 5.005.

Would I be best with the older version, or does it matter?

Thanks!







Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Cool. Smile

I should probably add this to my "DBMan-ual" site. It'll help me to give you the information first, though, to be sure I'm explaining it properly. (Dontcha just love these "win-win" situations?! Smile)

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi again,

You wrote:

>(Dontcha just love these "win-win" situations?! Smile)

Sure do!! And I surely appreciate your wealth of knowledge and generousity in sharing!!!





Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Sorry. I missed your earlier question.

I don't think it will make much difference which version of Perl you download. As long as it's at least 5.003, which is what's required for DBMan, you should be fine. You probably won't be taking advantage of any new features that may have been added to Perl, so I don't think it matters.

(I just upgraded EditPlus, which is why I was away for a while. Now I know we're on the same page. Smile)

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi Carol,

I just downloaded ActivePerl 522, based on Perl 5.005. I then started to install it. But I came across something I was not too certain of.

What is map.plx to Perlls.dll?

Are there any issues in installing active perl that I should be on the look out for?

When you get a moment, I would appreciate it if we could cover how I can set EditPlus to compile.

Smile Thanks!



Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
In Reply To:
What is map.plx to Perlls.dll?
I'm not sure. When I installed it, I just accepted all of the defaults. Smile

Assuming you did, too, your files should be in the same place as mine are.

In EditPlus, go to the Tools/Configure User Tools... menu item. I'm pretty new at this "groups" thing (that wasn't in the earlier version), but I think things should be about the same.

Click Add Tool and then select Program from the menu that pops up.

In the fields that appear, enter

Menu text: Perl (Compile)
Command: C:\Perl\bin\perl.exe -c
Argument: "$(FileDir)/$(FileName)"
Initial directory:
$(FileDir)

Click the "Apply" button.

If you want to set it up to run the current file, follow the same steps above, but change the entries in the fields to

Menu text: Perl (Run)
Command: C:\Perl\bin\perl.exe
Argument: "$(FileDir)/$(FileName)"
Initial directory:
$(FileDir)

Again, click the "Apply" button.

If you want to be able to compile or run the script by just using a keystroke, you can set that up, too. I always have the "NumLock" on my keypad and use Ctrl-1 to compile and Ctrl-2 to run. (Both of these are on the numeric keypad.) You can use any key you want.

Keep the same window open and click "Keyboard" in the tree on the left side of the screen. In the "Types" window, click on Tools and then in the "Commands" window, click on ToolUser1. Click in the Press new shortcut window and, on your keyboard hit the key you want to use. You'll probably want it to either be a function key or some combination of Ctrl or Alt, with or without the Shift key. It will tell you if the key is already assigned to some other command. If it is, you can either come up with a different one for Perl commands or go to the other command and remove the keystroke from that command.

If you set up a command to run programs, do the same thing for ToolUser2.

Once you get it set up, load in one of the DBMan scripts and try it out. You should get a DOS window that lists the location of the file and then "syntax ok." Those are two of the most beautiful words in the whole language!! Smile To see what happens when the syntax is not okay, make an intentional mistake in the file. An easy one is to remove a # from the beginning of a comment line. Then try to compile it and see what happens.

Be aware that the line number it gives you of where an error is may not be the actual line where the error is. It is either on that line or somewhere above that line.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi Carol,

I am going to follow your directions and set up EditPlus right now. I aborted the install of Active Perl until I heard back from you.

I am in the middle of a large project and I did not want to hose my machine by installing this program with out first asking! Laugh As I get older I am getting a hair wiser!

Thanks so much!



Best Regards,

Kim Lanners

Software Made Easy
http://sme-net.com
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi Carol,

Like Kim, I've opted to install ActivePerl per your suggestion. Problem I'm having with being able to use the local installation of Perl is that Perl is on one drive and the EditPlus data files are on another drive of my system. Using the settings you've provided for the shortcut keys, my system is trying to locate perl on the same drive as the data file.

The error message I'm receiving is, "Can't open D:\Program no such file or directory" The data files are in D:\Prgram Files\....

I'm guessing it is the [space] in the folder name "Program Files" causing the problem however, I do not know how to correct the path coding on the shortcuts. Would you by any chance know what changes need to be made?

Thanks!

Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
I really don't know, Karen. I'm out of my element on this one. Smile Maybe you can find a Windows guru that would be able to help.

Either that or you could move EditPlus to its own directory that didn't have a space in the name.

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Instead of specifying D:\Program Files\..., try D:\progra~1\...

That should do it...

- Mark

Astro-Boy!!
http://www.zip.com.au/~astroboy/
Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
Hi Mark, thanks for the suggestion. I've used a combination of your suggestion and JPD's suggestion on the macro settings and have figured out a way to use Perl in spite of my odd settings :-)

I've changed the Arguement to $(FileName) and in Initial directory, hardcoded the local path to FileName. Works very well since I would be working on a specific set of files at any given time and will only need to modify the folder name when using a different set of files. Example:
Initial directory: D:\Program Files\path\to\script\files

A big thank you to everyone on this thread. JPD - although I've seen the suggestion of installing perl before, it was your confidence and encouragement on this thread which prompted me to actually install perl. Thanks so much!


Quote Reply
Re: Trouble with sub html_page_bottom routine In reply to
I'm glad I had a small part in helping to spur you on. Smile

Mostly, I'm really pleased that you came up with your own workable solution. That's the best of all possible worlds!!!

JPD
http://www.jpdeni.com/dbman/