Gossamer Forum
Home : Products : DBMan : Customization :

Netscape 4.7 errors

Quote Reply
Netscape 4.7 errors
Hi am having major headaches with Netscape.
The following link is our html.pl file it can be seen at www.cnnet.com/html.txt.
I have tryed taking out all of my coding and just putting in the tables no luck. What we are having trouble with is when you click on view you get a short list but when you click on the link for long view is screwed up. In modifiy it works fine. Theres seems to be something wrong in long view and the link to it, Am at wits end any help would be appreciated

By the way it works fine in IE have checked and counted all the table tags and it seems fine.

Jason


[This message has been edited by Balan (edited February 10, 2000).]
Quote Reply
Re: Netscape 4.7 errors In reply to
What is being screwed up? Be more specific. One problem I see is that you do not have the ww=on argument in the query string for the $long_url variable.

Try adding &ww=on to the query string, like the following:

Code:
$long_url = "$db_script_url?$long_url&ww=on&nh=$record_number&mh=1";

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Netscape 4.7 errors In reply to
Tryed that doesn't work.
I mean that when i click on the link from short view to long view the fields don't show up in long view as they do in add view

Jason
Quote Reply
Re: Netscape 4.7 errors In reply to
How should they be showing up? Again, be more specific or provide a live link to your database, so that we can see what you are talking about.

Why do you have all those hidden fields in your long_view sub-routine? I believe that those hidden fields are conflicting with the rest with the codes that you want displayed.

Try deleting the hidden fields.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Netscape 4.7 errors In reply to
I tryed without the hidden fields



[This message has been edited by Balan (edited February 11, 2000).]
Quote Reply
Re: Netscape 4.7 errors In reply to
It is the hidden fields I need them what is your suggestion

Jason
Quote Reply
Re: Netscape 4.7 errors In reply to
No...You do not need the hidden fields is what I am suggesting.

I found your problem...You need to change the following codes:

Code:
<td>|; print &build_select_field ("ProvState","$rec{'ProvState'}"); print qq|</td>

to the following codes:

Code:
<td>$rec{'ProvState'}</td>

in the long view sub-routine.

The build_select_fields should only be used in the sub html_record_form.

Also, the reason that the other fields are not showing up is that you have the hidden fields in the sub html_record_long sub-rotuine. TAKE THEM OUT!

Don't know how much more clear I can make this point.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Netscape 4.7 errors In reply to
Ok that works thanks. Is there a way to to hide those fields so that if a user does not have admin privleges and we give him view access we don't want them to see the hidden fields

Again Thanks
Quote Reply
Re: Netscape 4.7 errors In reply to
Hiding the fields should take place in the sub html_record_form routine NOT in the sub html_record.

Point of clarification: The sub html_record_form routine is for adding, modifying, and deleting records. The sub html_record is for printing data via the sub html_view_sucess and also sub html_modify_form (but the actually modifying uses the sub html_record_form.)

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. :)
----------------------








Quote Reply
Re: Netscape 4.7 errors In reply to
Also you should use if and else conditional statements, like the following:

Code:
if ($per_admin) {
print qq|<tr><td align="right"><em>Player Rating</em></td>
<td><input name="Rating" size="12" maxlength="12" value="$rec{'Rating'}"></td>
|;
}
else {
print qq|<tr><td align="right"><em>Player Rating</em></td>
<td><input type="hidden" name="Rating" value="$rec{'Rating'}">$rec{'Rating'}</td>
|;
}

BTW: The problem you were experiencing was not a browser problem, but a coding problem.

Wink

Regards,
------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
* Be sure to visit the Resource Center for FAQ's, Modifications and Extra Goodies!!
* Search Forums!
* Say NO to Duplicate Threads. Smile
----------------------










[This message has been edited by Eliot (edited February 11, 2000).]