Search box widget - replaces surrounding content

Topics: Controls
Mar 11, 2009 at 8:41 PM
Hi, we have BlogEngine successfully installed and embedded within a frame on our site (which is normally just open to our registered clients) and most everything works great, including the other widgets. However, the results of the Search box actually cause Blogengine to take over the whole window, replacing our surrounding interface. How can I make it not do this?


Coordinator
Mar 11, 2009 at 9:05 PM
You're using HTML frames?  In the blog.js file in the root of your blog, you should find a line of code in the Search function like this:

top.location.href = root + search;

If you've given the BlogEngine frame a name (e.g. BlogEngineFrame), then you can change that line above to:

parent.BlogEngineFrame.location.href = root + search;

Or you can use the frame index (starting from 0 I believe)

parent.frames[1].location.href = root + search;

(the BlogEngine frame index might be 0, 1, 2, etc)
Mar 12, 2009 at 7:43 AM
Thank you so much. That worked. Great product.