rendering javascript

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

rendering javascript

sergio_101-2
for some reason, i am still not able to render javascript as a component.

what i am doing is:

building a structure (a page)
dropping the script into the structure...

what i have found is that it is being rendered as web entities, rather
than straight text..

for example, when i add the structure [1], i get it rendered as [2]

[1] - the contents of the structure..
<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script>
new TWTR.Widget({
  version: 2,
  type: 'profile',
  rpp: 4,
  interval: 6000,
  width: 'auto',
  height: 300,
  theme: {
    shell: {
      background: '#dddddd',
      color: '#ffffff'
    },
    tweets: {
      background: '#ffffff',
      color: '#000000',
      links: '#aaaaaa'
    }
  },
  features: {
    scrollbar: false,
    loop: false,
    live: true,
    hashtags: true,
    timestamp: true,
    avatars: false,
    behavior: 'all'
  }
}).render().setUser('sergio_101').start();
</script>

[2] - how it is rendered:

<script src="http://widgets.twimg.com/j/2/widget.js"></script>
<script> new TWTR.Widget({   version: 2,   type:
&rsquo;profile&rsquo;,   rpp: 4,   interval: 6000,   width:
&rsquo;auto&rsquo;,   height: 300,   theme: {     shell: {
background: &rsquo;#dddddd&rsquo;,       color: &rsquo;#ffffff&rsquo;
   },     tweets: {       background: &rsquo;#ffffff&rsquo;,
color: &rsquo;#000000&rsquo;,       links: &rsquo;#aaaaaa&rsquo;     }
  },   features: {     scrollbar: false,     loop: false,     live:
true,     hashtags: true,     timestamp: true,     avatars: false,
behavior: &rsquo;all&rsquo;   }
}).render().setUser(&rsquo;sergio_101&rsquo;).start(); </script>


--
----
peace,
sergio
photographer, journalist, visionary

http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: rendering javascript

Lukas Renggli
> building a structure (a page)
> dropping the script into the structure...

Upload it as a text file.

Lukas

--
Lukas Renggli
www.lukas-renggli.ch
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki
Reply | Threaded
Open this post in threaded view
|

Re: rendering javascript

sergio_101-2
>
> Upload it as a text file.
>

hmm.. i did just this, and it ends up rendering a link to the file,
but not the contents of the file..


--
----
peace,
sergio
photographer, journalist, visionary

http://www.CodingForHire.com
http://www.coffee-black.com
http://www.painlessfrugality.com
http://www.twitter.com/sergio_101
http://www.facebook.com/sergio101
_______________________________________________
Magritte, Pier and Related Tools ...
https://www.iam.unibe.ch/mailman/listinfo/smallwiki