pasting javascript widgets into pages

is there any way yet to paste javascript code into pages using iweb 09?

i've tried pasting sharethis code using the insert html widget function, instead, it appears is it pasted into a separate html file (which includes headers and all) that is in the download_files folder...

all work-arounds i've seen so far include copy-pasting it into the actual html code outside iweb and having to re-do this everytime you make changes.
kinda clumsy to be honest....
any way around this?
\

pismo powerbook G4 500MHz & Mac OS X 10.4.11, macbook (2007), Mac OS X (10.5.6)

Posted on Jun 13, 2009 2:39 AM

Reply
5 replies

Jun 13, 2009 4:34 PM in response to rene beekman

is there any way yet to paste javascript code into pages using iweb 09?


It's depend on how/what the javascript code is implemented.

i've tried pasting sharethis code using the insert html widget function, instead, it appears is it pasted into a separate html file (which includes headers and all) that is in the download_files folder...


That's how HTML Snippet widget works, it does not add the codes to the page but to another page called widget#_markup.html thru an iframe.
Most people do not know this (or ignore to) and make the common mistakes... have their StatCounter or Google Analytical codes track the wrong pages.

all work-arounds i've seen so far include copy-pasting it into the actual html code outside iweb and having to re-do this everytime you make changes.
kinda clumsy to be honest....


You know it... post editing after every publishing... is clumsy, old, oh so yesterday...

any way around this?


Yes, build your own iweb3 widgets, this pretty much answer your first question.
However... AFAIK, I am the only one (as far) builds iweb widgets (in iweb3 context), google my page (cyclosaurus.com)... you find sharethis widget is on upper left corner.

All javascript is linked to my page... sorry, I don't do tutorial nor how-to.

Jun 14, 2009 1:44 AM in response to Cyclosaurus

Cyclosaurus wrote:

any way around this?


Yes, build your own iweb3 widgets, this pretty much answer your first question.
However... AFAIK, I am the only one (as far) builds iweb widgets (in iweb3 context), google my page (cyclosaurus.com)... you find sharethis widget is on upper left corner.

All javascript is linked to my page... sorry, I don't do tutorial nor how-to.


looks great!
how do you do it? wrap the sharethis code in additional code and past it into html snippet?

are you making these widgets available ?

Jun 16, 2009 6:50 PM in response to rene beekman

looks great!
how do you do it? wrap the sharethis code in additional code and past it into html snippet?


correction: the widget on my page is Addthis http://www.addthis.com/ (not sharethis)

there are couple ways to do it: 1) insert the code into the page directly from the widget 2) dynamically build the code during load time (DHTML) and insert it into the page.

are you making these widgets available ?


some day... some day... I have over a dozen widgets now.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

pasting javascript widgets into pages

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.