When the most unpleasant moment the javascript file where we store on another host start running out of bandwidth. An interactive blog that originally seen even so chaotic tampilanya khan. Well, this is one keleman bloggers because they do not give us the capacity of disk space, especially those dealing with the javascript file. As an alternative we can usually only borrow free web hosting from a third party, unfortunately the offer provided was not always satisfactory. storage capacity offered big hell, but so useless when given bandwidth capacity is not comparable hehehe. Well, here I try to share tips to overcome the problem of hosting javascript in blogger, hopefully enough to help.
Change the format of the file extension from .Js to .Txt
Remember, not all the javascript is called by the ending .Js, this is an advantage where we can store and call the javascript file in a text format that are stored in the format .txt
Not all free web hosting services provide the flexibility for us to store the file format. Js in hosting them, so we can outsmart just by changing the extension from .Js to .txt
How to call a javascript format .txt file on another host:
<script type="text/javascript" src="address-url-filename.js" />
The invitation can be replaced with
<script type="text/javascript" src="address-url-filename.txt" />
Save Javascript in an HTML page element / Blogger Gadget
Not all the javascript code should be in store in other hosts or only in the Edit HTML page, we could have put this JS code directly on the blogger page element "HTML / Javascript". Unfortunately this does not always 100% successful, because not all javascript files can support the storage of this widget. Perhaps the only successful if the javascript code is only stand alone, in terms of JS files are not interconnected with one calling code and other code.
Save the javascript code directly in HTML EDIT page
Platform bloggers actually frees us to put the code directly javascipt on Edit HTML page. The way I apply these always succeed, but sometimes not very effective as well if the javascript code that we use the script code is too long. This last way I think is the best one that should be attempted.
Before you try the method below, make sure that we already have a JS code that will be saved. If someone is still confused, JS code can be found directly by taking the URL address. see example below calling code are printed bold. JS code and there are usually stored.
<script type="text/javascript" src="address-url-filename.js" />
Try to directly input the URL in your browser, if you have found any live copy the code.
JS code for previously in other host can be directly used dialamat diblogger, we can directly use the code below.
<script type='text/javascript'>
//<![CDATA[
Fill_Script_Here
//]]>
</script>
//<![CDATA[
Fill_Script_Here
//]]>
</script>
Hopefully the above can solve the problem running out of bandwidth, if ya still have problems staying just use a paid hosting goes wrong ..
0 Comments:
Post a Comment