Web Gallery Pages Contain Garbage if Referencing External Scripts

Like many, I've been customizing the very limited web gallery templates that ship with Aperture, but in addition the many annoyances mentioned elswhere (generation of non-compliant HTML, deletion of certain content, reformatting, altering the DOCTYPE, etc.) I've encountered a serious problem that makes rich customization a chore.
Adding a script tag that references the Google Maps API causes Aperture to generate garbage in certain web gallery pages containing the tag.
Placing
<script type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ANYKEY"></script>
into the HEAD element (with any api key, including an invalid one) causes the element to be replaced with
<SCRIPT type="text/javascript" src="http://maps.google.com/maps?file=api&v=2&key=ANYKEY"></SCRIPT><SCRIPT src="http://maps.google.com/mapfiles/maps2.70a.api.js" type="text/javascript"></SCRIPT><STYLE type="text/css" media="screen">.gmnoscreen{display:none}</STYLE><STYLE type="text/css" media="print">.gmnoprint{display:none}</STYLE>
in most pages, and causes all of the second detail page (that's right, only the second page!) to be replaced with
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><STYLE type="text/css" media="screen">.gmnoscreen{display:none}</STYLE><STYLE type="text/css" media="print">.gmnoprint{display:none}</STYLE><STYLE type="text/css" media="screen">.gmnoscreen{display:none}</STYLE><STYLE type="text/css" media="print">.gmnoprint{display:none}</STYLE><STYLE type="text/css" media="screen">.gmnoscreen{display:none}</STYLE><STYLE type="text/css" media="print">.gmnoprint{display:none}</STYLE></HEAD></HTML>
which results in a blank page.
The styles gmnoscreen and gmnoprint come from Google, so apparently, the code that generates the web pages from the template actually reads the Google Map API file, triggering side effects that write into (and spoil) the page being generated.
Sadly, I've found no clever workaround for this bug. Aperture strips out SSIs (along with all HTML comments) so conditioning inclusion of the script tag on being on the server won't work, and substituting a page (that's only) on the server that redirects to the Google URL fails (probably because of some limitation of the Google API). The only workaround I've found is to generate pages with a place holder for the bug-triggering script (actually just the src attribute will do) that is then replaced in the files generated on the server (which is easy enough to do with BBEdit).
Note that inclusion of the offending script also causes some misbehavior in Aperture itself when previewing the pages.
Has anyone had a similar experience?
Any suggestions on a better way to prevent the script tag from being read by Aperture when it generates the pages?
This would seem to be a frank bug in the Aperture web gallery page generation code, which should simply be copying all script tags to the server files unchanged -- certainly without traversing the src url and thus executing any code they contain.

It's hard to imagine what the designers intended then. No interactive web pages? Almost any code included in or referenced by the templates can result in serious and hard to detect bugs.
For example if I have an element containing
... id="someid" class="styleA"...and have
document.getElementById('someid').className='styleB';somewhere in code that executes on load, then the Aperture-generated files will change the element to read
... id="someid" class="styleB"...
This is clearly a bug that needs to be fixed. The underlying model of what Aperture is doing certainly is not meant to include execution of code in page templates as part of he page generation process. Such code is only intended to run when the page is built in the client's browser.
I also don't buy the notion that this isn't really such a big problem since one can always use the features of a code editor like BBEdit to repair the problem in generated pages on the server. Such problems (as the above example illustrates) can be very hard to detect in the first place, and, more importantly that can't possibly be the model of "workflow" that Apple intends, since it means that every time I make photo related changes in Aperture (e.g. simply rearranging the photos in my gallery, or changing a caption) I have to run a development tool to fix the damage that such an update will do to the code in the generated web pages. They're hardly "templates" if their products need to be fixed every time they're used.

Similar Messages

  • Installing Counter on Web Gallery Page(s)

    Is it possible to install a 'counter' on iPhoto 08's new Web Gallery pages -if so how does one go about doing that?

    You can create a simple iWeb page with a counter and with a widget link to the iPhoto gallery like you see in this test page.

  • VS2013 Page Inspector does not use external script files

    If I use an external javascript file, the Page Inspector does not appear to run the javascript (as the styles created during runtime are not visible). If I run the web page outside of VS (e.g. IE) then it works.
    <script type="text/javascript" src="border.js"></script>
    However, if I use an internal script, the styles are created as expected.
    <script type="text/javascript">$("div").css("border", "2px solid red").add("p").css("background", "yellow");</script>
    Is the Page Inspector supposed to use external script files, and if not, are there plans to support it?

    Hi,
    Thank you for your post.
    I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
    the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    Because Page Inspector feature is more related to ASP.NET Application/Technology, in order to resolve your issue better,
    I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/  for better solution and support.
    Best regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • IPhoto '08 & editing a Web Gallery page

    Once iPhoto generates and uploads a Web Gallery, can the main page be edited??
    Specifically, in the upper left corner is a rectangle with "My Gallery". I would like to edit that text - "Bob's Gallery" or "Susan's Gallery", etc.

    D2C:
    Yes you can. Go to iPhoto's Preferences and in the Web Gallery section you can rename the gallery title.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Web-Service WSDL contains no messages in External Definations

    Hi All,
    I am working on IDOC->XI->Web-method scenatio.
    Web-method team has given me attached WSDL. this WSDL is not showing any message in Message Tab while uploading WSDL in External Definations Tab in IR.
    Is it possible to send data to this type of Web-method with receiver SOAP Adapter?
    Because in /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2 weblog we can see messages in message tab while uploading message.
    Please help.
    Regards
    **********WSDL***********************
    <?xml version="1.0" encoding="UTF-8"?>
         <wsdl:definitions name="GE_OC_SalesOrder_Source_Services" targetNamespace="http://3.209.120.84/"
                   xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                   xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
                   xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
                   xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                   xmlns:tns="http://3.209.120.84/">
         <wsdl:types>
            <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://localhost/GE_OC_SalesOrder_Source/Services/publishSalesOrderCanonical" xmlns:tns="http://localhost/GE_OC_SalesOrder_Source/Services/publishSalesOrderCanonical">
              <xsd:complexType name="__publishSalesOrderCanonicalInput">
                <xsd:sequence>
                  <xsd:element name="_x0078_mlString" nillable="true" type="xsd:string"/>
                </xsd:sequence>
              </xsd:complexType>
              <xsd:complexType name="__publishSalesOrderCanonicalOutput">
                <xsd:sequence>
                  <xsd:element name="status" nillable="true" type="xsd:string"/>
                  <xsd:element name="status_message" nillable="true" type="xsd:string"/>
                </xsd:sequence>
              </xsd:complexType>
            </xsd:schema>
         </wsdl:types>
         <wsdl:message name="publishSalesOrderCanonicalInput">
              <wsdl:part name="_x0078_mlString" type="xsd:string"/>
         </wsdl:message>
         <wsdl:message name="publishSalesOrderCanonicalOutput">
              <wsdl:part name="status" type="xsd:string"/>
              <wsdl:part name="status_message" type="xsd:string"/>
         </wsdl:message>
         <wsdl:portType name="GE_OC_SalesOrder_Source_ServicesPortType">
              <wsdl:operation name="publishSalesOrderCanonical">
                   <wsdl:input message="tns:publishSalesOrderCanonicalInput"/>
                   <wsdl:output message="tns:publishSalesOrderCanonicalOutput"/>
              </wsdl:operation>
         </wsdl:portType>
         <wsdl:binding name="GE_OC_SalesOrder_Source_ServicesBinding" type="tns:GE_OC_SalesOrder_Source_ServicesPortType">
              <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
              <wsdl:operation name="publishSalesOrderCanonical">
                   <soap:operation soapAction=""/>
                   <wsdl:input>
                        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://3.209.120.84/GE_OC_SalesOrder_Source.Services" use="encoded"/>
                   </wsdl:input>
                   <wsdl:output>
                        <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://3.209.120.84/GE_OC_SalesOrder_Source.Services" use="encoded"/>
                   </wsdl:output>
              </wsdl:operation>
         </wsdl:binding>
         <wsdl:service name="GE_OC_SalesOrder_Source_ServicesService">
              <wsdl:port name="GE_OC_SalesOrder_Source_ServicesPort0" binding="tns:GE_OC_SalesOrder_Source_ServicesBinding">
                   <soap:address location="http://3.209.120.84:5555/soap/rpc"/>
              </wsdl:port>
         </wsdl:service>
         </wsdl:definitions>

    Hi Stefan,
    Thanks for reply. You are true WSDL is RPC style.
    But if you Observe My WebService WSDL following lines
    <wsdl:message name="publishSalesOrderCanonicalInput">
    <wsdl:part name="_x0078_mlString" type="xsd:string"/>
    </wsdl:message>
    <b>There is only one part(field) but we wants to send 50 field XML.</b>
    If you see Note:856597 & attached WSDL in Note getQuote_rpc.wsdl following lines
    <message name="GetTradePriceInput">
    <part name="tickerSymbol" type="xsd:string"/>
    <part name="time" type="xsd:dateTime"/>
    </message>
    <b>There are two part(fields) for two XML fields as in Note.</b>
    Is it possible to Pass XML message in this type of web-service?
    If possible then How can I send?
    Please help....
    Best Regards

  • Possible to divide Web Gallery into multiple pages?

    I'm getting complaints that the web gallery page is taking too long to load. I've got 25 albums on the page. On my connection it takes about 30 seconds to load, but I have heard of it taking several minutes.
    I think that if I could limit each page to 10-12 albums, it would improve the speed.
    Thanks...
    Message was edited by: papasteveo

    papasteveo:
    Welcome to the Apple Discussions. There's no way to split it up with iPhoto. However, you can create an iWeb Albums page and add the web galleries there with the Web Widget tool and create a gallery page like this. On second thought that's not a whole lot better because that will take the view to the first gallery rather quickly but once they opt to go to the main gallery all will have to load again.
    It might work if you put a note on the iWeb page for the user to use the back arrow in the browser to return to the iWeb page and then select the next gallery. They may never have to enter the main gallery that way and suffer loading of all the individual galleries.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • How can I add linkable urls when making a web gallery

    I need linkable urls on a web gallery page - ie opening in the browser, preferably in a new window/tab.
    I thought I had it by manually editing:
    <contactEmail>url:http://mysite.co.uk</contactEmail>
    This *does* load Firefox, but the appended 'url:' is still there.
    The xml <sourceURL>http://mysite.co.uk</sourceURL> is not picked up by the code anywhere.
    Is there a hack to do this, or even a legitimate way!

    hello?? is there anybody out there?
    i am starting to wonder if i am asking my question about (an
    adobe product regarding Photoshop and flash issue) in the right
    platform.
    is there anybody here from ADOBE can be concerned about an
    Adobe user's question? am i too impatient that i have expected to
    hear for less than a day?
    is there anybody out there?

  • Variable weblinks in Flash web gallery title & caption fields

    I know that one can put a fixed URL as custom text into a LR flash web gallery title or caption fields and simply click on that field in a gallery and go to that website. However, that URL is fixed and shows up for all images in the gallery. I would like the ability to have that URL vary by image. That is, I want to be able to setup custom text for a title or caption gallery field that inserts an image's certain metadata value(s) within a URL string. E.g., be able to enter for these LR Flash web gallery fields custom text of the form:
    #A href="{title}">click here for foobar#click here for foobar#/A#
    where "#" = enclosing html brackets
    and where {title} is an image's LR title metadata (e.g., "http://www.foobar.com")
    Left clicking on such a custom field should take the browser to webpage whose URL is held in the current image's title metadata.
    This almost works now (LR v1.4) ... Such a custom text title displays correctly (i.e., just an underlined "click here for foobar"). And if I right click on it and choose "copy link", the correct URL from that image's metadata is in fact there. Unfortunately a left click just doesn't take the browser there.
    This capability would be useful for providing image info which either won't fit (e.g., extended caption info) or is technically not easy to place (e.g., a dynamic *.mov pano view) on an image's web gallery page.

    Just a comment about the web link in general -- Make sure your URL link actually works in the live /internet world. I have found that it doesn't. It looks great on your computer but when you actually build the web gallery, the link doesn't go anywhere.

  • Web Gallery created in Bridge not displaying first picture correctly on a Unix server

    Hi Guys, Am really stumped by a problem that has surfaced after moving from a Windows web hosting server to a Unix hosting platform. The Web Galleries created in both Bridge CS4 and CS6 display and operate as expected on the Windows server. However, having moved to a Unix hosting platform, I observe an odd behavior when going to the Web Gallery page. When the gallery loads, it displays the first image offset. This is always the top left hand quarter of the picture, offset to show in the bottom left hand corner, leaving the top left and right quarters and the bottom left quarter black (I use quarters to best describe the situation, though it really does seem as if the view port of the Gallery is indeed quartered for this first image).
    If I click on the second image in the series, it appears full size. The same happens if I click on the "Play" button. If I return to the first image manually, it displays full size.
    The phenomenon is apparent in Firefox 19.0.2, IE9, Opera and Chrome, all of the latest build.
    Can anyone throw some light on why this phenomenon is occurring and better still, suggest a cure?
    Grateful for all and any help anyone can give.
    Cheers, Daviddhg

    Hi Guys, This turned out to be a Unix server-side issue. Apparently the compression software being used by the ISP on this server was in some way incompatible. The ISP turned the compression off and the problem was cured.
    Cheers, Daviddhg

  • How to export a lightroom web gallery into dreamweaver

    I would like to know how to integrate a slideshow 'gallery flash lightroom" into a dreamweaver CC page which already exists
    I'm not an IT person. So if you have a simple way...
    I don't find any bottom "export into dreamweaver" in Lightroom...
    So if someone can tell me how to proceed.
    Thanks per advance.
    Florence

    Thanks for your answer.
    Yes. I can open the web gallery page into dreamweaver : I have nammed this page metaphoris.html
    But I don't want to use this page as a page in my web site.
    I would like to integrate the content (just the slideshow) into the body of an existing page
    nammed Artgallery.html
    If you know
    - which part of the code I have to copy and paste into my page (if it's the right thing to do?)
    - and if I have to relocate some files r(essources? images?)
    Thanks per advance ;-)
    Florence

  • Photoshop Web Gallery

    The Web Gallery pages created by Photoshop also creates text boxes for description, Title so on and so on. But when you add text to the individual pages, the descriptions and so on don't appear when posted to the web. What gives? Can anyone offer some guidelines? Tutorials perhaps?
    here's a link to the page in question: http://dragondezynz.com/2011%20New%20Year%20Party%20at%20Location%201980.htm
    I typed descriptions, titles in every page, posted to the website and reviewed. The first page was correctly titled but all pages after that had the same description and title as the first page.
    Any help would be appreciated.
    Thanks in advance
    Lance

    That's a good question. A Flash on top of a flash. The only
    thing I can think of at present is to divide your page - perhaps
    with a frame --- or flash top (new flash middle) and flash below. I
    realize that sounds very elementary but that's what I'd try first.
    The diffculty of course is you probably didn't know you
    wanted to put a flash file inside a totally flash site. The best I
    can do. Sorry
    Bill w

  • Captioning and Keywords NOT retained on download of photos from Web Gallery

    I noticed that the CAPTIONING information for photos on a web gallery ARE viewable while on the web gallery page(clicking on info), but are NOT included if you choose to download the photo. Not seen in the photo on download by viewing EXIF info, or "get info" from the Finder, nor available if I reimported the downloaded photo back into iPhoto 8.
    Am I missing something regarding the way to store information. I had uploaded a lot of photos with important information for family members downloading embedded in the captioning??
    BTW, the keywords ALSO were not downloaded or retained.

    Scott:
    When published to a web gallery that information is not added to the file but to the slideshow files. The only time that info is written to the files is upon export with the checkbox selected to add Title and Keywords and Comments.
    Even if the metadata is written to the files at the time they are imported into iPhoto, the files that get uploaded to the iDisk have that metadata stripped out of the file.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 08 libraries. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Iphoto not uploading to Web Gallery - all photos "pending"

    I added some more photos to my existing Web Gallery folders, plus created a new one by dragging them into the Web Gallery folders. However, they all appear as "pending" and are not appearing on the web. I've stopped / restarted Iphoto and my Macbook. I've tried removing and adding other photos to the galleries. I've moved the "com.apple.iPhoto.plist" and "com.apple.iPhoto" files to the desktop as suggested in another post. None of these have worked.

    Yes, and the icons next to the web gallery names alternate between an arrow that goes round in circles, something that looks like a pie-chart / clock, and one that looks like a wireless transmission icon. Hope you know what I mean.
    When I open the web gallery page nothing has changed. I even left it going overnight.

  • Web gallery sharing

    i have several albums i've created in my web gallery (of course i have a dot mac account). The problem i have is that when i want to share an album with someone i usually only want to share one specific album, but there always seems to be the "my gallery" button in the upper left hand corner of the album i share that allows people access to all my albums. any ideas? THANKS!
    frank

    open the galleries you do not want to share in iPhoto and click on teh settings icon (the gear at the bottom), make sure Advanced is selected and click on the "hide album on my web gallery page"
    LN
    Message was edited by: LarryHN

  • Lost my Web Gallery

    Sometime after the last upgrade of QT and loading the latest Flash Player I seem to have lost the ability to load my web gallery pages in Safari.
    They load in Firefox.
    Anyone have an idea what might have happened?
    OS 10.4.11
    PowerBook 1.25 GHz G4

    I am embarrassed.
    I figured out the problem.
    Simple >> I emptied the Cache on Safari.

Maybe you are looking for

  • Unable to record just audio with Mac Mini - no isight

    I am trying to use Podcast Capture on a mac mini connected to a generic monitor (no isight) and it is unable to initialize the audio subsystem. I am assuming this has to do with it needing a video camera, but surely that isn't required to record an a

  • Select statement from "v_filename_txt" inside cursor

    Hi, I've got a store procedure procedure that create parametric tables to upload from csv files. I have collect into v_filename_txt variable the parametric table name where I would like to make some select. I have write the following code but I can't

  • Error in sending message

    I am using solution manager 4.0 connecting it with ECC6.0. I am getting the following error message when I try to create a message Error in local message system; message 009999000038 not complete Message no. BCOS030 I have already followed the sap no

  • How can I set the phone to request the passcode after being turned off

    My old phone had this feature..I wonder if it exists for the iPhone 4 S Thanks

  • How do I download AirPort Utility 1.3.3

    I have and iPad running iOS 6.1.3 and I just bought an AirPort Express. I went to the support page and it has a link to the 1.3.3 version, but clicking on the link takes me to the ITunes store which has 1.3.4.  How do I get 1.3.3?