Simpleform 2 + 2 domains = problem

This forum is for general questions about extensions for Joomla! 2.5.

Moderators: pe7er, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
Serge-Rousseau
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Apr 26, 2011 11:31 am
Location: Bucharest
Contact:

Simpleform 2 + 2 domains = problem

Post by Serge-Rousseau » Fri May 27, 2011 12:20 pm

Hi guys,

I have a 2 domains pointing to one site, each with a different language & url, /en for .com and /de for .de. All works fine on .com, but on the .de domain when i try to submit the form it gives me the sweet error of java not working properly because it tries to access the files needed for the form to work(from /modules/mod_simpleform2/ajax/ which are .js) from the .com path.

Error: Permission denied for <http://www.domain.de> to get property Window.document
Source File: http://www.domain.com/modules/mod_simpl ... ry.form.js
Line: 313

any ideas why it does that and of course, how to fix it?

Really appreciate it,
Serge

 
Serge-Rousseau
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Apr 26, 2011 11:31 am
Location: Bucharest
Contact:

Re: Simpleform 2 + 2 domains = problem

Post by Serge-Rousseau » Mon May 30, 2011 11:48 am

I modified the code of simpleform2 and I replaced JURI::root() with /. for some reason JURI::root(). was displaying the .com path... guess what... it still doesn't work, even if it's chasing after the right files now, I receive the same error...

Serge-Rousseau
Joomla! Apprentice
Joomla! Apprentice
Posts: 14
Joined: Tue Apr 26, 2011 11:31 am
Location: Bucharest
Contact:

Re: Simpleform 2 + 2 domains = problem

Post by Serge-Rousseau » Mon May 30, 2011 12:23 pm

Further looking into the error I discovered that using jquery will always give cross-domain errors and the only way is to use json... ajax stuff

 

Locked

Return to “Extensions for Joomla! 2.5”