bad method - what would be better?

Giganews Newsgroups
Subject: bad method - what would be better?
Posted by:  Geoff (geoff@invalid.invalid)
Date: Sun, 13 Jun 2010


I am told my solution is a bad way of implementing what I want to
happen - can someone say why?

I have AJAX calling a php file which has this line in it

echo "<a href='best_" . $count . "/index.htm'>best " . $count .

The url goes into <div id="1"></div>

I wanted to change this line so that when the link is clicked the
index.htm file contents go into <div id="2"></div> to the right of the
first one.

It occured to me that I could use frames and have the ajax in the left
hand page and then use target = "right hand page" to get the link
contents to go into the right hand page.

This works fine but I guess there must be a better way of doing this