Gossamer Forum
Home : Products : DBMan : Customization :

Frame Solution

Quote Reply
Frame Solution
Hi,

can someone help me. I habe a frame on the left side of my webpage with menu(Add, View, Modify, etc) On the right side of the page I have a script db.cgi. I want to make a link from the left frame of the page to right. If I write "http://www.myservername.de/cgi-local/dbman/db.cgi?db=$db_setup&uid=$db_uid&add_form=1 target=db[/url]" I get always this error "DBMan encountered an internal error. Please enable debugging to view." What schall I do to make a correct Link to the right frame "db" . I want to keep thus authentication mode.



thanks in advance



meta
Quote Reply
Re: [steepler] Frame Solution In reply to
Try this, notice the extra quotes.


"http://www.myservername.de/cgi-local/dbman/db.cgi?db=$db_setup&uid=$db_uid&add_form=1" target="db"
Quote Reply
Re: [joematt] Frame Solution In reply to
Hi,



it doesn't work. You wrote me the same what I wrote in question. Have you perhaps some more ideas?



thanks in advance
Quote Reply
Re: [steepler] Frame Solution In reply to
Read joematt's instruction more carefully. He has changed your code very slightly.
-------------
David Olley
Anglo & Foreign International Limited,
http://www.firehelmets.co.uk

There are 10 types of people in the world: those who understand binary, and those who don't.
Quote Reply
Re: [davidolley] Frame Solution In reply to
Hi,

ich have read it good. I have done it so how he said. But it doesn't work.
Quote Reply
Re: [steepler] Frame Solution In reply to
Let's start over.

First, does the code produce a valid link if you just load it in the same frame?

Second, what does the link look like when the error is returned? (what is in the address bar of the browser?)

Third, the default dbman will automatically put in the db=xxx and userid=xxx after a sucessful login, it does this based on $db_script_link_url

such as <A HREF="$db_script_link_url&add_form=1">Add</A>

so maybe try <A HREF="$db_script_link_url&add_form=1" target="db">Add</A>
Quote Reply
Re: [joematt] Frame Solution In reply to
If you place your hyperlink code in the left frame, you do not need to specify the target frame if you set the frames page default target for the left frame to whatever the name of the target frame is.

eg:

<frameset cols="119,*">
<frame name="contents" target="main" src="nav.htm"> ## This is where the target frame is specified. ##
<frame name="main" src="main.htm" scrolling="auto">
</frameset>


The dbman database will then be launched in that frame.
-------------
David Olley
Anglo & Foreign International Limited,
http://www.firehelmets.co.uk

There are 10 types of people in the world: those who understand binary, and those who don't.
Quote Reply
Re: [joematt] Frame Solution In reply to
it also doesn't work.



you can see it at http://www.fr-lawfirm.de/dbman


name: test

pass: test

Last edited by:

steepler: Jul 3, 2003, 7:20 AM
Quote Reply
Re: [davidolley] Frame Solution In reply to
Hi...This is no the problem with tha names of the frames.

The problem is that I cannot link left frame with the right frame. For example: I want to add a new item. I press on left side of the page Link with link :a href="http://www.servername.de/...b_uid&add_form=1" target="db" and get an error on the right side of the page "DBMan encountered an internal error. Please enable debugging to view." What shall I do to repair this error?
Quote Reply
Re: [steepler] Frame Solution In reply to
In Reply To:
Use the following hyperlink: <a href="http://www.servername.de/...b_uid&add_form=1"> and leave out the target="db" I have just used that code in a frames page I am writing, and it works - provided you set the default target frame in the frames page code (as I set out in my previous posting). Obviously your target frame is called "db" so name that as the default target in your menu frame.
-------------
David Olley
Anglo & Foreign International Limited,
http://www.firehelmets.co.uk

There are 10 types of people in the world: those who understand binary, and those who don't.
Quote Reply
Re: [steepler] Frame Solution In reply to
Now I see the problem.

How to explain?

If you want the left frame to be valid links, then it must be generated by dbman following the login.

You may need to read up in the FAQ about frames.

The simplest way would be to present the logon link in the left frame to begin with, then the output (links for add etc.) would automatically go there following logon. Then the links for adding can include target="db".

Alternately you can use javascript to force output into a specific window, but that requires all users to enable javascript.

Otherwise, the way I understand it, you would need to put frame codes into the html_print_headers and then the SCR= for each frame are calls to dbman (one of which is a logon).


Here is an example of part of an html file that makes several calls to dbman, you need to get dbman to generate something like this after logon.