...

View Full Version : Include a .html file with javascript in .tpl file



heredia21
09-03-2010, 02:16 AM
Does anyone know how to accomplish this? I got the html file to show but none of the text in the file will show.

Dormilich
09-03-2010, 09:22 AM
what have you tried?

heredia21
09-03-2010, 01:47 PM
It just won't shopw up in my tpl file. The same exact file works in my rregular browser just not when I include it in the .tpl file.

heredia21
09-03-2010, 03:37 PM
Ive attached file. bottom is working. top doesnt show the options that is in the .tpl file

Philip M
09-03-2010, 04:10 PM
An HTML file can only be parsed (recognised by the browser) if the file has an .htm, .html, .shtml extension.

All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.

heredia21
09-03-2010, 04:12 PM
Well yeah it is recognized and i included the file in the .tpl. I used {include file='location.html'}.... But the input options are just not showing up.

Dormilich
09-03-2010, 04:28 PM
An HTML file can only be parsed (recognised by the browser) if the file has an .htm, .html, .shtml extension.

addition: a script file is parsed as HTML if a "text/html" Content-Type header is sent along.

heredia21
09-03-2010, 04:30 PM
So how can I get it to work? I included the .js files in the same folder as well.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum