ID-CS4: Trouble observing XMLTag changes to page elements (or rather their stories)...

I have created a small project that uses the same approach to monitoring stories as the one used in the GotoLastTextEdit sample project.
The GotoLastTextEdit project example does the following:
- Sets up a responder that monitor open/close signals for documents basically to ensure stories in existing documents gets observers attached.
- The responder also reacts to the NewStory/DeleteStory signals to attach observers to newly created stories.
- The observer simply listen for IID_ITEXTMODEL events on the stories.
Since I'm interrested in xml tagging related changes and not changes to the text, I've changed the IID_ITEXTMODEL to IID_IIDXMLELEMENT. I'm however still looking for events on the TextStoryBoss.
This approach seems to work. If I create a new document and add some textframes i get notifications whenever I tag/untag/change (tagging) one of them. The really weird part is that if I open a previously saved document nothing works. I get no notifications neither for existing nor for new textframes. Debugging reveals that the observer seems to be attached correctly for both existing and new stories.
If I change IID_IIDXMLELEMENT back to IID_ITEXTMODEL and listen for changes to the text everything works as expected for both new and existing documents.
So how do I get IID_IIDXMLELEMENT notifications to work for existing documents?
Any clues would be helpful...
Additional info: This was only tested on Windows, InDesign CS4.

I'm confused by your post and code.  Adobe has a function to do this.  In the Insert Toolbar under the Tab "Forms" there is an option to create a jump menu.  The only options that menu gives you is the same window or a frame on the page (a very outdated action looking at it now).  But with basic knowledge of links you insert the menu and you will get code like:
  <select name="jumpMenu" id="jumpMenu" onChange="MM_jumpMenu('parent',this,0)">
The "parent" denotes that this will open in the same window.  If you change that to "blank" then it will open in a new window.  A "Go" button is optional and also available in the DW GUI when you set up a jump menu.
http://www.w3schools.com/tags/att_a_target.asp

