Lookup Issue
Archived from the Xataface Users forum.
tonyvenneri — Mon Jan 16, 2012 10:56 am
Hi there,
I deployed my Xataface application to am hosting service.
I figure out some issue related to lookup function.
Because is difficult for me to explain the issue, I create an example on my website
[url]venneri.eu/test/[/url]
Try to add a new record to Course TAB and use the lookup function
Production ENV:
Xataface version 1.3rc6
Apache 2.2.21
MySQL 5.1.56
PHP 5.3.8
Any idea?
P.S. In my develop environment the lookup function works perfectly.
shannah — Mon Jan 16, 2012 11:39 am
In your index.php file, your df_init() uses an absolute URL as your 2nd parameter. I suspect you have something like:
- Code: Select all
df_init(__FILE__, 'http://www.venneri.eu/xataface');
However if you go to venneri.eu this is a different domain so ajax requests to any of Xataface’s scripts won’t work.
E.g. Your app works fine if accessed from www.venneri.eu/test
Solution:
Change your xataface url in the 2nd parameter of df_init to just be a relative path.
e.g.
- Code: Select all
df_init(__FILE__, '/path/to/xataface');
-Steve
tonyvenneri — Mon Jan 16, 2012 1:53 pm
Excellent.
By using the relative path I solved the problem
Thank you