vendredi 1 juillet 2016
html and cgi: response to one frame of a frameset
I want to build a model retrieval system like NTU 3D model retrieval system.
In my index.html:
<frameset cols="25%, 75%">
<frame name="query_frame" src="query.html">
<frame name="resutls.frame" src="introPage.html">
</frameset>
query.html:
<form enctype="multipart/form-data" action="cgi-bin/processQuery.cgi" method="post">
<input id="fileupload" name="myfile" type="file">
<input type="submit" value="Load this file">
</form>
My page then looks like this:
After loading the file, I want to achieve this goal:
1. Remain the frameset structure.
2. Left frame remains unchanged.
3. Right frame show the results.
Just like this.
I do not have much idea how to write my action part: processQuery.cgi. But a simple file:
#!/usr/bin/python
html="""
...
<p>hello</p>
...
"""
print html
makes the response page looks like this:
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire