Embedding javascript goodies (Etsy Mini)

I use iWeb for my websites lately, and I am having trouble embedding an Etsy Mini.
Here is the code that I am to embed:
<script type='text/javascript' src='http://www.etsy.com/etsy_mini.js'></script><script type='text/javascript'>new EtsyNameSpace.Mini(5034411, 'shop','gallery',3,3).renderIframe();</script>
I publish to a folder and upload that via ftp. I need help embedding into the html files after publish and before upload. Any ideas, or suggestions of where to look? Thanks lots!

Today I did manage to get my Etsy Mini to display properly in an iweb created page. It took me several tries at manually replacing snippets of code. I had to add some code to change the margin to the left of the Etsy Mini, but I eventually got it just like I wanted. Once I got it working, I made a text file to remind me what to find and replace after each iWeb publish. Now I am going to create an applescript or Automator workflow (or a combination of the two) that will replace the code automatically each time I make changes to my site.

Similar Messages

  • Help with embedding Javascript for Lightbox Photo Gallery in Muse!

    Hi all:
    I am fairly new to Muse and I have been having trouble finding relevant information for embedding Javascript in order to get a lightbox to work in Muse. Would anyone be able to walk me through embedding the Javascript for the Lightbox Photogallery for Picasa in Muse?
    This is the code I want to use: Lightbox Photo Gallery and Slideshow for Picasa
    And this is the look I am trying to accomplish within my Muse site: Cycling Around The World / January 2006 / Picasa Template by www.paulvanroekel.nl
    Any help would be appreciate. Thanks much,
    Alexis

    Hi,
    I have tried inserting the script that you have pasted above as HTML on my test site and it worked.
    What happens is whenever you insert something as HTML, Muse by default creates a div tag and places the content within the div tag. What I have done differently is I have inserted the JS with in the <script> tag and it has inserted the Javascript in this manner,
    I beleive that since this a browser re-direct script that you are using, you would like to place this in the head section and not in the body tag, however, that is certainly not possible using Muse as it does not allow access to the code it generates as a muse file.
    You, can still export the pages as HTML and make the appropriate changes there before uploading to the server.
    Hope that helps.
    Regards,

  • Embedding javascript with xslt generated html

    hi,
    I'm using xml/xslt with xdk to generate html with embedded javascript. The solution works except that I am having problem with proper inclusion of the javascript file. I uset this line:
    <xsl:template match="/">
    <head><title>Screener</title>
    <!-- Javascript declarations -->
    <script language="javascript1.2" src="./screener.js">
    </script>
    I have tested the xslt sheet via IE5 and msxml3 processor and it works fine including loading the javascript file.
    Now using XDK and servlet it doesn't seem to retrieve the javascript file so all javascript function do not work.
    I would appreciate any help.
    thanks,
    ted
    null

    hi brian,
    All those files are in same directory i changed the .xsl file to be i am changing at the right place.
    However, as backup i tried the following:
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <script language="javascript1.2">
    <![CDATA[
    <!--
    var isNav4, isIE4;
    if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
    isNav4 = (navigator.appName == "Netscape")? true:false
    isIE4 = (navigator.appName.indexOf("Microsoft" != -1)) ? true:false
    if (isNav4) { document.write("<B>It's a Navigator!</B>");}
    else { document.write("It's an Explorer!");}
    //== shared global variables
    function _alert(e)
    alert(e);
    -->
    ]]>
    </script>
    and here is the html output:
    <html>
    <head>
    <title>Screener</title>
    <script language="javascript1.2">
    &#60;!--
    var isNav4, isIE4;
    if (parseInt(navigator.appVersion.charAt(0)) >= 4) {
    isNav4 = (navigator.appName == "Netscape")? true:false
    isIE4 = (navigator.appName.indexOf("Microsoft" != -1)) ? true:false
    if (isNav4) { document.write("&#60;B>It's a Navigator!&#60;/B>");}
    else { document.write("It's an Explorer!");}
    //== shared global variables
    function _alert(e)
    alert(e);
    -->
    </script>
    </head>
    So everything is being output correctly except for <!--; is there a way around this problem? If I leave out <!-- --> it works but
    i was wondering if the present behavior is what's supposed to happen.
    thanks,
    ted
    null

  • Embedded Javascript and CSS removed from mail

    Hey folks,
    I wrote a small app to send a html email to myself.
    When I sent it inline all the embedded javascript and css were removed.
    When sent as a .html page attachment and opened from within the browser (Gmail, Mozilla 2.0)
    all the embedded script and css were gone. However when downloaded to the machine, it was all there.
    Looks like this is a browser issue, would anyone know how to get around it?
    It's so that I can have collapsable headers in my email message.
    Thanks,
    Mark.

    Hi Tony.
    Yes, it's possible. Read [Wiki WPC FAQ|https://wiki.sdn.sap.com/wiki/display/KMC/WebPageComposer-FrequentlyAskedQuestions+%28FAQ%29#WebPageComposer-FrequentlyAskedQuestions%28FAQ%29-WhataboutusingstandardHTMLpagesinWPC%3F].
    KM supports relative links in HTML documents so it may be necessary include any dependent files in the same folder as the HTML document.
    In case of a web page and its dependent files are stored in different folders you need editing the source html code:
    1. use Portal Drive and any text editor (I prefer Notepad++. It has the feature "Search and Replace in files") to open the html source file.
    2. search for links to dependent files and add the following pattern: /irj/go/km/docs//<path to an dependent file>/ before a filename, for example:
    You have a web page with css file. The page is stored in documents repository under the folder with ID old_pages. The css is resides in css folder.
    So the existing code
    <LINK REL=STYLESHEET TYPE="text/css" HREF="css/style.css">
    should be replaced with the
    <LINK REL=STYLESHEET TYPE="text/css" HREF="/irj/go/km/docs//documents/old_pages/css/style.css">
    Best regards,
    Aliaksandr

  • 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

  • Web page embedded Javascript has stopped working

    Hi,
    Since updating somewhere around v5 or so, some embedded Javascript no longer works, despite ticking the "Allow Javascript" box.
    Was hoping that v9 would have fixed this problem, but no.
    Thanks

    Thanks cor-el, but not being computer literate I do not understand what you mean; neither do I understand any of the responses posted under http://kb.mozillazine.org/Resizing_oversize_window
    What annoys me intensely is that there is an existing option to tick the box to a) "Enable JavaScript" and within that to b) "Move or resize existing windows".
    What is the point of those tick boxes?
    Do not mean to waste your or anyone else's time, but am ready to leave FF for just that simple problem. The way in which I open FF is such that I use an internal own-design web page with positions itself exactly where I want it on my large screen. This option has now been removed by FF; it works fine in IE.
    Thanks to all for trying to sort this out, it is a FF problem that can surely be sorted?

  • Embedding javascript in a sql query

    Hello everybody,
    that is the question, how can a JavaScript function like: getElementById
    can be (if at all be embedded in a sql query? the thing is that when I do the query
    SELECT firstname, lastname etc
    WHERE branchnumber = here is where I want to include the javascript function so that it gets the value from a manually inserted value in a text field that the user enters.
    the item name is P3_X (which is a textfield)
    I would like to put something like
    WHERE branchnumber = getElementById('P3_X').value);
    but it does not parse it ..
    so I may be close but there is something that is not right

    Thank you for your good will Mennam from Turkey. I have found another way of solving it, in the data expresss edition each item you create carries the name you give it, then you make a reference to it on your SQL query, that item can be a combo box, a text field, etc any means for the user to enter data. that works fine.a reference as easy as this one: WHERE ( bookings.branchnumber = :PTEXT )
    Alvaro

  • Zimbra Security Question:  Allow / Block embedded javascript or tags?

    Technical requirement: Ability to send in plain text and rich text and HTML (limited HTML, no javascripting or harmful tags)
    Can javascript or tags be embedded in an email through the Zimbra interface?
    Also, Zimbra has developed ALE (AJAX Linking and Embedding), a technology that allows users to embed applets into e-mail. For example, users can share a live spreadsheet in e-mail, rather than sending copies back and forth. Are applets a potential security risk? Can they be blocked?
    Thanks for your time.

    Hi guigs2,
    if there is no problem in open the bug ticket being a simple user I'll report by myself (if I haven't misunderstood you). (Confirm this and I'll do myself).
    About the AJAX problem, here we have a sample test that works after toggle the preference:
    http://www.w3schools.com/xml/xml_http.asp
    I know about noscript and I don't like it. I prefer to do manually (those measures and more). What bothered me is that even toggle the preference, what in the past did the job of stopping the execution of scripts, now doesn't. In about version 24 it was only happening to event listeners not being blocked (used nowadays for dynamic events assignments). Now is with every javascript code.
    About the tracking methods, I'm aware of HTTP tracking without any need of javascript. Even a simple "knock knock" on any kind of server leaves a trace.
    I was just pointing that this preference stopping doing its job (stopping scripts executions) has the worst sceneario in a security way with XMLHttpRequest calls.
    But one of the things that bothers me too, and it is not related to tracking, is that, in humble machines as mine, some javascript codes make drop whole performance and the preference toggle now does nothing, so the script keeps running without being able of doing anything and sometimes you don't have the option to load a page without javascript because you need some feature of that page that requires javascript what becomes "all or nothing".
    Regards.

  • How do I make an embedded Javascript element(embedded MS Excel chart) automatically refresh so that viewers do not have to refresh the entire page to get updated information.

    I am creating a web page that features an embedded chart made by MS Excel. I would like the chart to automatically update(refresh) to show viewers live information without having to refresh the entire page. I have found that there is a way to enable this through Excel but with my current subscription cannot access that feature. I am hoping that there is a way to achieve this using Adobe Muse CC. If it is not possible, I would like to know if there is a way to add a "refresh" button that refreshes only the embedded section(Excel Chart) of the page for viewers to use manually. Thank you for your help.

    Update! The embedded spreadsheet is actually embedded using HTML rather than javascript.

  • 3D Embedded JavaScript Disabled in Acrobat X

    I usually work with Acrobat 9 (Reader/Pro) and have created a 3D PDF with a lot of javascripting at the document level and 3D annotation level.  I recently tried viewing the PDF in Acrobat X and discovered that all the functionality that I encoded in the 3D annotation has been stripped.  The document level javascripts seem to all work, including the one's that accesses the 3D context.  Has anyone encountered this?  Is there a work around?

    It looks like the administrators have selectively blocked some 3D JavaScript functionality on our latest Acrobat Reader X install.  I noticed that javascript that are embedded with the 3D annot has been disabled on Reader X.  However, 3D scripts executed at the PDF document level does work, i.e. when you access the 3D context like:
         context3D = getAnnots3D(0)[0].context3D;
    Can you set up 3D event handlers at the PDF document level?  For example, can you do something like this?
         context3D = getAnnots3D(0)[0].context3D;
         myMouseHandler = new context3D.MouseEventHandler();
         myMouseHandler.onEvent = function(event) {
              console.println("test");
         context3D.runtime.addEventHandler(myMouseHandler);
    I'm away from my work computer (i.e. no access to Acrobat Pro) so I can't try this out.  Will this work?

  • Embedding JavaScript rendered controls into a BSP page

    Hello,
    I want to add a JavaScript rendered grid control from the Ext JS framework into a tab of a BSP application.
    It looks however that the layout management code behind BSP (it has to manage its tab container somehow)
    interferes with the JavaScript of the Ext JS library.
    My question is how to embed such a non-trivial JavaScript software into a BSP page without interfereing with the internals of the BSP rendering engine.

    Now in more detail:
    I am talking of adding a sophisticated grid control, which itself is implemented with the Ext JS JavaScript framework.
    Here is a simple grid of that kind:
      [http://www.sencha.com/deploy/dev/examples/grid/array-grid.html]
    To give you an impression of the amount and complexity of the code, here is the user code which calls the Ext JS framework:
      [http://www.sencha.com/deploy/dev/examples/grid/array-grid.js]
    The present embedding is of the kind:
    (code sample omitted, because the forum software dies with a post error if leave it)
    This is included into a BSP tabcontrol tab.
    In Firefox we see that the ext-grid is hidden by some BSP JavaScript logic which gets delivered with the final pages in the user's browser.
    In Internet Explorer we see a bug:
      file: sapUrMapi_ie6.js, line 4729, function sapUrMapi_PcTabSeq_draw, error: style.display is not an object  (it tries to check the display attribute).
    which stops execution and such has the lucky effect of not hiding the grid, so it display as intended from our part.
    I have researched some examples on the net, where AJAX code was embedded into a BSP application and saw that this code is often structured differently, using documentHead, documentBody und content HTMLB Elements, but also sometimes puts the JavaScript just at the end like in the code fragment given above. Alas I lack a proper description and guidelines when to use what element and where to put what JavaScript (and CSS)  into the various sections of a BSP htm file.
    Regards,
    Marc van Woerkom

  • Embedding javascript files

    I need to embed a Javascript file in the body of all my Apex pages, in the form
    <body>
    <script type="text/javascript" src="myscriptfile.js"></script>
    </body>This is easy to do with a bog standard HTML page but I'm not sure how to do it in APEX. So I have 2 questions -
    1. What would be the best way to accomplish this? I was thinking along the lines of embedding this HTML in my application template (obviously without the BODY tags). Is this the best way to go?
    2. Where on my server/PC do I save the myscriptfile.js file so it gets picked up by all my APEX pages?
    Cheers
    Antilles

    This will depend on where you store your javascript file:
    1. if you store it in the apex image directory (/i/) you can put it in the page template header (do it for all page templates):
    &lt;script src="#IMAGE_PREFIX#your_javascript_files/javascript_file.js"  type="text/javascript">&lt;/script>2. if you upload the file into your workspace and do not associate it to an application you could put this into the page template header (do it for all page templates):
    &lt;script src="#WORKSPACE_IMAGES#javascript_file.js"  type="text/javascript">&lt;/script>or if you associate it with an applciation
    &lt;script src="#APP_IMAGES#javascript_file.js"  type="text/javascript">&lt;/script>Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Where can I buy a good, affordable Mini-DV camera in Orange County?

    I know 3CCD is the best for the time being, but I can't afford a 1200 camera. Where's a good place that'll have a good selection on Mini DV camcorders that I can play with, get to feel, etc. I'm in the Orange County area, or if anyone knows of any good websites. Thank you!

    I have been reading reviews regarding the new CMOS cameras and it turns out they perform as well as 3 chip cameras. The advantage of CMOS is you need much less light than the thirst for light triple chippers and the color green is now accurately reproduced by a single CMOS, something single CCDs could not do. If you can locate one of these babies in the Mini DV flavor than Bob's your uncle. Unfortunately the masses have spoken and mini DV is slowly becoming extinct.

  • Embedding Javascript and HTML nto Adobe Muse

    I am trying to embed javascript for dynamic text into my Adobe Muse site but I can't seem to get it to work.
    Here is my code:
    HTML:
    <span id="spanDate"></span>
    Javascript:
       <script type="text/javascript">
       var months = ['January','February','March','April','May','June','July',
    'August','September','October','November','December'];  
    var tomorrow = new Date();
    tomorrow.setTime(tomorrow.getTime() + (1000*3600*24));  
    document.getElementById("spanDate").innerHTML = months[tomorrow.getMonth()] + " " + tomorrow.getDate()+ ", " + tomorrow.getFullYear();
       </script>
    I am placing the Javascript under metadata in the page properties. I tried on the individual page and on the master page. And I am placing the HTML with the Insert HTML option.
    I can't seem to get the code to populate properly though. I tried the same code on a test site and it worked just fine.
    Any and all advice is greatly appreciated!

    It seems you have some blank spaces at the end of each line in your javascript code. Try checking for that.
    In an unrelated issue I found another error in your CSS file. In your moduleStyleSheets.css file on line 1253 you have an extra ; on the end.
    border-bottom: 1px solid #eee;;
    Should be:
    border-bottom: 1px solid #eee;

  • How to Instal the etsy Mini store on my Iweb website?

    Hi
    I'm a Fashion designer and I would like to link the etsy shop I have to my iWeb site. Does anyone know how?
    thanks!
    Miriam
    www.mir-handbags.com

    If you want it to appear as though it is part of your website, add it to your navigation and and link this to the store with an external hyperlink.
    Set this link to open in a new window so that people can get back to your site without having to hit the back button in their browser.

Maybe you are looking for