scheduler on Home page / index page

Hello, first, i’d like to say, that i really love scheduler for how it’s easy to use und nicely designed.

Yesterday i met a problem when i wanted it to display on the index page of my website. The scheduler just stays blank and doesn’t load any data. It works well when i set it as menu item, but nor on the first front page. It seems as if needs to be loaded by clicking the link to it’s page, or as if can’t load because it doesn’t know which date or something.

Is this a known problem, or does it have to do with my site? My website is www.metadbk.tk .
I don’t have it as index page but under “startseite” right now(where it works right now), because the site is already in use. But i could set it as index page if this would help for you to look at it…

thanks already,
thomas.

Check global settings of your site, which domain it has in configuration

www.metadbk.tk
or
metadbk.tk

if you have medadbk.tk in configuration, but visit your site as www.metadbk.tk - it can cause the problem.

which configuration do you mean? the configuration.php?
i tried to set public $live_site to metadbk.tk, but without success.
i also tried to install scheduler on the index page of another joomla-installation and it worked, so i know now, that this must be a specific problem with my site.

or did you mean the configuration at my provider? at dot.tk i’m using the a-record dns-service to link the adress to my hoster. for metadbk.tk and metadbk.tk as well. at joomla should i use url-rewrite? i don’t know if it could have anything to do with that…

thanks, thomas.


Hi,
Stanislav means cross-domain problem.
Does any javascript error occur when you use scheduler at main page? Could you provide it?

hello,
i attached you screenshots from opera dragonfly and firefox web developer. i hope this helps.

right now i’m looking for how to set up a crossdomain.xml file. do you think this could fix it?




update: ok, i tried creating a crossdomain.xml. either i did it wrong or it didn’t help.

Hi,
please, open file components/com_scheduler/codebase/dhtmlxSchedulerConfigurator.php and try to modify it like here:

	protected function replaceHostInURL($url) {
		return $url;
		$url_parsed = parse_url($url);
		$host = $_SERVER['SERVER_NAME'];
		$url = preg_replace("/".preg_quote($url_parsed['host'])."/", $host, $url, 1);
		return $url;
	}

Still doesn’t work?

thanks, but this doesn’t seem to change anything.
any other things i could try?

Hi,
could you provide screenshot with JavaScript errors one more time? Provided screenshots have a lot of another information (css warnings etc), I can’t find which error is generated.

hey there! sorry, i didn’t answer anymore, but i didn’t have much time to go on with programming in the last months.
i couldn’t figure out, how to get you more information, so i created a testsite now, where you can have a look for yourself.
test.dersalong.de/
thanks

Hi,
provided test site helped to fix a problem.
There is the follow code at main page:

window.onload = function() {
    document.onclick = function(e) {sendData(e);}
}

It breaks call of scheduler initialization.

So you should do the follow:
open file components/com_scheduler/codebase/dhtmlxSchedulerConfigurator.php and replace line

$scheduler .= "window.onload = function init() {";

with the follow:

$scheduler .= "window.setTimeout(scheduler_init, 1000);";
$scheduler .= "function scheduler_init() {";