srsakib
Active Member
Hello,
Clientexec has been installed on the subdomain. The search box is on the main domain. The search box was working fine after getting help from Mr. Matt. But, from 6.3, it was stopped working for my site.
Recently I wanted to reconfigure it. So, I discovered that the step changed from 0 to 1. I changed the value to 1. But, it's still not working. I tried the below code.
.htaccess for subdomain:
The search box code is,
Did I miss anything?
I also tried the code from How do I add external domain search to my site.
Clientexec has been installed on the subdomain. The search box is on the main domain. The search box was working fine after getting help from Mr. Matt. But, from 6.3, it was stopped working for my site.
Recently I wanted to reconfigure it. So, I discovered that the step changed from 0 to 1. I changed the value to 1. But, it's still not working. I tried the below code.
.htaccess for subdomain:
Code:
<IfModule mod_headers.c>
Header add Access-Control-Allow-Origin "https://domain.com"
Header add Access-Control-Allow-Methods "POST"
</IfModule>
The search box code is,
JavaScript:
<input id="domainname" type="text" name="domainname" value='yournewsite.com' />
<input id="submit-button" type="submit" value="Search Domain">
<script type="text/javascript">
var ceURL = 'https://sub.domain.com/';
var groupId = 2;
$('#submit-button').click(function(e) {
e.preventDefault();
var fullname = $('#domainname').val();
if ( fullname.indexOf(".") == -1 ) {
$('#domainname').addClass('domain_fail');
$('#domainname').val(fullname+' - not a valid domain name');
} else {
name = fullname.substr(0, fullname.indexOf('.'));
tld = fullname.substr(fullname.indexOf('.')+1);
window.location = ceURL + 'order.php?step=1&productGroup=' + groupId + '&domainName=' + name + '&tld=' + tld;
}
return false;
});
Did I miss anything?
I also tried the code from How do I add external domain search to my site.