Similar Messages

  • Change Master Page based on Text Content

    Hello,
    I have found a few examples relating to changing Master pages based on Style.
    However, I would like to change all Pages that flag "True" with the query of the "2-1134" to to "Master-C" for example.
    I have 12 master Pages with different strings that I don't mind editing the script to make work.
    The document is close to 1,000 pages.
    I am having trouble merging so many different scripts into something that will work.
    Platform: Indesign CS4 6.0.5 - OS X (Intel)
    Thank you so much for your input, help and guidence.

    This is what layers are for. Open the Layers panel and make at least one more layer. Put the graphic on the lower layer and the footer on the upper layer.

  • CSS problems in CS4 with multiple images on a page...

    I seem to have a ton of questions going in this forum, sorry if it's painful.
    Here's my latest issue.(DW CS4)
    I created a blank html page and linked a CSS file to it. I dropped a bunch of images into the body and wrapped them in a div with an id of "thumbnails"
    I clicked on my img tag right below the Design window and clicked the "new css rule" button in the CSS Styles window and gave my images a margin of 40 px.  I clicked "OK" and my changes took effect in the Design window, but when I previewed it in the browser (Firefox and IE) none of the CSS was taking effect, all the images were still crammed together. Same thing for the "Live View" Button, I'm not sure what happened, or why the CSS won't take effect.
    Can somebody help me?
    Thanks all,
    Aza

    My HTML follows-----
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <link href="../CssFiles/oneColLiqCtrHdr.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <div class="oneColLiqCtrHdr" id="Thumbnails"><img src="../images/Jewelry/Thumbnails/T_Bracelets/Bellarri_ColoredStone_Over10k_1.jpg" width="166" height="150" alt="Bellari" /><img src="../images/Jewelry/Thumbnails/T_Bracelets/CynthiaGregg_Gold_Over5k_1.jpg" width="178" height="150" alt="Cynthia Gregg" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/FrankRuebel_BestBracelet_2501_5k_1.jpg" width="150" height="150" alt="Frank Ruebel" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/Gabriel_BestBracelet_2501_5k_1.jpg" width="156" height="150" alt="Gabriel" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/GeralynSheridan_FashionBridge_500Under_1.jp g" width="178" height="150" alt="Geralyn Sheridan" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/Jyes_Legends_Over5k_1.jpg" width="150" height="150" alt="Jyes Legends" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/Maevona_BestBracelet_5001_10k_1.jpg" width="166" height="150" alt="Maevona" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/SalPraschnik_Legends_Over5k_1.jpg" width="208" height="150" alt="Sal Praschnik" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/Sara_BestBracelet_Over10k_1.jpg" width="156" height="150" alt="Sara" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/Starhaven_Silver_501_1k_1.jpg" width="166" height="150" alt="Starhaven" />
      <img src="../images/Jewelry/Thumbnails/T_Bracelets/SylvaCie_BestBracelet_Over10k_1.jpg" width="150" height="150" alt="Sylva Cie" /></div>
    </body>
    </html>
    *************CSS FOLLOWS********************
    @charset "utf-8";
    body {
        background: #666666;
        margin: 0; /* it's good practice to zero the margin and padding of the body element to account for differing browser defaults */
        padding: 0;
        text-align: center; /* this centers the container in IE 5* browsers. The text is then set to the left aligned default in the #container selector */
        color: #000000;
        background-color: #000000;
    #jewelryFrame {
        font-family: Georgia, "Times New Roman", Times, serif;
        color: #CCC;
    #jewelryFrame p {
        font-size: 12px;
        padding-bottom: 75px;
    .oneColLiqCtrHdr #container {
        width: 100%;  /* this will create a container 80% of the browser width */
        background: #FFFFFF;
        margin: 0 auto; /* the auto margins (in conjunction with a width) center the page */
        border: 1px solid #000000;
        text-align: center; /* this overrides the text-align: center on the body element. */
        background-color: #000000;
        max-width: 960px;
        min-width: 800px;
    .oneColLiqCtrHdr #header {
        background: #DDDDDD;
        padding: 0;
        width: 960px;
        height: 141px;
        background-color: #000000;
        color: #CCA4A5;
        font-size: 11px;
        font-style: normal;
        font-family: Goudy Old Style;
        background-image: url(../images/CPJ-Header.png);
    .oneColLiqCtrHdr #header h1 {
        margin: 0; /* zeroing the margin of the last element in the #header div will avoid margin collapse - an unexplainable space between divs. If the div has a border around it, this is not necessary as that also avoids the margin collapse */
        padding: 30px 0; /* using padding instead of margin will allow you to keep the element away from the edges of the div */
        color: #FFFFFF;
    #navbar {
        background: #999999;
        height: 29px;
        width: 960px;
        background-color: #000000;
        background-image: url(../images/CPJ-NavLT.png);
        background-repeat: repeat;
    .oneColLiqCtrHdr #container #navbar img {
        border-width: 0px;
        border-style: 0;
        border: 0;
    #sideBarLeft {
        float: left;
        width: 30%;
        height: 100%;
        min-width: 250px;
        padding-top: 50px;
        padding-left: 40px;
        padding-right: 40px;
    .oneColLiqCtrHdr #container #sideBarLeft p {
        text-align: justify;
        font-size: 12px;
    .oneColLiqCtrHdr #container #sideBarLeft h2 {
        font-size: 14px;
    .oneColLiqCtrHdr #container #sideBarLeft h1 {
        font-size: 24px;
    .oneColLiqCtrHdr #container #sideBarLeft {
        color: #CCC;
        padding-top: 15%;
        padding-bottom: 15%;
    .oneColLiqCtrHdr #mainContent {
        padding: 0 60px; /* remember that padding is the space inside the div box and margin is the space outside the div box */
        background: #FFFFFF;
        background-color: #000000;
        color: #969696;
        font-family: "Goudy Old Style";
        font-size: 18px
        text-align: center;
        vertical-align: middle;
        min-height: 500px;
    .oneColLiqCtrHdr #container #mainContent p {
        font-family: "Goudy Old Style";
        font-size: 18px;
    .oneColLiqCtrHdr #container #mainContent h1   {
        padding: 0px;
        font-family: Georgia, "Times New Roman", Times, serif;
        color: #969696;
        font-family:"Goudy Old Style";
        font-size:36px;
    .oneColLiqCtrHdr #container #mainContent h6 {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 72px;
        font-weight: bold;
        vertical-align: middle;
        line-height: normal;
        color: #CCC;
    .oneColLiqCtrHdr #container #mainContent #staticprivacy h3 {
        padding: 0px;
    #jewelryFull {
        padding-top: 25px;
        padding-right: 0px;
        padding-bottom: 25px;
        padding-left: 0px;
        font-family: Georgia, "Times New Roman", Times, serif;
        float: none;
        width: 100%;
        max-width: 960px;
        background-image: url(../images/CPJ--MainBG_slice_15.png);
    .oneColLiqCtrHdr #container #mainContent #jewelryFull {
        font-family: Arial, Helvetica, sans-serif;
        color: #CCC;
    .oneColLiqCtrHdr #container #mainContent #jewelryFull img {
        border-top-style: solid;
        border-right-style: solid;
        border-bottom-style: solid;
        border-left-style: solid;
        border-top-color: #CCC;
        border-right-color: #666;
        border-bottom-color: #666;
        border-top-width: medium;
        border-right-width: medium;
        border-bottom-width: medium;
        border-left-width: medium;
        margin-top: 25px;
    .oneColLiqCtrHdr #container #mainContent #jewelryFull p {
        text-align: justify;
        margin-top: 0px;
        font-size: 10px;
    .oneColLiqCtrHdr #container #mainContent #mycarousel {
        text-align: center;
        height: 500px;
    .oneColLiqCtrHdr #footer {
        padding: 0; /* this padding matches the left alignment of the elements in the divs that appear above it. */
        background:#DDDDDD;
        background-image: url(../images/CPJ-Red-Footer.png);
        height: 63px;
        width: 960px;
        vertical-align: top;
        list-style-type: none;
        clear: both;
    #BottomNav {
        font-family: "Arial Black", Gadget, sans-serif;
        font-size: 11px;
        color: #CCC;
        height: 100%;
        margin: 0;
    .oneColLiqCtrHdr #container #footer #BottomNav ul {
        list-style-type: none;
    .oneColLiqCtrHdr #container #footer #BottomNav ul li {
        display: inline;
    .oneColLiqCtrHdr #container #footer #BottomNav ul li a {
        list-style-type: none;
        list-style-image: none;
        float: right;
        padding-right: 45px;
        color: #969696;
        text-decoration: none;
        font-weight: 500;
        font-family: Arial, Helvetica, sans-serif;
        padding-top: 10px;
    .oneColLiqCtrHdr #footer p {
        margin: 0; /* zeroing the margins of the first element in the footer will avoid the possibility of margin collapse - a space between divs */
        padding: 0; /* padding on this element will create space, just as the the margin would have, without the margin collapse issue */
        color: #FFF;
        text-align: right;
        font-family: Tahoma, Geneva, sans-serif;
        font-size: 12px;
    #quotes {
        text-align: center;
        margin-right: 65px;
        float: none;
    #quoteright {
        text-align: right;
        margin-right: 65px;
    #quotesleft {
        text-align: left;
        text-indent: 65px;
    #companyTitle {
        font-family: "Lucida Console", Monaco, monospace;
        font-size: 24px;
    #medImageArea {
        width: 100%;
        height: 50px;
    #Thumbnails img {
        padding: 40px;
    ************Thank you****************

  • Having trouble in printing the scanned pages in Acrobat Pro

    I m using acrobat pro. I recently started having some trouble in printing the scanned pages in Acrobat. When i am printing a regular (non-scanned) page, it works just fine. If i m printing a scanned page, the print is completely distorted. I don't even know how to describe this condition, so I don't really know how to google it.
    If i remember correctly, I made some changes to the printing options. I can't exactly recall what was it, but it was something trivial (like printing all text to black or something)
    So i have attached the print of a scanned document. It's just the print quality that's different.
    Thanks for help.

    Moved to Acrobat forum.

  • Im having trouble making some changes to our webite. Im using DW CC 2014, 8.1 , HP Pavillion pc. Id be happy to pay someone to help.

    im trying to make some changes on our website (oilfiltercrushers.com). Im using DW CC 2014, 8.8, HP Pavion pc. The problems include:trying to move an image farther to the left & also to remove too much vertical  space, trying to remove "AAAs tht show up on a webpage table even they don't show on the local file that was put, a webpage that I cant see on the website even though it was put & appears in the remote files folder. Id be happy to pay someone to help me fix these problems. Thanx, Paul ([email protected], 4146514636)

    Hi Nancy
    Thanx for your response and commenting on our homepage. I wasn't aware of the problems you mentioned. However it has ranked on the first page of Google, etc for 20 years, so that's not my concern at this point.
    The 2 most immediate things are getting rid of the  A"s showing up on the table on oilfiltercrushers/truck_ofc.aspx and on /defaultnew.aspx , (the intended home page when I get it fixed,) I get a server error highlighting line 293 
    &nsp;
    . Im not sure what to do about that...
    I hope you can help me with this. If its more convenient, you can call me at 414-651-4636. I'll pay you for your input.
    Paul
    I look forward to hearing from you.
    Paul
    "Nancy O." <[email protected]> wrote:
    Nancy O.  created the discussion
    "Im having trouble making some changes to our webite. Im using DW CC 2014, 8.1 , HP Pavillion pc. Id be happy to pay someone to help."
    To view the discussion, visit: https://forums.adobe.com/message/7034503#7034503
    >

  • How do you can change the page size of a pdf in MAC?  I have multiple pdf documents of different sizes that I want to combine.

    Help.  How do I change the page size of a pdf in MAC?  I have multiple pdf documents in varying sizes I would like to combine and print.

    There's no real need to do that. A PDF can have pages of different sizes.
    On Fri, Jun 6, 2014 at 4:11 AM, christine rambo <[email protected]>

  • How Can I Change One Page to Look Different From The Rest of My Pages?

    Hi, my website uses a CSS page with a dark background and white type. But I have one page I need to have a white background and light grey type on. I am not sure how to do this without it changing all of my site's look which I don't want to do. I only want to change one page to have a different look. How can I do this? I am new to CSS so please try to explain how I can do this in simple terms if you can. Thanks.

    There are 3 ways to use CSS.
    External style sheet: a separate physical file that contains all your site wide rules & to which your html documents are linked.
    http://alt-web.com/DEMOS/DW-Link-Stylesheet.shtml
    Embedded styles: page specific rules in the <head> section of code view.
    <head>
         <style type="text/css">
              page specific styles go here...
         </style>
    </head>
    Inline styles: CSS styles in the markup (mostly used for HTML emails and not on web sites).
         <p style="color:red">This paragraph has a red style.</p>
    In order of importance, inline styles override embedded styles.  Embedded styles override external styles. 
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • How can I change the page size of a pdf so i can view it on my iphone more clearly?

    How can I change the page size of a pdf so i can view it on my iphone more clearly?

    I think there may be more to this question than you say.
    If your PDF page is say, 8 x 12 inches, and you found a way to scale it to 25%, changing it to 2 x 3 inch, shrinking everything on the page to quarter size - wouldn't it look exactly the same on the iPhone? It's just going to be the same as zooming.
    Or were you hoping for something more like in Word, where changing the page size keeps everything the same size and spreads it over more pages? That isn't something you can do.

  • HT4942 After Creating a new document or editing an old document in Pages on my iPad I no longer see the changes in Pages on my iPhone. iCloud services are on with both devices.

    After Creating a new document or editing an old document in Pages on my iPad I no longer see the changes in Pages on my iPhone. iCloud services are on with both devices.

    Just thought I'd add my solution, I decided to go with WebDAV and I think it actually works better than the iTunes way, the steps are pretty much the same but avoiding the iTunes interface just makes things easier and faster.
    I followed this guide but it does have a small mistake in the httpd-dav.conf file, on line 2, where it's WebServer/WebDAV">, it should be <Directory "/Library/WebServer/WebDAV">.
    The tricky part is setting permissions which if wrong will give you errors when connecting with the iPad, I opted to set all to Read&Write since my home network has a hardware firewall. Another convenience was to add an alias to the webdav share on the Desktop.
    I'm still expecting the call from Apple but even if they fix the iTunes I'm sticking with WebDAV, atleast until I see what's new with iOS5 and iCloud this fall which should bring true sync for documents (I'm hoping that they will offer encryption with my own keys, if not, then I'll probably keep using WebDAV).

  • How do I change the page size of a pdf?

    I'm trying to send a manuscript to a printing service in another city. It was produced using Microsoft Publisher. In Acrobat Pro I changed the page size from the default (8 1/2" x 11") to the size of my finished document --- 7.8" x 10". Yet when I send the manuscript to the printer it's still the larger size. I've tried right-clicking on the pdf printer and changing to a close approximation (7.5" by 10"), which is listed as one of the available alternatives, but it won't let me change it. What am I doing wrong?

    There's no real need to do that. A PDF can have pages of different sizes.
    On Fri, Jun 6, 2014 at 4:11 AM, christine rambo <[email protected]>

  • How can I change a page position in a large document?,

    How can I change a page position in a large document?

    Question asked and answered many times !
    Insert a section break just before the page to move.
    Insert a section break just after the page to move.
    Select the page's thumbnail
    cut
    Insert a section break where you want to insert the page.
    paste
    The required infos are available in Pages User Guide which isn't delivered to help helpers to help you.
    Yvan KOENIG (VALLAURIS, France) mercredi 5 octobre 2011 14:33:24
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • After making a website with muse and launching it with Business Catalyst. My website gives a notice: To change this page, upload your website into the public_html directory. How can i upload my website into the public_html directory?

    Hello,
    I'm using a Mac and made a website with Muse. After making the website i published the site and launched this afterwards with Business Catalyst.
    When i enter my website, i got the notification: To change this page, upload your website into the public_html directory.
    Does anyone know how i can fix this? I'm a complete noob in this subject.
    Thank u for reading

    Could you post a link please?
    BC does not give that message - Would be good to see if it is indeed BC.

  • Is it possible to change the page of a linked PDF without relinking?

    Is it possible to change the page of a linked PDF without relinking and going through the import options?
    I'm trying to import seveeral pages of the same PDF. The process would be quickest if I could import it once, then duplicate the image box a number of times, then just change the page number each image box is linking to.
    At the moment I'm having to relink (or place), then go through Import Options, then choose the page - it's a long process that feels like it should be quicker.
    Any ideas?
    Thanks

    The short answer is no, that's not possible, but it IS possible to import multiple pages at one time.
    My favorite script for this is from Scott Zanelli: InDesignSecrets » Blog Archive » Zanelli Releases MultiPageImporter for Importing both PDF and INDD Files, but there's also a sample script included with ID.

  • Replacing nav bar--is there a way to change all pages at once?

    I widened my site off of an iweb template and now the nav bar looks bad since it's too narrow and there is text that appears outside of the nav bar background. Since I can't change the color or looks of the nav bar, I've decided to put my own on top of it. This means if I have any changes down the line, I have to change the nav bar on every page. I have a page that nothing is linked to where I save graphic elements, so I can copy it, and paste on each page--a hassle when you have 50+ pages, and no idea how many pages I'll have in the end. IT was nice to have the automatic nav bar and header/footer, but boy how stupid to not be able to edit them unless you're a tech geek and understand all the coding!!

    a hassle when you have 50+ pages
    You should try it when you have 170+ pages!
    No, there is no simple way to change all pages at once. I use exactly the same method as you are doing now. Having proper user definable templates is on my wish list for future releases of iWeb.
    Michael
    iMac 20" Intel Core Duo 2GHz

  • Change the Page Title for all the pages when viewing the Reports in Bi Publisher

    Hello ,
    I have a requirement for changing the Page Title for all the report displayed pages on the browser window.

    As far as I know, answer is NO.
    it's very simple answer  Manikandan-S-Oracle
    for 1210326 's requirements there are some places for changes of property "title" and in some pages "title" can be different
    "one place or option for changing" does not exist imho ( may be i'm wrong )
    so you can change places for your needs but not sure what it's adequate
    as example
    ...wls\user_projects\applications\bipdomain\xmlpserver\catalog\navigator.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/catalog
    ... wls\user_projects\applications\bipdomain\xmlpserver\home\home.jsp  -->  find <title>
    it changes title in http://somehost:7001/xmlpserver/servlet/home

Maybe you are looking for

  • 30-40+hours still waiting? here's how i got my working in 1hr.

    well, i got mine friday around 7pm. setup phone through iTunes, got a couple activation emails, one that stated it would be ready on JUN 01 1am... well, today (sunday morning) my phone still didn't work. sat in cust server for 1hr... eventually said

  • Interactive report in sap-abap

    hi experts, i want to know how we display the end-of-page in second secondary list? in interactive reporting.   regards   cnu.

  • Problems with PDF attachments in Mail in ios7

    When I get a PDF in an email in ios7 it will not let me open it with another app. It will only save it as an image and if there is more than one page it only displays the first page. How can I get the file to open in another app so I can view it.

  • ADF Tree table is not exapanding

    Hi all, I have to implement an ADF tree table along with a form. I have three Views, two of the views are used to populate the Tree table, And one of the view used in the Tree population is used to manipualte the form, And the third one is to populat

  • Java Mapping : Read Interface Mapping detail data

    Hi, In various mappings techniques, you have access to a lot of message header information, even dynamic information. But as far as I could see, access to some ( important ) mapping data itself ( e.g. input message type / output message type ) is not