How to implement Searchblox search results within iFrame?

You can implement search within an iFrame by customizing the xsl template by adding target="_top" to the search result link output:

<a href="{url}" target="_top">
    <xsl:apply-templates select="title" />
 Then modify javascript in the client.js file as below for featured results:

renderTextAd: function(ad, adElement, url) {
var titleContainer = document.createElement("div");

var titleElement = document.createElement("a");
titleElement.className = "title";
titleElement.href = url; = "_top";
titleElement.innerHTML = ad.title;

var descrElement = document.createElement("div");
descrElement.className = "description";
descrElement.innerHTML = ad.description;



To learn more about SearchBlox please visit our developer document site

Have more questions? Submit a request