frame issue

Post Reply
iclbloom
Posts: 103
Joined: Mon May 07, 2001 5:51 pm

frame issue

Post by iclbloom »

I am attempting to create a frames interface and I ran across something odd, see the code below. The function spoiler at the bottom seems to cause havoc w/ the program if declared as private, export or public?

Am I doing something fundamentally wrong w/ my frames implementation?

Thanks
Leon Bloom

behavior: if this function is declared as private, export or public the frames seem to loop?

<script language=vortex>

<db = "c:\morph3\texis\testdb">

<a name=main>
<frameset cols="40%,*">
<frame name="left" src="$url/fcontrol.html">
<frame name="right" src="$url/disp.html">
</frameset>
</a>

<a name=fcontrol>
<spoiler>
<sql "select id from patent"></sql>
<form action="$url/disp.html?target=$pick" target="right" method="get">
<select name=pick>
<options $id $selected $id>
</select>
<br><br>
<input type="submit">
</form>
</a>

<a name=disp>
<sql "select pabstract from patent where id = $pick">
id: $id<hr>
$pabstract
</sql>
</a>

<!---
behavior: if this function is declared as private, export or public the frames seem to loop?
--->
<a name= spoiler>
Hi from spoiler
</a>

</script>
User avatar
mark
Site Admin
Posts: 5519
Joined: Tue Apr 25, 2000 6:56 pm

frame issue

Post by mark »

As soon as you use any of those keywords, all undeclared functions become private. So all the non-public entry points you are trying to use get directed to "main" instead. Place "public" on all functions out want to be public.
Post Reply