Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 19th, 2000, 09:48 AM
SkiFiend SkiFiend is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 SkiFiend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Up until recently my world consisted of green screens and green screen emulators, so bear with me if this is ridiculously straight forward.

I need to send server-generated pages to specific frames in the client's browser. I'm familiar with _target="framex"_ but can't see how to return content to a different or multiple frames.

An rtfm with references would be appreciated :{>

Cheers
Ski Fiend

Reply With Quote
  #2  
Old June 19th, 2000, 09:48 PM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>I need to send server-generated pages to specific
>>frames in the client's browser.

For GET method, simply use the simple html way (set it in frame page) and specify the target.

For POST method or GET method (with form), simply add target="frame_name" within the <form> tag.

i.e.
<form method="POST" action="/cgi-bin/script.pl" target="frame_name">

>>An rtfm with references would be appreciated :{>
This question has been asked a few times here but I forgot which exact forum.

Reply With Quote
  #3  
Old June 20th, 2000, 02:50 AM
SkiFiend SkiFiend is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Posts: 2 SkiFiend User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the speedy response, though what I'm really after is a way to target frames from the server side. So, in spite of a request with target="framex", I want to update framex and framey, or more generically, what I'm after server side is

if var=c1 then
build and load frame1
elseif var=c2
build and load frames 2 and 3
elseif var=c3
build and load frames 1 and 3
endif

Reply With Quote
  #4  
Old June 20th, 2000, 06:07 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>what I'm after server side is

1) create write the content to abc.html or preferably a random name (i.e. asadffbc.html)
and store it somewhere on the server
2) create write the content of the next frame to new file -> def.html
3) print the frameset page to screen containing the two newly created files within the frame sources.

print "Content-type: text/htmlnn";
print "<html>n";
print "<frameset frameborder="0" border="no" framespacing="0" rows="88%,*">n";
print "<frame name="main" src="abc.html" target="main">n";
print "<frame name="bottom" src="def.html" scrolling="no">n";
print "</frameset>n";
print "</html>n";

As I said, to avoid duplicate file name or the overwritten of old files, you should create random file names in place of abc.html and def.html



Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Directing output to specific frames

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap