Embedding javascript into iWeb?

Is there a way to embed some Javascript into an iWeb '09 site via something like a snippet?

you can add javascript to iweb page in many ways, but it depends on the complexity of the javascript and the complexity of the template that you use.
the typical process of adding javascript in HTML Snippet is one of the following:
1) pasting the code in HTML Snippet and hope that it'll work.
2) design a page (probably a simple template) then:
a) publish it.
b) look for the element that you want to apply javascript to.
c) hard code the javascript.
d) add it using HTML Snippet.
e) publish it (again) and hope that it'll work.
this process is clumsy as I described because you have no control on how iweb assigns id and class to an element. I'd done this back in iweb1 (three years ago).
this process will not work when you try to apply to a complex template...
say you like to apply your javascript to the thumbnails in the photos page template, well you can't because there is nothing there to see in the above steps a and b
unless you have complex javascript to deal with them. I'd done this back in iweb2 (almost two years now).
that said, as of iweb3... you can build (real) iweb3 widgets to add complex javascript to just about anything to any page template, but you need to know HTML, CSS, JavaScript, DOM, and how iweb works
here are my examples:
http://www.cyclosaurus.com/Home/Cyclosaurus.html <-- StatCounter
<a class="jive-link-external-small" href="http://">http://www.cyclosaurus.com/Home/CyclosaurusBlog/Archive.html <-- my own iweb blog tag cloud
<a class="jive-link-external-small" href="http://">http://cyclosaurus.com/iWeb3Widgets/Lytebox/Photos.html
http://cyclosaurus.com/iWeb3Widgets/Highslide/PhotosPage.html
http://cyclosaurus.com/iWeb3Widgets/Couloir/Photos.html

