Click to See Complete Forum and Search --> : form issue
irishmike2004
12-08-2004, 09:45 PM
Greetings:
I have a page which has nested frames. There are 3 frames in the index.php page a top, left and right. In the right frame of this page is another frameset with a left and right.
I have a link with the following code:
<FORM METHOD="link" ACTION="http://'.$servip.':'.$scport.'/listen.pls">
<INPUT TYPE="submit" VALUE="LISTEN"></FORM>
when you click the resulting button, in the frame where this link resides (this is inside the left frame inside index's right frame), returns "invalid resource". If this code is loaded into a browser the link works fine of course. I suspect that I am dealing with a target issue, but have no idea what to target. We want the link to go to the web, not another frame ;-) Any help would be very appreciated.
Thanks,
PeOfEo
12-08-2004, 09:48 PM
You have php available to you but you are using frames? You would be much better off using an include then a frame.
To have a link open in the main window and break out of the frames use target="_parent" to have it open in a new window use target="_blank"
what exactly are you trying to do btw? I am guessing a list of shoutcast webradio stations or something?
irishmike2004
12-08-2004, 09:53 PM
I tried using target="_parent" earlier gives same result. Not sure how I would benefit from an include... the page in question is live at radioteal.no-ip.com and I am using Firefox... but tried this on my wife's windows box using IE and no difference.
I am not sure whether to loose the second frameset and use an iframe would be better... but suggestions are welcome... after looking at the page, you will see why we did this setup if you click on stats on the available stream window.
this was the only *I* knew to accomplish this.
Thanks again,
PeOfEo
12-08-2004, 09:56 PM
Well why exactly are you using frames? What are you accomplishing with them?
irishmike2004
12-08-2004, 10:02 PM
The reason we chose to use frames was because we have a multipart webpage... the resulting PHP script to combine them would be HUGE! The top frame has some links and regular stuff and the left frame on the index shows the current weather using another script which was bear (took me over 3 days starting at 9 or 10 am and then coding to anywhere between 3-4 am with only breaks to sleep and eat)... figured out parsing XML by golly though ;-)
then the right frame holds our available server streams and then we used to put them in a table in the same area, but decided to make the stats on a different page and put the stream names as you may see them. This page is very complex and I am not good with THIS in coding so I am not sure how I could make the PHP function into includes on my stuff. but the stats "appear" in the right frame of the nested set. They start out blank... I want that appearance.
hence, Frames were the only way *I* know how to make this work.
Suggestions are welcome as I said :-)
PeOfEo
12-09-2004, 07:02 PM
Why cant you just put all of the scripts onto one page then? Can you use a class in php (I use asp.net, I do not know any php)? If you cant do either of those then I guess I would say try an Iframe... I would use an Iframe over a regular frame even though I dislike all frames.