PDA

View Full Version : <url> open in same window


Kineas
11-01-2009, 09:08 PM
I have an ajax search box, that links with this xml document:

<?xml version="1.0"?>
<pages>
<link>
<title>Fender</title>
<url>search.php?search=fender</url>
</link>
<link>
<title>Gibson</title>
<url>search.php?search=gibson</url>
</link>
<link>
<title>Epiphone</title>
<url>search.php?search=epiphone</url>
</link>
<link>
<title>PRS</title>
<url>search.php?search=Paul Reed Smith</url>
</link>
<link>
<title>Paul Reed Smith</title>
<url>search.php?search=Paul Reed Smith</url>
</link>
<link>
<title>Ibanez</title>
<url>search.php?search=ibanez</url>
</link>
<link>
<title>Squire</title>
<url>search.php?search=squire</url>
</link>
<link>
<title>Gretsch</title>
<url>search.php?search=gretsch</url>
</link>
</pages>

However, whenever I click on one of the links, it opens a new window. How do I make it open in the same window?

Arbitrator
11-02-2009, 06:07 AM
However, whenever I click on one of the links, it opens a new window. How do I make it open in the same window?I don't know how anyone can answer this given that your code doesn't include that of the links you're speaking of.

Alex Vincent
11-03-2009, 03:06 AM
Arbitrator makes a good point. How are you reading this XML document? What code is generating the actual hyperlinks?