Page 1 of 1

Link from one Iframe to another Iframe

Posted: Thu Jan 29, 2004 10:02 am
by penguinboy
Well I have 3 iframes:

search_clients
search_results
client_info

within index.php.

I have a form in iframe(search_clients) that posts to iframe(search_results).

This works fine.

In iframe(search_results) I display a list of clients with a href to their info in iframe(client_info).

This doesn't work in IE 6,
but it works fine in Opera 7.23.

My href looks like:

[a href="http://www.mysite.com/index.php?page=view_client&id=2" target="client_info"]John Smith[/a]

Flow:
search_clients -> (submits to) -> search_results -> (links to) -> client_info

Any ideas?

Posted: Thu Jan 29, 2004 1:11 pm
by m3rajk
pretend it's a regular frame, name and all

Posted: Thu Jan 29, 2004 1:40 pm
by penguinboy
I am.
Rather than targeting the frame it's targeting a new window.

The weird thing is it works fine from a post, but not from href.

And it works fine in Opera.

Posted: Thu Jan 29, 2004 1:49 pm
by penguinboy
OMG HACK!

Well, I found out the problem.
I was using the id="client_info" attribute.
Apparently IE prefers name="client_info".

I'm really glad I figured that out...