ASP writing to FRAME

Results 1 to 2 of 2

Thread: ASP writing to FRAME

  1. #1
    Luis Sanchez Guest

    Default ASP writing to FRAME

    I have a select box in top frame. When option is selected it submits to ASP page. I want it to write the results to middle frame. Using only server side programming no client side. I tried <BR>dim abc,<BR>set abc=window.frames(0).document.<BR>++++++++++++++++ ++++++++++++++++++++++<BR>it doesn&#039t work, i keep getting object required.<BR>Please help<BR>Luis@AutoInteractive.Com<BR>ls

  2. #2
    Join Date
    Dec 1969
    Posts
    35

    Default RE: ASP writing to FRAME

    Here&#039s the code from the five pages that I wrote real quick to solve this problem:<BR>frameset page:<BR>&#060;HTML><BR>&#060;head><BR>&#060;TITLE >frameset&#060;/TITLE><BR>&#060;/HEAD><BR>&#060;frameset framespacing="0" frameborder="no" border=0 rows="20%,*,20%"><BR> &#060;frame name="top" src="top.html" scrolling="no"><BR> &#060;frame name="middle" src="middle.html"><BR> &#060;frame name="bottom" src="bottom.html" scrolling="no"><BR> &#060;noframes><BR> &#060;body><BR> &#060;/body><BR> &#060;/noframes><BR>&#060;/frameset><BR>&#060;/HTML><BR><BR>top frame page:<BR>&#060;HTML><BR>&#060;BODY><BR>&#060;form name="Top" action="middle.asp" method="post" target="middle"><BR>&#060;select name="selection"><BR> &#060;option value="one" selected>one<BR> &#060;option value="two">two<BR> &#060;option value="three">three<BR> &#060;option value="four">four<BR> &#060;option value="five">five<BR>&#060;/select><BR><BR><BR><BR>&#060;input type=submit value="Submit"><BR>&#060;/form><BR>&#060;/BODY><BR>&#060;/HTML><BR><BR>middle frame page (HTML):<BR>&#060;HTML><BR>&#060;BODY><BR>this is a place holder<BR>&#060;/BODY><BR>&#060;/HTML><BR><BR>middle frame page (ASP):<BR>&#060;%@ Language=javascript &#037;&#062;<BR>&#060;%<BR>var selected=Request.Form("selection");<BR>&#037;&#062 ;<BR>&#060;HTML><BR>&#060;BODY><BR>&#060;form name="middle"><BR>hello there.<BR>&#060;%=selected&#037;&#062;<BR>&#060;/form><BR>&#060;/body><BR>&#060;/HTML><BR>(note: I wrote this in Javascript, but the only difference is going to be to change the "var selected" statement to a "dim" statement.)<BR><BR>bottom frame page:<BR>&#060;HTML><BR>&#060;BODY><BR>&#060;form name="bottom"><BR>Yo momma<BR>&#060;/form><BR>&#060;/BODY><BR>&#060;/HTML><BR><BR>There you go, happy programming!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •