Using I frame to contain the additional Comments section

Casey Gregoire caseyg at chsamerica.com
Fri May 2 17:42:01 UTC 2003


My boss wanted to see a scrollable frame that contained the additional
comments section of the edit bug screen. What I did was use a template for
the show_bug.cgi that only showed the comments section and put that as the
src value for the Iframe that I replaced the comments section in the
edit.html.tmpl. Of course that this does is every time you view a bug it
queries the database twice as much for the exact same data. I was looking
for a simple change that did not involve changing the cgi scripts for
Bugzilla. (All of my changes are in the templates) 

Can anyone tell me if there was a better way to go about doing this that
would query the database only once? (I don't want to have to change the
actual source code of Bugzilla if I can avoid it.) I included the templates
so you can see exactly what I did.

 <<show-onlycom.html.tmpl>>  <<edit.html.tmpl>> Thank you,
	Casey Gregoire
	Programmer
	CHS of America
	100 1st Ave S. Suite 601
	St. Petersburg, FL 33701
	Phone - (727) 824-0800 ext 1236

Every great achievement was once impossible. -- Anonymous
I'd like to get started on time, if we can, inasmuch as we're late already.
-- Larry Gelbart
Nothing is accomplished without passion. -- My Fortune Cookie

-------------- next part --------------
A non-text attachment was scrubbed...
Name: show-onlycom.html.tmpl
Type: application/octet-stream
Size: 1772 bytes
Desc: not available
URL: <http://lists.bugzilla.org/pipermail/developers/attachments/20030502/c5aea8c7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: edit.html.tmpl
Type: application/octet-stream
Size: 19077 bytes
Desc: not available
URL: <http://lists.bugzilla.org/pipermail/developers/attachments/20030502/c5aea8c7/attachment-0001.obj>


More information about the developers mailing list