Solved

target a hidden Frame set

Posted on 2004-09-24
14
380 Views
Last Modified: 2010-04-09
I want a frame in my fame set that is set to 0 width so nobody can see it.  The reason is I have code that needs to post somewhere and I dont' want it seen or have it popping up a window.  Is it possible the way I have the frameset setup

Here is my frameset

<frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
  <frame src="/Filebrowser/topframe.php" name="topFrame" scrolling="NO" noresize >

  <frameset rows="*" cols="161,*" framespacing="0" frameborder="NO" border="0">
    <frame src="/xwin/menuframe.php" name="leftFrame" scrolling="NO" noresize>
    <frame src="/xwin/xwin.php" name="mainFrame">
                  //here is the section I want to be invisible
        <frameset rows="0" cols="0,0" framespacing="0" frameborder="NO" border="0">
            <frame src="/xwin/blank.php" name ="hiddenFrame"></frameset>
                    </frameset>

</frameset>

here is my code to post to that hidden frame  the problem is instead of posting to the target i tell it it always opens up a new window  even if I use Target="_self"   what would be causing this to happen?

<form name="files" Action="filedownloader.php" method ="POST" target="hiddenFrame">

Kelly
0
Comment
Question by:unreal400
  • 6
  • 3
  • 2
  • +1
14 Comments
 
LVL 4

Expert Comment

by:aratani
ID: 12153904
I have used hidden frames, and I think the error is cause you have not defined the framesets properly.

<frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
  <frame src="/Filebrowser/topframe.php" name="topFrame" scrolling="NO" noresize >

  <frameset rows="*" cols="161,*" framespacing="0" frameborder="NO" border="0">

      <frame src="/xwin/menuframe.php" name="leftFrame" scrolling="NO" noresize>

       <frameset rows="*, 0" framespacing="0" frameborder="NO" border="0">

          <frame src="/xwin/xwin.php" name="mainFrame">
          <frame src="/xwin/blank.php" name ="hiddenFrame">

       </frameset>

   </frameset>

</frameset>

See if that works.

AJ
0
 
LVL 49

Expert Comment

by:Roonaan
ID: 12154158
I never knew you could have a cols and a rows attribute simultaniously on a frameset, but it probably can as you'd tried things out i suppose.

I would indeed use the frameset as aratani suggested, but change some things:

<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
  <frame src="/Filebrowser/topframe.php" name="topFrame" scrolling="NO" noresize >
  <frameset cols="161,*,0" framespacing="0" frameborder="NO" border="0">
    <frame src="/xwin/menuframe.php" name="leftFrame" scrolling="NO" noresize>
    <frame src="/xwin/xwin.php" name="mainFrame">
    <frame src="/xwin/blank.php" name ="hiddenFrame"></frameset>
  </frameset>
</frameset>

regards -r-
0
 
LVL 4

Expert Comment

by:aratani
ID: 12155336
I think you can have rows and cols simulatenously .. I don't know how that can affect things.

AJ
0
 
LVL 49

Expert Comment

by:Roonaan
ID: 12155401
Because a frameset is suppose to devide some array into cols OR rows, it would be quiet strange to have both cols and rows properties. Say you have

<frameset rows="50,50" cols="50,50">
 <frame name="A" />
 <frame name="B" />
 <frame name="C" />
 <frame name="D" />
</frameset>

Should this be rendered as
AB
CD

or as styling below, because the rows attrib has been used first.

AC
BD


I made a mistake in my example frameset in the last post. I added one /frameset to much. The example should have been:
      
Comment from aratani
Date: 09/26/2004 10:18AM CEST
      Comment       

I have used hidden frames, and I think the error is cause you have not defined the framesets properly.

<frameset rows="80,*" cols="*" frameborder="NO" border="0" framespacing="0">
  <frame src="/Filebrowser/topframe.php" name="topFrame" scrolling="NO" noresize >

  <frameset rows="*" cols="161,*" framespacing="0" frameborder="NO" border="0">

      <frame src="/xwin/menuframe.php" name="leftFrame" scrolling="NO" noresize>

       <frameset rows="*, 0" framespacing="0" frameborder="NO" border="0">

          <frame src="/xwin/xwin.php" name="mainFrame">
          <frame src="/xwin/blank.php" name ="hiddenFrame">

       </frameset>

   </frameset>

</frameset>

See if that works.

AJ

Comment from Roonaan
Date: 09/26/2004 12:21PM CEST
      Your Comment       

I never knew you could have a cols and a rows attribute simultaniously on a frameset, but it probably can as you'd tried things out i suppose.

I would indeed use the frameset as aratani suggested, but change some things:

<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
  <frame src="/Filebrowser/topframe.php" name="topFrame" scrolling="NO" noresize >
  <frameset cols="161,*,0" framespacing="0" frameborder="NO" border="0">
    <frame src="/xwin/menuframe.php" name="leftFrame" scrolling="NO" noresize>
    <frame src="/xwin/xwin.php" name="mainFrame">
    <frame src="/xwin/blank.php" name ="hiddenFrame">
  </frameset>
</frameset>

Regards

-r-
0
 
LVL 4

Expert Comment

by:aratani
ID: 12156604
Yeah, I see how the way you said would affect it, but if you put rows = "*" and then divide cols, then it should be okay or vice-versa.
0
 
LVL 2

Author Comment

by:unreal400
ID: 12375250
None of those really solved my problem   thanks for the try.  I have switched a few calling functions and redid the page to prevent from having to use this method.
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 4

Expert Comment

by:aratani
ID: 12377541
Well, we did reply back to his comments and tried to give our suggestions. He never gave us any feedback on how it was going? So, I do think me and Roonan deserve points.

AJ
0
 
LVL 4

Expert Comment

by:aratani
ID: 12377877
okay thank you. yes, its not the points that matter since its only 20, but for the amount of feedback we provided we should get some points. :)

aj
0
 
LVL 2

Author Comment

by:unreal400
ID: 12382777
I would award the points to them but I also didn't want to accept the answers cause it didn't actualy solve the problem. I figured it would be misleading.  I have no objection to giving them the points but I didn't want to accept an answer that didn't solve my problem.
0
 
LVL 4

Expert Comment

by:aratani
ID: 12383533
my only point is that you didn't give us any feedback after we gave you suggestions, so we couldn't solve your pbolem without you tellign us what the problem is or giving us feedback.

aj
0
 
LVL 2

Author Comment

by:unreal400
ID: 12385114
ya at the time I was doing this stuff I was insanely busy and under a bunch of deadlines so once I figured it out I jumped to my next issue and completely forgot about this.  So that was my fault  on not getting feedback to you guys.  I did try some of the solutions while i was going through it but they weren't doing what I wanted I cam up with a better way around it.
Thats the problem with having 5 different  software packages on the go  some stuff just gets lost in the mess of it all.   So I do apologize for that.
0
 

Accepted Solution

by:
RomMod earned 0 total points
ID: 12411719
The question has been PAQ'd and the 0 points have been refunded.
RomMod
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now