problem with <object></object>
Posted: Mon May 16, 2011 8:04 am
I'm writing a very easy to use comment box for my friend's site. It should allow my friend to make as many comment boxes as he wants by pasting a little html into the body of his html.
A cool feature: To make a new comment box he just has to change a little text, "commentbox1", to a different name and the cgi file figures everything out on its own.
I have an example running:
[link removed]
It seems that the <object> tag does not always work in Internet Explorer.
Currently I'm trying to make a comment box system that requires very little user-side code.
This is how the comments are displayed. The "?boxname=commentbox1" is how the cgi file knows what dictionary key to reference. This way the same cgi file and database text file can be used for all the comment boxes on a website.
This next part works with out any problem. It's what's used to add a new comment.
A cool feature: To make a new comment box he just has to change a little text, "commentbox1", to a different name and the cgi file figures everything out on its own.
I have an example running:
[link removed]
It seems that the <object> tag does not always work in Internet Explorer.
Currently I'm trying to make a comment box system that requires very little user-side code.
This is how the comments are displayed. The "?boxname=commentbox1" is how the cgi file knows what dictionary key to reference. This way the same cgi file and database text file can be used for all the comment boxes on a website.
Code: Select all
<div style="margin: 0 auto; width:100%; height:200px;"><object type="text/html" data="commentsystem.cgi?boxname=commentbox1" style="width:100%; height:100%; margin:1%;"></object></div>
Code: Select all
<form action="commentsystem.cgi" method="get">
<input type="hidden" value="commentbox1" name="boxname">
<input type="hidden" value="http://websitedomain/pagewherecommenttookplace.html" name="pagename">
Name:<input type="text" name="username" size="10" value="anonymous" maxlength="20"><font size="1">(max chars 20)</font><br/><br />
Post a comment:<br/>
<textarea name="cm" maxlength="200"></textarea><br />
<font size="1">(max chars 200)</font><br />
<input type="submit" value="Submit" />