Hi all. I hope someone can help me with 2 questions...
1) In the Active4D demo, in the Sessions page, there is a Search button, the name of which is defined as f_Search. Clicking this button causes the Search page to load. The code in the search page checks for f_Search_X. The form variables (on loadijng the Sewarch page) actually contain f_Search_x and f_Search_y, with different values assigned to them. I have checked all manuals I can lay my hands on without finding any reference to this behaviour. Where are these coming from, and what happened to f_Search?
Keith,
I don't have the demo on this machine but I'm going to guess that the search button isn't an actual submit button but a link image that looks like a button. The _x, _y suffixes are automatically appended when the form is submitted. Actually, I _think_ they are submitted as .x and .y, but Active4D converts the periods to underscores. If you examine the values of f_Search_x and f_Search_y you will see the mouse click (or object) coordinates. The intent of this is to figure where a user clicked.
In the demo's case the form variable exists since the button was clicked.
I notice the parent page has 2 Action (search) lines, one at the top, and one near the bottom. I assume this is something to do with the search page's redirect...?
Most likely, but without seeing the code I can't say for sure.
I would like to understand the placement of the Action tags, and the f_Search variables renaming behaviour. Any takers? Even a pointer to the appropriate documentation will be appreciated.
I did a few web searches but didn't find anything useful on the _x _y stuff.
------------------
2) Using the A4D Session demo (MacOSX 10.2.5/4D 2003.1), I created a simple "can I do it too?" structure - works fine. I think the RowSet stuff is really great (I will *definitely* be using that!).
Transferring all html and A4D stuff across to an existing (much larger) db, I cannot get the Search page to work. Doing a Form Variables dump shows absolutely no form variables present.
Using Interarchy 6.2'S Net Traffic utility, I can see the form variables being transferred. Tracing the On Web Connection method (directly after clicking the Search button and seeing the Traffic utility's result) , I see that the Get Web Form Variables command doesn't find any.
This sounds like the case where you don't have /4Dcgi/ in your links.
4D's prefs are the same as the test db (in which the form variables work). Is there a 4D setting somewhere that I have overlooked? Heeelllppppp! I have wasted 2 days messing with this - any and all hints will be welcome!
hth,
Brad
