Contact form

Page: 1

Author Post
Member
Registered: Nov 2008
Posts: 26
Hello,

I use a Contact form in an iframe. Local it works fine, but not on server. When I click the botton 'cancel', fb doesn't close.

Any idea?

Markus
Administrator
Registered: Aug 2008
Posts: 3382
Not without seeing it.
I've got a contact form in an iframe on my demo page with a cancel button that closes floatbox just fine. It sez...
<button type="button" onclick="parent.fb.end()">Cancel</button>
Member
Registered: Nov 2008
Posts: 26
I opened the contact form in fb with a subdomain like //taget.domain.tld/form.html
But the 'real target' on server was the folder //domain.tld/form.html

Now it works.
Administrator
Registered: Aug 2008
Posts: 3382
Ah. Sounds like cross-domain script blocking. Browsers won't let javascript execute across different domains. (I'm probably not telling you something you don't already know.)

Page: 1