Similar Messages

  • Embedding JavaScript into Flash

    Can someone please tell me is it possible to embed some
    JavaScript into a .fla file?
    The reason I ask is because I am doing a major project in
    which I have decided to create an Intelligent Help Desk in
    Macromedia Flash. In it I aimed to implement SitePal but it is only
    now I find out it uses JavaScript.
    I don't want to be rude but I need a reply as soon as
    possible as the matter requires some urgency.
    Any help is greatly appreciated.
    Niall

    ghgjjjk wrote:
    > Can you please tell me the process I need to carry out
    in order to achieve that?
    sorry, don't really have time. If you are publishing for
    flash 8, check
    out the documentation for the ExternalInterface class as this
    is the
    best method so far available for getting flash to communicate
    with
    JavaScript and vice-versa.
    Otherwise, if you're publishing to flash player 6.0.65.0 or
    higher check
    out the Flash/Javascript integration kit, which can be found
    here:
    http://weblogs.macromedia.com/flashjavascript/
    I also have a working demo of this on my site here:
    http://www.moloko.f2s.com/gateway/
    if publishing to flash player version earlier than 6.0.65.0,
    you will
    have to use getURL("javascript:"); - check out the
    documentation in
    flash for getURL()
    MOLOKO
    Macromedia Certified Flash MX 2004 Developer
    Macromedia Certified Flash MX Developer
    ::remove _underwear_ to reply::
    'There ain't no devil - it's just God when he's drunk' Tom
    Waits
    GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+
    w+++$ !O M+
    VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e
    h-- r+ y++

  • Embedding scripts into iWeb pages (v 1.2.2)

    Quick question: How do I embed scripts into a iWeb blog page? I'm trying to embed this script...
    <script src="http://www.konami.jp/gs/kojimapro/mgs4bp/blogpartsen.js" type="text/javascript"></script>
    If you can explain an easy way to do it I'd appreciate it very much, thanks
    using iWeb 1.2.2

    Someone posted this in a forum thread:
    You can use a .js file in iWeb. The way I prefer doing it is creating an unadvertised/linked page on your site (named "javascripts", for example), and dragging the script onto that page. Then, on any other page containing the HTML to call the js, point it to ../javascripts_files/filename.js (in keeping with my example page name).

  • Embedding a google form into iWeb.

    I am trying to embed a google form into iWeb and the full form does not show up. I used the HTML widget and copied and pasted the google link.
    Thoughts?

    Hi Ralph,
    We can use fragments for such requirements but at the end when you add a fragment only the xfo is copied not the data.
    so ideally this is not possible in Adobe forms atleast for now. so we need to have links to launch the child form.
    Cheers,
    Sai

  • Embedding web forms into iweb pages.

    I need for someone to answer the question on whether you can embed opt-in webforms into iweb pages and if so how do you get the code into the iweb code so it shows up on the page. Im using Aweber and need to put their opt-in form on my iweb page.
    imac G5   Mac OS X (10.4.9)  

    http://www.varkgirl.com/Varkgirl/Basic%20HTML%20Additions.html

  • Embed iCal into iWeb through HTML snippet after Lion OSX update

    How do I embed my published iCal calendar into iWeb through an HTML snippet AFTER the Lion OSX update last month? I use iWeb to create my classroom website but it no longer has my interactive calendar for my students. Help!

    I am curious about this too, does anyone know how to embed a Lion iCal Calendar into iWeb?
    I found an old walkthrough of how to do it, but on the published site it just opens ical and offers a subscription, you cannot actually see the calendar on the web page it is embedded on.
    Thanks!

  • Help with jquery code into iweb

    Hello,
    I am new to inserting code into iweb and was wondering if it was possible to use code such as the jquery plugins into an iweb html snippet? i would like to create a simple image gallery such as the following link:
    http://malsup.com/jquery/cycle/lite/
    interested in the click transitions (fade in out), but instead of using the prev / next as the click triggers if it was possible to use "+" and signs
    i appreciate any help you guys may provide,
    grodr

    Yes, you can use JavaScript in the HTML Snippet. But it requires knowledge of HTML/CSS/JavaScript and how iWeb works.
    Anything you paste in the HTML Snippet is your responsibility. iWeb does not care whether it works or not. It happily publishes the stuff you paste.
    Read this article : [Using the iWeb HTML Snippet|http://www.wyodor.net/blog/archives/2009/07/entry_213.html]
    Follow the link in the article and read this sentence very very carefully:
    *Publish the page on the server and test it. Make sure it works. And test it again. And again. And again. No excuse.*
    And this : [How to display a remote picture in your iWeb page|http://www.wyodor.net/Tutorials/ImageWidget/ImageWidget.html]
    This pages uses it in the two slideshows :
    http://www.wyodor.net/_Demo/MyHouse/Huis.html
    And here it is explained how to create such slideshow :
    http://www.wyodor.net/iWebBlogTest/Wyodor_1/WebBanner.html
    And this topic :
    http://discussions.apple.com/thread.jspa?threadID=2351764&tstart=0

  • Page-embedded Javascript and uploaded images are not cached.

    Hello All,
    I was reading in Wiki APEX and I found this line mentioned as cons: "Page-embedded Javascript and uploaded images are not cached".
    The question that I have posted many questions here how to enable the cache for Images and Javascripts but didn't get it right, is the wiki info right about the cache for images and JS?
    thanks,
    Fadi.

    Look at the bottom of this page as well [http://carlback.blogspot.com/2007/12/apex-and-3rd-party-js-libraries.html]
    Patrick Wolf
    Carl,
    the only drawback with #WORKSPACE_IMAGES# and #APP_IMAGES# is that it doesn't get cached by the browser. So each page request will transmit the hole file again. A caching option for the "Static Files" in the Shared Components would be nice :-)
    About lazy loading with the #WORKSPACE_IMAGES#. I could think about a mod_rewrite rule which translates the additional file request of the JS library into a valid request for APEX.
    Carl Backstrom
    In 3.1 we emit a last modified header now for uploaded files so that should help with browser caching.
    I wonder if anything's changed since then.
    Kofi

  • Inserting Forms into iWeb

    Is there a way of inserting fill-in forms eg application forms into iWeb ?
    Or, can someone give me a solution for producing an application form, apart from having a pdf form to download ?
    Thanks
    Anton

    Yes. There are a couple of ways. 1 - use a 3rd party site like Wufoo to create the form and embed it into your iWeb page using the code from Wufoo and an HTML snippet. 2 - use Form Action code.
    The following demo page shows each method and the code used: Embedding Forms & Encoding Email Addresses.
    OT

  • Embedded hyperlink into new browser tab/window

      Hi Team,
    There is a requirement in my project for that, need to open embedded hyperlink into new browser tab/window, hyperlink is available in the pdf file which is open in browser (Internet Explorer).
    More than 2 lakh user is using the product so, there is any way to set the hyperlink target as a _blank so that the link open in new tab/window.
    Is there any adobe API is there which can support the above requirement?
    Is there any other way which can fulfill the requirement?
    End user is more than 2 lakh so, am not going to change the setting of Adobe reader as well as browser.
      Need your help to resolve the issues.
    Regards,
    Rupesh

    Yes, there is an API that is supposed to do this in the Web brower.  Does it work?  Not reliably is what I have found because different web browsers seem to interpret the way that Acrobat calls for a new window differently.
    launchURL
    7.0
    S
    Launches a URL in a browser window.
    Note:    Beginning with Acrobat 8.1, File and JavaScript URLs can be executed only when operating in a privileged context, such as during a batch or console event. File and JavaScript URLs begin with the scheme names javascript or file.
    Parameters
    cURL
    A string that specifies the URL to launch.
    bNewFrame
    (optional) If true, this method launches the URL in a new window of the browser application. The default is false.
    Returns
    The value undefined is returned on success. An exception is thrown on failure.
    Example 1
        app.launchURL("http://www.example.com/", true);
    Example 2
    Add an online help item to the menu system. This code should be placed in a folder-level JavaScript file, or executed from the JavaScript Debugger console.
        app.addMenuItem({
            cName: "myHelp", cUser: "Online myHelp",
            cParent: "Help",
            cExec: "app.launchURL('www.example.com/myhelp.html');",
            nPos: 0
    Related methods are openDoc and the Doc object getURL method.

  • I am trying to edit my website which was composed in iweb. I have my website saved on my hard drive. When I open iweb, I can't seem to load the website folder into iweb for editing purposes. Anyone know a quick solution to this?

    I am trying to edit my website which, was composed on iweb about 2 years ago. I have the website stored on my hard drive. When I open iweb, I can't figure out how to load the website into iweb for editing purposes. Any help would be greatly appreciated! Thanks

    You need to migrate to a modern, supported webpage development application and leave iWeb behind.  It hasn't been supported for 2 years now and was behind the curve feature wise when it was dropped by Apple.
    One app that many have migrated to because it is very similar to iWeb in the GUI and features is Everweb.  It has a demo version that you can try.  Text and photos from you current published site can be copied and pasted into Everweb to help the migration over.
    There are other possible candidates.  Just search the iWeb forum for "iWeb alternative" or "iWeb replacement" to get a list of topics discussing them.

  • How can i import my old website into iweb

    hi,
    my harddrive crashed and I lost all my data. When I set up OSX for new I downloaded my website (www.et-voila.net) from my ftp and I wanted to import to i-web. But I found no possibility do this.
    How can I work on my old (i-web made) Website with my new i-web (i-web '08)? There must be a possibility!!
    thanks for your help

    "iWeb stores everything in a Domain file, normally located in the ~/Library/Application Support/iWeb folder (although it can be moved). If you no longer have this file, you can view your currently published pages and manually recreate them within iWeb, but *there is no way to import published pages back into iWeb*. You can manually back up the Domain file, or use Backup to back it up."
    ...quoted from here:
    http://docs.info.apple.com/article.html?artnum=306055

  • How do i import my previous website into iWeb?

    I had previously designed my website in iWeb and published it, i then had to wipe my hard drive but backed everything up, now i can't seem to open or import my old website back into iweb, any help please?

    John ~ In your backup, look for Domain.sites2 file which is usually located here:
    ...Double clicking that file should open it in iWeb.

  • Can you export a published iweb website back into iweb?

    I have created my own iweb website which I uploaded to my own domain using transmit. Since creating the page, I had a had drive die on me that I can't access and don't have my site in iweb to edit as I have resorted to a back up made just before I made the site. So I want to know if I can access the site from Transmit and put it back into iweb for editing the site?
    This is my first site I have made entirely on my own and have been learning as I go. If I can't access the site as I made it, I may try accessing the files from Transmit one by one to re-make the pages.
    Any help on this will me very much appreciated.
    This is my site for anyone who wants to see:
    http://jemgirl.com
    Powerbook   Mac OS X (10.4.9)  
    Powerbook   Mac OS X (10.4.9)  

    Sure, you could syncronize in the opposite direction to get your html files and images, etc back on your Mac. But you will have to drag and drop, copy and paste to get that content back into iWeb.
    Your iWeb data is stored, not in your actual html files, but in a file called Domain.sites which is stored in your Home/Library/Application Support/iWeb folder. If you want to work on your site on another computer, copy this file to a thumb drive to move it around.
    You should backup this file whenever you make big changes to your site, because if it gets lost or damaged, you will have to start all over. Sadly, many many people learn this the hard way. Unfortunately, looks like you have too.
    I have an Automator app on my site that will help you backup your Domain file(s). Click here to download it or visit http://iweb.varkgirl.com for more info. The app will make a .zip file of your Home/Library/Application Support/iWeb folder and save it to a location of your choosing.
    Then check out Mozy for an online place to store your backups - I just found this and it seems great. They just recently released a Mac friendly version of their app - it automates the upload and encryption. You select the files you want to backup and it does the rest. You can set it to upload automatically after so many minutes of inactivity or once a day. It does it all in the background so you don't have to worry about it! 2GB of storage are free - plenty of room for most people's iWeb Domain.sites backups!

  • How can I upload the back-up folder into iWeb?

    How can I upload the back-up folder into iWeb?
    Hi
    I've set up my website using iWeb 08, always keeping the latest version in iWeb and backing it up in a folder on my HD.
    Yesterday I got rid of the current design iWeb and tried to upload the back-up folder into the iWeb application. No success.
    How can I upload the back-up folder into iWeb? Many thanks for your help.

    Welcome to the discussions. Only iWeb's Domain file can be opened in iWeb. See this Apple doc on How to back up MobileMe data. It says:
    Any websites you have published with iWeb should still be available within iWeb. iWeb stores everything in a Domain file, normally located in the ~/Library/Application Support/iWeb folder (although it can be moved). If you no longer have this file, you can view your currently published pages and manually recreate them within iWeb, but there is no way to import published pages back into iWeb. You can manually back up the Domain file, or use Backup to back it up.
    Presumably you've been prudently making backups of your Mac's internal HD, so search there for the Domain file's invisible extension:
    .sites2
    If you can't find your old Domain file, paragraph 2.3 of this FAQ page gives some tips on how to use published files, graphics, photos, etc., to help rebuild the site from scratch:
    http://iwebfaq.org/site/iWebBackupretrieve.html

Maybe you are looking for

  • Mountain Lion Mac Mini Server Ethernet Port Not Working

    I have a Mac Mini Server and once I upgraded to Mountain Lion Server the Ethernet port is unresponsive. It worked before upgrading. Is there something with Mountain Lion Server that is causing the Ethernet port not to work properly?

  • My Powerbook G4 refuses to recognise it's battery.............

    My powerbook refuses to recognise that it has a battery installed. Naturally this happened just weeks after the extended warranty ran out! The battery icon on the top right side of the toolbar has a cross in it and yes, I have checked it with another

  • Trading Scenario in SAP

    Hi all, I am working for a project where there is total trading scenarios. No manufacturing at all. But the scenario is like when the PO is received from the customer then only all the procurement process begins: 1. Sales order Created & requirements

  • May I send private messages to a friend in this forum?

    I can;t find this function. Will it be added? Solved! Go to Solution.

  • Possible to increase rate of rotation over time?

    I need to simulate something similar to the effect of a car wheel rotating, strictly in 2-D, a totally flat side-view. The complication is that I need the "wheel" to be stopped at first, then slowly ramp up speed over time until it reaches a maximum