|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
frames question
I have four documents:
When parent loads, "left" appears in the left frame, "right" appears in the right frame. Clicking on the "submit" button in the left frame calls "action asp", but "action asp" is loading in the left frame, not the right frame. I can easily do what I want to do using anchor tags in the left frame, but that would require me to create a bunch of different asp's to do what I could do with just one. By testing the value of what gets passed when the submit button is clicked, I want to dynamically create what shows up in the right frame. Instead of having a bunch of asp's, I want to write several functions in the ONE asp that will display what needs to be displayed. I've already tried setting the target attribute in both the form as well as the parent page, and neither way is doing what I need to have done. I know it's something stupid that I'm overlooking, but I just can't remember what I need to do. |
|
#2
|
|||
|
|||
|
alright.. here's what you need to do... copy all the code in the body section.. alright still with me? Now create a new table with 4 sections, one top, 2 middle, and one bottom, now past the body into the right middle one, and bam, you redid the page in tables without frames hastle =)
on a more serious (well, half serious i should say) google for GET/POST with frames asp or something. Plenty O tutorials, I've seen this question asked a couple times on this forum, but good luck digging through trying to find it. |
|
#3
|
|||
|
|||
|
What really has me twisted in knots is that I've done this thing before, and on a much more complicated UI (more tables spread out on 3 frames) than the one I'm currently writing.
I've already googled, and found what I thought were some good tutorials, but they didn't work. ![]() |
|
#4
|
|||
|
|||
|
I don't know what to tell you besides work with tables....
|
|
#5
|
|||
|
|||
|
I finally figured it out.
Use the "target" attribute on the form in the left frame and set it to the name of the right frame as defined in the parent where you defined the frameset. Quick example: PARENT.HTM <html> <head> <title> [i]Some Title </title> </head> <frameset cols = "20%,*" frameborder = "NO" framespacing = "0"> <frame src = "left.htm" name = "left"> <frame src = "right.htm" name = "right"> </frameset> </html> *************end parent*********** left.htm <form name = "admin" method = "post" action = "some.asp" target = "right"> <input....> <input....> <input type = "submit"> </form> ****************end left.htm right.htm (once the form on left.htm is submitted, this page will be replaced by ASP named in the "action" attribute of the form on left.htm) <h1>Blah Blah Blah</h1> ***************end right.htm some.asp <% request.form blah blah blah %> |
|
#6
|
|||
|
|||
|
good job
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > frames question |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|