Announcement
Collapse
No announcement yet.
trying to get search box to work with iframe (asp classic)
Collapse
X
-
Considering that the patch worked, the problem was due to a conflict in the scripts (which the changes in the patch avoided). We will include the changes in our next release (V6.0 build 1016).
-
Originally posted by Ray View PostDid you modify "search.asp" in any way at all prior to the change in your previous post? This is important as even the most minor change might have an impact.
Am I correct to assume that "searchzoomresult.asp" now has an #include call to "search.asp" and not "Includes/search.asp" as from the source code pasted in the post above?
While I agree that it does seem like a conflict might have occurred, it's odd that the entire line was omitted.
Can you contact us via email so we can send you a debug/patch script to work with?
And yes, searchzoomresult.asp calls just search.asp in the same folder. We could not get the search to work when we moved all the files to the 'includes' folder (and then called it there), it gave me an error saying it could not find some of its database files...even though I did move them as well. I don't understand why
Just wanted to thank you as the patch you sent me works perfectly. I think we are almost ready to get out of the testing stage...as soon as I get my css changes to work across IE and firefox.
Leave a comment:
-
Did you modify "search.asp" in any way at all prior to the change in your previous post? This is important as even the most minor change might have an impact.
Am I correct to assume that "searchzoomresult.asp" now has an #include call to "search.asp" and not "Includes/search.asp" as from the source code pasted in the post above?
While I agree that it does seem like a conflict might have occurred, it's odd that the entire line was omitted.
Can you contact us via email so we can send you a debug/patch script to work with?
Leave a comment:
-
I've been trying a few things.
On line 2640-2642 of search.asp
Code:OutResBuf = OutResBuf & "<div class=""result_image"">" OutResBuf = OutResBuf & "<a href=""" & urlLink & """" & target & "><img src="""&image&""" alt="""" class=""result_image"" /></a>" OutResBuf = OutResBuf & "</div>"
Code:<div class="result_block"><div class="result_image"></div><div class="result_title"><a href
Code:OutResBuf = OutResBuf & "<a href=""" & urlLink & """" & target & ">Click Here</a>"
I am wondering if maybe the &image& part is interfering with some script already on my page and subsequently dumping it
Just some notes to add to the confusion
Thanks for the help so farLast edited by InteriorHobbies; Jun-16-2009, 08:22 PM.
Leave a comment:
-
here is a link to see just what I am talking about
Testsite2 displays the script but dumps the images....the source I posted above is correct for my searchzoomresult.asp page except I have it all back inside the root folder for now
http://www.interiorhobbies.com/tests...oom_query=blue
note..
the following url calls the actual search.asp page by itself...just for reference
http://www.interiorhobbies.com/tests...oom_query=blueLast edited by InteriorHobbies; Jun-16-2009, 05:16 PM.
Leave a comment:
-
my site has a root folder /testsite
and inside the folder are all my main pages as well as: /testsite/images, testsite/Includes
My page is pretty basic....all the included files are in the includes folder
Code:<!--#include file = "includes/EOglobals.asp"--> <html> <head> <Title><%=sWebSiteName%> - Search Results</title> <!-- ****** Style sheet included ****** --> <!-- #include file = "style.css" --> <script language="JavaScript" src="https://seal.networksolutions.com/siteseal/javascript/siteseal.js" type="text/javascript"></script> </head> <table border=3 bordercolor=black align=center cellspacing=0 class="border"> <td> <table border=8 bordercolor="#EF3013" cellspacing=5 cellpadding=0 style="border-collapse: collapse" bgcolor="#69B4E9"> <td> <BODY class="sitenav8td" leftMargin=0 topMargin=0 MARGINWIDTH = 0 MARGINHEIGHT = 0> <TABLE border=0 cellPadding=0 cellSpacing=0 width=738> <TR> <TD> <!--#include file = includes/banner.asp--> <!--#include file = includes/nav.asp--> </TD> </TR> </TABLE> <!--#include file = includes/cart.asp--> <TABLE border=0 cellPadding=0 cellSpacing=0 > <TR> <TD vAlign=top align=right></form><!--#include file = includes/leftnav.asp--> <!-- login ends here--> <table width="180"> <tr><td width="100%"> </td></tr> </table> </TD></TR> <TR><TD></TD></TR></TABLE> </TD><TD vAlign=top> <TABLE border=0 cellPadding=0 cellSpacing=0 align=left width="540"><TR><TD class="sitenav3td"><IMG border=0 src="images/bot.gif" ></TD> </TR> <!--Contents table starts here--> <TR> <TD width=100%> <!--#include file = Includes/search.asp--> </TD></TR></table> <!-- Contents table ends here --></TD></TR></TABLE> <!-- Contents table ends here --> <TR> <TD><br> <TABLE border=0 cellPadding=0 cellSpacing=0 width=738> <TR> <TD align=middle colSpan=3><hr color=#EF3013></TD></TR></TABLE> <!--#include file = includes/footer.asp--></TD></TR></table></P></FONT></BODY></td></table></td></table> </HTML>
at first I had it (search.asp) in the root folder....along with all the other files the software generates...and I called it from there. My page and the entire search works except for the images the search is supposed to display.
After your suggestion I moved search.asp into the testsite/includes folder (and alternately all the other files it calls) and now my page gives me this error:
Zoom files missing error: Zoom is missing one or more of the required index data files.
Please make sure the generated index files are uploaded to the same path as this search script.Last edited by InteriorHobbies; Jun-16-2009, 08:20 PM.
Leave a comment:
-
Originally posted by InteriorHobbies View Postalternately if I just choose a spot anywhere on my entire working page and embed the search script it works fine except it dumps the images....will not display them
Are you adding the ASP header and footer to the search page as described in this FAQ?
Q. How can I add server-side scripting (eg. PHP, ASP) to the search template?
Leave a comment:
-
ok I have abandoned the i-frame option and started trying some others.
The reason I was trying to get the search results to display inside an iframe was because if I embed the search script inside my .asp page it dumps the images, I thought I could effectively isolate the search script from my page with an i-frame.
I am assuming that the search script doesn't agree with some of my asp code and I can't figure out what it is.
For example. I can take one of my existing pages, which includes a number of files to make up the headers and various bars and banners, strip it right down to remove all of the 'includes' files and then include my search.asp script and the search results will display just fine,
alternately if I just choose a spot anywhere on my entire working page and embed the search script it works fine except it dumps the images....will not display them
Leave a comment:
-
Originally posted by InteriorHobbies View PostWhat I would like it to do is open up a different page called search5.asp (in the same window) and then load the 'search.asp' page into the iframe named "searchframe".
When I try this code:
Code:<form method="get" action="search.asp" target="search5.asp">
Please check HTML references and tutorials, your use and understanding of the "target" attribute is wrong. It should be the name of a frame, NOT the name of a file.
There is no single HTML feature to do the combined operation of what you are trying to do (based on your description - that is, having a form which passes the parameters to a new page "search5.asp" which in turn has two or more frames, and needs to pass the parameters again to "search.asp" in a frame named "searchframe"). I wonder if you really need this, as I can hardly imagine a scenario where is really necessary (it just sounds like bad design to me). To really achieve something like this, your "search5.asp" page needs some scripting to pass the parameters along. This might be over your head if you do not have a fair understanding of frames, HTTP GET, and ASP scripting.
Leave a comment:
-
I can successfully place just the search script (from inside the search.asp file) inside a table on my 'search5.asp' page then reference 'search5.asp' in the target function and it works.
The problem with this is something somewhere on my page is messing with the output format and it will not display properly no matter what I try (font sizes different, link colors...no images...etc)
I figured the work-around would be to place the search script in an i-frame on my page so it is not affected by any other design elements. But it may be a lost cause. As for now the only way I can get the search script to display properly is by completely stripping down the page that the script is on but that completely removes the functionality of my page
I have tried placing it in a div as well but it still seemed to ignore its own coding...mainly displaying images
Leave a comment:
-
Do you really want to use frames? Support is being dropped in XHTML.
But aren't your action and target URLs back to front? Shouldn't the action be to the containing page, which then links to the iframe which does the search?
Leave a comment:
-
trying to get search box to work with iframe (asp classic)
This may sound ridiculous but I will try to describe it as best I can. I have my search box on a page......search.asp
Code:<form method="get" action="search.asp"> <input type="text" name="zoom_query" size="20" /> <input type="hidden" name="zoom_per_page" value="25"> <input type="submit" value="Search" />
What I would like it to do is open up a different page called search5.asp (in the same window) and then load the 'search.asp' page into the iframe named "searchframe".
When I try this code:
Code:<form method="get" action="search.asp" target="search5.asp">
Also when I switch the action with the target it opens 'search5.asp' with the query.
It seems that no matter what I put into the target function it just opens whatever is in 'action' in a new windowTags: None
Leave a comment: