WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You

WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

Guest


Guest
This didn't fit into the Tutorial format, so...here's a Christmas gift. If you follow the instructions, you will no longer need to find a host for your javascript files for forumotion boards.

Here's what you do. Go to forumotion's admin control panel (ACP), Modules, HTML Pages Management. Click Create new HTML Page. Give the page whatever title you want, and leave both questions as the default no.

Now comes the fun part! For the contents, enter a "$" (dollar-sign) character, then click Submit. You will note that the character has been replaced with its HTML code equivalent. Delete those characters, leaving a blank page, then paste in the javascript code you want to save, and click Submit again.

The javascript file will be saved properly, and it will continue to be saved properly from that point onward!

To complete the task, click the large HTML to return to the main HTML pages management page. Find the name of the page you just created in the title column, then look to the left to find the page's number. Let's say it is number 8 for this example.

Now let's say you want to add the script you just created to your homepage message. Here's what to add to the homepage message:
Code:
<script type="text/javascript" src="/-h8.htm"></script>
The "/-h8.htm" is the URL to the HTML file you just created.

Why does this work? The technical reason is that the "text/javascript" MIME type is among the very few that does not require the file to have a specific extension.

So go ahead and host your javascript files as HTML files, and have a great Christmas!

NOTE:

forumotion is screwing around with the URLs of HTML files. While they have promised the old URLs will continue to work, it's possible the day will come that the URLs for the HTML files will need to be changed. If that happens, I will update this post with the changes needed.

Guest


Guest
nice one Smile

Unknown Data

Unknown Data
Registered Member
Registered Member
Good christmas gift dion! Very Happy

http://woops.dk

YanOri

YanOri
Registered Member
Registered Member
Good one dion, thanks for this tip Smile

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum