Thread: Frame Location?
View Single Post
Old Sep 23rd, 2004, 10:43 AM   #9
Berto
Programming Guru
 
Join Date: Aug 2004
Posts: 1,022
Rep Power: 6 Berto is on a distinguished road
Send a message via AIM to Berto Send a message via MSN to Berto
if i am correct in thinking you want to load a page that says searching then that page redirects to a final page?

well with javascript you can use,

 *

 <script language=\"JavaScript\">
<!--hide

function newwindow(type)
{
	if (type == \"pic\" && document.addnew.picture.value != 0){
 *window.open('Preview?typ=pic&img=' + document.addnew.picture.value,'jav','width=600,height=600,resizable=yes');
	}else if(type == \"dia\" && document.addnew.diagram.value != 0){
 *window.open('Preview?typ=dia&img=' + document.addnew.diagram.value,'jav','width=600,height=600,resizable=yes');
	}else if(type == \"vid\" && document.addnew.video.value != 0){
 *window.open('Preview?typ=vid&img=' + document.addnew.video.value,'jav','width=600,height=600,resizable=yes');
}
}
//-->
</SCRIPT>
------------------------------------------------------------------------

<a href=\"javascript:newwindow('pic')\">Preview</a><--- to call the javascript
name your iframe you want load it in the all is good, just takes the value from teh txt box

or use a dynamic redirect in PHP, just check the request string from teh url and if it is say for instace

you find action=search then use the php redirect?

http://www.mozilla.org/docs/dom/domr...dow_ref76.html <--- window.open documentation.


this is about the 20th edit of this post but...

can i see the code you are trying to impliment?
__________________
"Put your hand on a hot stove for a minute, and it seems like an hour. Sit with a pretty girl for an hour, and it seems like a minute. THAT'S relativity."

- Albert Einstein
Berto is offline   Reply With Quote