Jump to content


Photo

Issues Using Javascript And Movable Type?


  • Please log in to reply
5 replies to this topic

#1 zeegirl

zeegirl

    New To The Neighborhood

  • Members
  • Pip
  • 20 posts

Posted 28 August 2007 - 08:57 PM

Hi all, I've installed Movable Type for a client onto their Total Choice hosting account and I'm trying to install include some simple javascript in the main index template. Is there something I need to install to make the javascript work in Movable Type? I haven't had any trouble with the same script outside of MT.

This is the error I'm getting:

406 Not Acceptable
An appropriate representation of the requested resource /mt/mt.cgi could not be found on this server.


And, oddly, I just tried to post the script I was using and it gave me the exact same error... What do I need to do here? Grateful for any suggestions!
Thanks,
Lindsey

#2 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 28 August 2007 - 10:04 PM

Give this a try.
Add to your .htaccess file
<IfModule mod_security.c>
	SecFilterEngine Off
	SecFilterScanPOST Off
</IfModule>


#3 zeegirl

zeegirl

    New To The Neighborhood

  • Members
  • Pip
  • 20 posts

Posted 28 August 2007 - 10:57 PM

Give this a try.
Add to your .htaccess file

<IfModule mod_security.c>
	SecFilterEngine Off
	SecFilterScanPOST Off
</IfModule>


OK, this is probably a stupid question but where do I find the .htaccess file?

#4 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 28 August 2007 - 11:07 PM

Its in your public_html folder.
You can use cpanel > file manager to edit the file
or if using FTP, make sure you can see hidden files.

Insert the code anywhere in the file.

In the rare event you do not have one, create a text file named .htaccess

I prefer to copy the file using FTP to my computer and edit it and then upload it back to my space.
That way I have a quick backup.

#5 zeegirl

zeegirl

    New To The Neighborhood

  • Members
  • Pip
  • 20 posts

Posted 28 August 2007 - 11:37 PM

Its in your public_html folder.
Insert the code anywhere in the file.


That worked like a charm. Thank you!
~Lindsey

#6 TCH-Don

TCH-Don

    Immediate Family

  • Members
  • PipPipPipPip
  • 11,642 posts

Posted 28 August 2007 - 11:40 PM

You are welcome :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users