Jump to content

This topic is 7454 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

hello

am newbie at FM. trying to make an integrated search page, with a search from a value list and the results on one page (so the format file is the same as the searchpage). The site is in a frameset that is hosted on one server, the page with the value list&search is on a different server and gets loaded into the frame'main by an url(http://mydomain.com/directory/FMPro?-db=database.fp5&-format=searchconcerts.htm&-lay=invoer&-view" target="main )When I click the submit button on the searchpage to perform the search I get a error message saying that the format file is not found???

have a look here to see what I mean, on the menu click "concerts":

http://www.channelclassics.com/indexTEST.htm

any help would be appreciated!

thanks willemijn

Posted

Hi, willemijn! I did not have time to be very thorough 'cuz there's a lot of code, but I didn't see anything wrong (but I'm not much of an HTML coder). I did notice that the page you are having problems with does have both

<INPUT TYPE="hidden" NAME="-find" VALUE="search">

<input name="-Find" type="submit" class="kleinzwart" value="search">

but I don't know enough to know if that's a problem or not. I know I've had false "file not found" errors that turned out to be fieldname related, though. I would suggest you make a barebones version of the page and see if you get the same problem and then go from there. Or maybe someone else will see something I did not.

--ST

Posted

hello steve

thanks for your reply! Yes there is a lot of code there, also because my CSS did not show through linking to an external style sheet, so i ended up putting al the sylesheet code in the html/cdml page which I did not like to do but was the only way I could get it to show ... anyway, i will take your suggestion and test it. will keep you posted.

greetings

willemijn

Posted

hi steve,

I noticed that after clicking 'search' on the concertlist searchpage gives the Javascript error message but clicking it right after for a 2nd time gives the desired result: the concertlisting for that particular artist....

steve, does that give you a clue?

I was testing the page on my local server and it works outside the frameset.... maybe the path is wrong? can you put a direct url in -format? like:

<INPUT TYPE="hidden" NAME="-format" VALUE="http://www.domain.com/searchConcerts.htm">

Posted

Ooo, JavaScript is not my forte but I've had problems that worked better by deleting some JavaScript, but that's probaby because of my lacking JS skills and not a FM/JS problem. As for -format, I'm fairly certain the page has to be in the Web folder (I think 6 also has cdml_format_folder or something, too, though)... I'm glad you're closer to figuring it out, though.

--ST

Posted

hi gary,

yes 'search' and 'catalogue' work fine, but it is 'concerts' that is not working and I am even using the same technique, that's why I do not understand it.

Browsing in Firefox and in IE still give the Javascript error message that format file cannot be found (and it is definitely there since it is the same page because it is an integrated search)...

In the topmenu the button 'concerts'refers to database nr2, 'search' and 'catalogue'& 'Channel shop' refer to database 1, might that be the problem? Should I have 'concerts' refer to database 1 instead(which has the same value list as database 2 to populate the drop down) and then perform the search/find via an InlineAction maybe?

Any ideas?

any help appreciated...

Posted

Try changing this:

<FORM ACTION="http://fmp2.channelclassics.net/channelclassics/FMPro" METHOD="post">

to this:

<FORM ACTION="FMPro" METHOD="post">

Sometimes I've even had to have the Action similar to this:

<FORM ACTION="/FMPro" METHOD="post">

or this:

<FORM ACTION="FMPro/" METHOD="post">

or this:

<FORM ACTION="/FMPro" METHOD="post">

<INPUT TYPE="hidden" NAME="-format" VALUE="/channelclassics/searchConcerts.htm">

or this:

<FORM ACTION="/FMPro" METHOD="post">

<INPUT TYPE="hidden" NAME="-format" VALUE="channelclassics/searchConcerts.htm">

Usually to busy to workout why! However, most of the time one combination will work.

Good Luck.

Garry

Posted

hello garry,

thanks for your reply. tried your suggestion but does not help...: I suspect now having tried so many versions that it has something to do with the -view bit. I get to the searchpage through this url:

http://fmp2.channelclassics.net/channelc...nvoer&-view

then in the page is the form with a search button that refers to a different database and that works fine the 1st time you hit 'search' but the 2nd search it does not. I suspect now because there is no -view anywhere for the 2nd database as you search for the 2nd time, and I think that is why the format file(=same page) is not found...what do you think? but when i put in another hidden input name=-view in the form the search will not work the 1st time you hit submit... I hope you understand what I mean.. have any suggestions on how to this? i have tried to work with tokens but cannot get it right. tried inline action but maybe my code was wrong. well I hope I can find a solution soon, my deadline for this site is coming near fast...

greetings

willemijn

Posted

I've had the same problems on another site frown.gif

Try this:

http://fmp2.channelclassics.net/FMPro?-db=ccr.fp5&-format=/channelclassics/searchConcerts.htm&-lay=invoer&-view


With this:


<FORM ACTION="http://fmp2.channelclassics.net/FMPro" METHOD="post">

...

<INPUT TYPE="hidden" NAME="-format" VALUE="/channelclassics/searchConcerts.htm">

It will make a difference to the relative path that FM/WebCompanion "sees".

Good Luck.

Garry

This topic is 7454 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.