Lookup Issue

A place for users and developers of the Xataface to discuss and receive support.

Lookup Issue

Postby 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.
tonyvenneri
 
Posts: 10
Joined: Sun Jan 15, 2012 4:13 pm

Re: Lookup Issue

Postby 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
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Lookup Issue

Postby tonyvenneri » Mon Jan 16, 2012 1:53 pm

Excellent.
By using the relative path I solved the problem

Thank you
tonyvenneri
 
Posts: 10
Joined: Sun Jan 15, 2012 4:13 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 22 guests

Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved