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?
\

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.

Similar Messages

  • I was trying to copy and paste a email into pages and saw it in pages but lost it. apon returning to my email i hit some key and completely lost the email. is there anywhere i might find it? It is not in drafts or anywhere that i can find.

    I was trying to copy and paste an email into pages when I lost it in pages and on the email screen . where else might it be?

    Try the search field at the top of Inbox. Or else log into your email account using Safari.

  • Pasting HTML styles into Pages

    Is there any way to get Pages to recognize basic HTML formatting styles?
    I'd like something with an h1 tag to map to Header 1 in my paragraph styles.
    Any ideas/workarounds?

    GUI scripting ones able to paste in a document or instructions dedicated to Pages which you will learn studying the Pages 's Applescript dictionary.
    The 'Open Dictionary' menu item of the Script Editor is the entry point for this dictionary.
    You may also go to my idisk :
    <http://public.me.com/koenigyvan>
    and look at the contents of the folder :
    For_iWork:iWork '09:for_Pages09:
    Some of the embedded scripts are setting style attributs to pieces of text.
    I think that the easier track is to work with two documents.
    enter a loop like that:
    repeat while there is text to import
    insert a chunk of text in document 1
    apply the required attributs
    select all
    cut
    paste at the end of document 2
    end repeat
    Yvan KOENIG (VALLAURIS, France) dimanche 23 mai 2010 23:57:05

  • Dynamically linking a Numbers graph into Pages document

    I want to creat a Pages 5.2 document that uses a graph made in Numbers 3.1 -- I see that the older versions of iWork allow for this. Can anyone help me do this, I would really appreciate it. Thanks Tom.

    The Link feature is gone. You can use the old version and have the feature you miss, or you can soldier on with the new one. Numbers is still the best place to build and edit Charts. Once you have Pasted the Chert into Pages, you can activate the chart and click on Edit Chart Data to expose the underlying table. Then you can Paste the new data, copied from Numbers, to update the Pages chart.
    Jerry

  • Please help! Problems posting chart from Numbers into Pages

    Hello
    I've come across a strange problem, and I'm sure I'm missing some simple trick.
    I have created a chart in Numbers, it looks nice, and crisper than the equivalent Excel diagram. However, when I paste it into Pages, I can't resize it! It seems to preserve the fonts that I specified in Numbers, and so it doesn't become smaller. And I can't see any way of reducing the font size in this chart. And it doesn't resize nicely when I drag the box corner in Numbers.
    The thing is, it's really quite straightforward to create a chart in Excel, and then copy it into Pages, and it resizes and everything with no problems.
    Can anyone give me some pointers as to what I should be doing, please? I'm using the 09 versions.

    tgma
    I suggest you experiment.
    It sounds as if you will be satisfied with a simple graphic version of the chart, however I tested my recommendation and there are bugs in what gets saved, some of the text of the labels is lost and the legend gets rearranged.
    It may be necessary to print the entire Numbers sheet to .pdf and crop that down to the graph.
    The 2nd method of copying over the actual chart to Pages works quite well and the data appears in the linked data in Pages. Just make sure to create the linkage from Numbers to first save the Numbers document before copying and pasting the chart into Pages.
    A black tag will appear on the chart when you select it. The circled arrows in the tag allow you to update the chart from updated (and saved) data in the original Numbers chart. There is also an option in the tag to unlink the chart and make it solely a Pages chart.
    As to text not resizing in Pages, this is generally so in grouped objects. Pages will resize all the graphical parts of a grouped set of objects but keep the fonts at the same point size. This can either be a good or bad thing depending on your viewpoint. Personally my view is that everything should scale as expected.
    In a live chart you can click on each part including the fonts and change their appearance and formatting directly, using the usual methods.
    Peter

  • Trouble inserting a widget into my web page

    Hello,
    I am using DW CS3. I got the html code for a widget (in this case a small banner) to insert into my web page. Here is the code:
    <div>Find <a id="flipkey_best_of_property" href="http://www.flipkey.com/pine-mountain-club-vacation-rentals/g1553621/">Pine Mountain Club Vacation Rentals</a> on FlipKey</div><script type="text/javascript" src="http://data.flipkey.com/widgets/jsapi/36780/fhb/7be5/"></script>
    I inserted a Div Tag in my web page to contain the code (Class: Body; ID: apDiv2), and then pasted the code into the Div Tag. Though I was in Design View, the html code still showed as html code, not as the small banner I had hoped for. Can someone steer me in the right direction?
    Note: I took a web design course 3 years ago and created this web page at the time. I haven't done any web design since then, and have forgotten many of the details, but I should remember as soon as someone points out my errors.
    Thanks!

    If it's been 3 years, a refresher course may be in order. 
    Start here:
    HTML & CSS Tutorials - http://w3schools.com/
    APDivs as a primary layout method seldom works well. Here is why:
    http://apptools.com/examples/pagelayout101.php
    Learn CSS positioning in 10 Steps
    http://www.barelyfitz.com/screencast/html-training/css/positioning/
    How to Develop with CSS?  (a must read!!)
    http://phrogz.net/css/HowToDevelopWithCSS.html
    New Dreamweaver CSS Templates for beginners
    http://www.adobe.com/devnet/dreamweaver/articles/dreamweaver_custom_templates.html
    New DW Starter Pages
    http://www.adobe.com/devnet/dreamweaver/articles/introducing_new_css_layouts.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • Best way to include javascript-script into different struts-pages

    Hi,
    I'm running a struts-based webapplication using the tiles-templates for my layout. Now I have to use some javascript-code for a pop-up window and another javascript for tracing on multiple pages but in different combinations. As I do n't want to copy-paste it on every page, but put it on a single place for better maintenance I'm wondering what would be the best way to do this together with the struts-logic.
    I thought about the following options:
    1.) Using the "template:put" feature like this:
    <template:put name='js' content="/myJavascripts.jsp"> I don't think this would be a good option, as I always have to include the whole javascript and I cannot distinguish between my two different javascripts
    2.) Using the template:insert feature like this:
    <template:insert template="/myJavascripts.jsp"/>. This is a lot better, as I can split my two javascripts into two different files and can always decide, which one to include with the template:insert tag. But I'm not sure, if this is conforming with the struts-concept, as I do not use any template:put or template:set tags
    3.) Using simple jsp:include or <%@ include ... %> tags.
    This would be the easiest way to include my pages with <%@ include file='/myJavascripts.jsp' %>. Same advantages like template:insert but I don't need the additionally features of the template:insert-tag. But still the same question: is this the concept of struts? Or will I become any difficulties with this concept later??
    Any recommendations or further ideas are greatly appriciated.
    Thanx for your help
    Thomas

    Getting PDFs to download is fairly easy and the method is described here.....
    http://www.iwebformusicians.com/WebMusic/PDFs.html
    To get multi page docs to display in the browser requires the use of Google Docs viewer, ISSUU or some such thing....
    http://www.iwebformusicians.com/PromoPage/ISSUU.html
    Safari is the only browser I know of that will display PDFs in an iFrame without a plugin.

  • How can I paste a pdf of a Publisher document into Pages so I can edit?

    I have been asked to print a document that was created in Publisher on a PC. I have been sent a pdf of the document, which is A4, printed both sides, with four A6 text boxes on each side, with the same artwork and text in each box. The trouble is, the layout is wrong so when it is cut into four the margins are not even. I have Acrobat 7.0 Standard (which is know is very old) but I haven't used it much and can't work out how to edit the pdf. At the moment all I can do is copy and paste the entire document into Pages but then I can't extract just one A6 text box from the rest. If I could do that it would be a breeze to set it up correctly in Pages so that it works when cut into four A6 pieces. When I go to Get Info it says it is not locked and I have permission to read and write.
    Can anyone explain these things to a beginner, please?
    Thanks!

    Chris
    There are several ways we can go about this.
    *1. In Adobe Illustrator* you can open the pdf file directly and chop out the bits you don't want and resave them individually. There maybe problems with fonts not being embedded as it comes from a PC where such things are mostly verbotten.
    *2. In Acrobat* you can do some editing and avoid the fonts issue. But the procedure is a bit more involved.
    If it helps, you need 2 things:
    +Menu > Tools > Advanced Editing > Select Object Tool+ and
    +Menu > Split Document… / Crop Pages…+
    Using this you can unpick the pdf file removing the parts you don't want. Not as simple as it sounds because you need to understand why some objects select with others and why some are unselectable which has to do with grouping, masking and compounding.
    *3. In Preview* cut apart the multiple pages and parts of each page. To split the multiple pages you will have to open the set and then delete the pages you don't want and save the remaining page with a new name.
    To delete a page click on it in the sidebar and hit delete.
    To crop a page use the +Select Tool+ in the top of the window and drag around the part of the page you want then +Menu > Tools > Crop+ and resave with a new name. Be aware this does not actually get rid of anything outside the select it just crops the view of it.
    *4. Which brings us to Pages*. Having divided the pdf into individual page files you can then drag them into Shapes on your page the size of the parts you want to show.
    When you click on the shape with page in it a little bar shows up underneath with +Edit Mask+. Click on the +Edit Mask+. You will see the shape, which is the mask, gets a grey dotted outline with white resizing boxes on the corners and mid points. If you need to adjust the crop or size of the shape drag on these.
    Behind the shape outline is the image with the cropped parts outside shown greyed out. The greyed out part is the hidden part. If you click outside the shape but on the greyed out part of the image you select the image itself and can pull at its corners or sides to change its shape. Or if you just click on the greyed part of the image you can move it around so that it moves relative to the shape cropping it.
    If you have several sections to be shown in each shape, you can move them one at a time to show each one. Say you have 4: 2 top and 2 bottom, option drag the shape with the picture in it to make 4 copies. Then in each one pull the image to reveal in turn top-left, top-right, bottom-left and bottom-right.
    Do this till you have all the parts separated and rearrange them where you want.
    *A bonus tip:* Cut out a step by opening Preview, next to Pages, with the multiple pages showing in the sidebar. You can drag the pages from the sidebar directly into the shape in Pages, without having to divide the .pdf.
    Any further questions just ask.
    Peter

  • How Can I Set a Javascript Value into an Attribute of BSP PAGE

    Hi
    Can anyone tell me.
    How Can I Set a Javascript Value into an Attribute of BSP PAGE

    Hi Mithlesh,
    javascript runs on client side and you cannot assign the value to a Page attribute directly.
    As a workaround,you can use an Inputfield,hidden if required,and set the value using javascript.Then the form will have to be submit to be able to read the value in onInputProcessing and then can be assigned to any variable.
    In Layout
    <head>
    <script language="javascript">
    function pass()
       txt1 = document.getElementById("ip_mrf");
       txt.value = "hello" ;
    </script>
    </head>
    <htmlb:inputField  id="ip_mrf"
                               value="<%=mrf_number%>"
                               visible="FALSE"/>
    in onInputProcessing
    cha1 = request->get_form_field( 'ip_mrf' ).
    where cha1 is the page attribute
    hope this helps,
    Regards,
    Siddhartha
    Message was edited by: Siddhartha Jain

  • Is there any way to crop part of  a screen shot and paste into Pages?

    Instead of importing an entire photo into Pages, I am trying to:
    -take a screen shot of iPad documentation
    - open in photo roll and crop a section out of it
    - paste into Pages
    Is there an App that might crop and paste into Pages?
    Thanks for any help.
    Prea

    You can do that with PhotoPad. You take a screen shot, crop it in PhotoPad and it is saved to Saved Phototos. Then you just go the Media section and import the croped photo.

  • When I copy and paste a chapter from MS Word into Pages my tables and equations are trashed.  But importing them results in no control over my template How do I get my chapter into my template without copying

    When I copy and paste a chapter from MS Word into Pages my tables and equations are trashed.  But importing them results in no control over my template How do I get my chapter into my template without copying?

    Try just Opening the Word .doc from within Pages and see if that gets closer to what you want, then copy the chapter you want from the Pages version.
    Peter

  • How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    How can I copy and paste table cells from Pages into InDesign with minimum reformating?

    Do you mean you want to retain the formatting from Pages, or retain formatting already applied in ID?

  • Is it possible to edit vector art pasted into Pages 4.1?

    Is it possible to edit a vector shape created in Illustrator and pasted into Pages 4.1? I can adjust the transparency, scale it, even put a drop shadow on it, but I can't change the color which is all I want to do.

    It has a drawing tool at the end of the Shapes menu but it is oddball and a little clumsy compared with what Illustrator offers and it only edits Pages' native objects.
    Peter

  • Problems pasting pie chart from Numbers into Pages table

    Hello,
    I'm trying to paste a pie chart from Numbers into a table cell in Pages 09 but it doesn't allow me. Would you know why?
    Thanks,
    Pedro

    Probably because it is a smart object connected back to the Numbers document.
    If you want it purely as a graphic, try copying the chart in Numbers switching to Preview.app and going command n which will make it a pdf file, then copy that and paste that into Pages. But it will no longer be a live chart.
    Peter

  • Pasting chart into pages from numbers

    How come I can't copy/paste charts into pages from numbers anymore?  I used to be able to on the last edition now with the new update when I go to paste the chart nothing happens.

    If you are using Pages v5 (any version), then you need to be using Numbers 3+ for copy/paste. If you are using Pages ’09 v4.3, you need to be using Numbers v2.3. Mixing versions breaks things.

Maybe you are looking for