Hello, I'm trying to use this on one of my sites and it doesn't want to work. :( I've created a link with the class="loadinto-targetArea" and I have a div with id="targetArea" but when I click the link nothing happens. I've loaded the scripts as well (obviously!) Please help!
2) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 118.92.--.--
Posted:
Any JS errors? Try testing in a couple of browsers too. If there aren't any errors, try sticking alert() calls into a few functions to see what's being called correctly.
It seems the problem is with this line of code: dest.innerHTML = docText; Any ideas?
5) Eli GreenbergGroup: Guests IP: 24.118.--.--
Posted:
I think I have figured out the problem. When I change the file extension from .xhtml to .html it works. Is there anyway to make this work with .xhtml files?
6) Angus TurnbullGroup: Moderators Posts: 4042Joined: 7 Dec 2003Location: New ZealandIP: 202.137.--.--
Posted:
Hmm! .XHTML isn't really a common extension; it might be a MIME type issue with the server or perhaps an invalid loaded document that is triggering the script's "innerHTML" content load mechanism if the DOM parsing fails.
Assuming it's a valid file, try either renaming to .HTML or perhaps putting in a .HTACCESS file that forces the MIME type of "text/html" for XHTML files.
- Angus.
7) Eli GreenbergGroup: Guests IP: 24.118.--.--
Posted:
I'm not very familiar with .HTACCESS files. How would I force the MIME type of text/html for XHTML files?
8) Eli GreenbergGroup: Guests IP: 24.118.--.--
Posted:
Never mind, I got it figured out. Thanks for your help Angus!