Link from one Iframe to another Iframe

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Link from one Iframe to another Iframe

Post 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?
m3rajk
DevNet Resident
Posts: 1191
Joined: Mon Jun 02, 2003 3:37 pm

Post by m3rajk »

pretend it's a regular frame, name and all
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post 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.
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post 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...
Post Reply