Modify links in HTML_Panel as it loads

When loading an outside URL similar to the wikipedia example
in the HTML_Panel demo, the html that loads contains links
referencing the original source. So all the links in the wiki
example contain /wiki/link instead of
http://en.wikipedia.org/wiki/link.
Is there a way to modify the html after the html_panel is loaded to
replace all the <a href="/wiki/ with <a href="
http://en.wikipedia.org/wiki/
This would be a string replacement after the block loads. I
can't seem to figure out how to attach such a function on the block
after it is loaded. This would be very useful when loading HTML
from other websites, to keep their links pointing to the original
source.

What u could do is add an observer to your html panel that
monitors the onPostUpdate. On each update loop through your
<a> tags (could be done with
document.getElementsByTagName('a') ) check if they start with
/wiki/ if it does, just replace or change the href.

Similar Messages

  • Missing link between Itunes and Music Loaded from CDs

    Somehow itunes no longer recognizes the link between itunes and music loaded from my Cds (error message in itunes indicates original file could not be found). I can establish this link manually one by one and the songs play but how can I establish this link other than manually one by one in itunes ?

        Hi again!
         I saved the last message by accident which caused the reply to be sent off and so I had not finished what I wanted to write. Aploogies.
         I didn't find the new iMac hybrid SSD/Disk system easy to understand when it arrived over a year ago. I eventually decided that the 256 SSD section would be best suited to having the Operatin System for greater speed and I must have decided to put the music files on the 1TB internal hard drive along with photos and raw video clips. I can't honestly remember. There was a lot to take in. I wasn't even aware until this failure that iTunes had a default location.
         In addition to having the iTunes folder on the internal 1TB hard drive, I used Time Machine to store the entire computer contents on a 1TB Western Digital external hard drive. I had done my last Time Machine back-up on the 13 February and so I was hoping that by opening one or two songs on the back-up, they might reactivate the 'old' interface with the original playlists on it. That didn't happen but I then realised, while I was still in the Tme Machine back-ups on the WD external hard drive, that in the iTunes Media folder contained within the iTunes folder on the default Users/Username/Music location there was only an Add automatically to iTunes folder which was empty. While still still looking through the Time Machine back-upsI saw that the music instead was stored on the 1TB of internal hard drive as outlined on the first post:
         'The music files are located in folders (name of artists), within a folder (iTunes Music), within a folder (iTunes), within a folder (Music), within a folder (username) on the 1TB of internal disk drive.'
       The iTunes.itl file was last modified on Monday at 21:52. Created on 17th February, 2012. Size 386KB
         Regards,
         DG.

  • Indd CS5.5 keeps asking to update modified links

    Indd CS5.5 keeps asking to update modified links when opening a document, when links have not been modified.. This happens a lot.
    Any guidance gratefully received.

    Hi John, thanks for your helpful suggestion.
    We've picked up on some small nuances in the last 24 hours. There are two of us here in the studio and the documents and links are saved on a shared drive.
    • When I open the document on my machine and update all the links, then close it and then open it again – without my colleague opening it – it doesn't ask to update the links.
    • However, if he opens it after I've opened it, it will ask to have it's links updated again. And if I open it after he has opened it, it again will ask to update the links.
    *Idea* could it be that one of the machine's clock settings are incorrect. ie. my colleague's new laptop?
    Screen grabs are attached below. The go in the order of before and after.
    The plot thickens: I have also loaded this software on to an iMac out side of the office; not connected to the server, just running on its own. I have some images on an external hard drive. I have exactly the same problem if I unplug it and re-plug it. When I re-plug it doesn't just simply find the links, it says they have been updated.
    Any more ideas would be appreciated.
    Best regards.

  • Any way of modify base directory at runtime (in loaded jars )?

    Hello all,
    Well, I'm using tomcat to run my web application, which loads
    dinamically many jars and execute them. My problem is that these jars
    sometimes have a method that uses relative paths to do something (read
    files, create files, etc). Currently, the current base dir is given
    wrong for these loaded applications! Instead of the right path, it's
    given "C:\tomcat" or something.
    If it were with my Web Application itself, it would be easy to get over
    this problem by using the getRealPath("") method provided by api. But
    since I can't modify the jar code I will load, what can I do? Some
    ideas?
    Thanks you!
    Bruno

    I have found the solution. This is the code to write-access files from within JavaServer Faces backing bean:
    FacesContext fc = FacesContext.getCurrentInstance();
    ExternalContext ec = fc.getExternalContext();
    ServletContext sc = (ServletContext) ec.getContext();
    String realPath = sc.getRealPath(getDocumentURI());
    FileOutputStream fos = new FileOutputStream(realPath);where getDocumentURI() is the method that returns the virtual path for document to write to.

  • Check for modified link

    Does anyone know a way to script checking for modified links?  I have written some export scripts and would like to add this safety check.  The more scripts I provide our operators the less thinking they do. lol
    -Steve

    Take a look at rasterItems and RasterLinkState… Modified is one of these…

  • Random Missing/Modified Links

    For the past couple of days I have been experiencing random missing/modified links showing up in preflight.
    I am using CS4 on Windows 7... all of the graphics are stored on a shared network, but no one was using them when the issues started.
    When I see the missing/modified links error, I relink them and go back to editing the document... within 15-20 min they are back. Until this afternoon, I go to relink them... and they fix themselves *scratches head*
    Any ideas what could cause this type of behavior?
    Thanks for any help you can offer.

    Possibly a time synch problem.

  • [svn:osmf:] 11414: Modified Akamai plugin sample app to load MAST plugin from Akamai network.

    Revision: 11414
    Author:   [email protected]
    Date:     2009-11-03 12:31:51 -0800 (Tue, 03 Nov 2009)
    Log Message:
    Modified Akamai plugin sample app to load MAST plugin from Akamai network.  Also added missing readme.txt for the sample app. 
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.project
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml
        osmf/trunk/plugins/MASTPluginIntegrationTest/.project
    Added Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/readme.txt

    Revision: 11414
    Author:   [email protected]
    Date:     2009-11-03 12:31:51 -0800 (Tue, 03 Nov 2009)
    Log Message:
    Modified Akamai plugin sample app to load MAST plugin from Akamai network.  Also added missing readme.txt for the sample app. 
    Modified Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/.project
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/src/AkamaiPluginSample.mxml
        osmf/trunk/plugins/MASTPluginIntegrationTest/.project
    Added Paths:
        osmf/trunk/apps/samples/plugins/AkamaiPluginSample/readme.txt

  • Normalize Modified Links

    I'm using CS on Windows 7.
    Is there are way to "normalize" the modified links without having to click Update on the GUI?
    I've done it in the past by doing a seach and replace on the IDML file. I would like to be able to modify the status using ExtendScript as it takes quite a while to convert everything to IDML, do the replacement and then convert back to INDD.
    Any suggestions on alternative methods are greatly appreciated. Thank-you.

    Like this but in Javascript!
    http://macproductionartist.wordpress.com/2009/11/17/updating-links-in-indesign/

  • When I click a link in a website, it loads in another tab, however i get 100's of new tabs that load with "untitled" and when i close firefox, it just opens by itself again and again

    I was on my son's school website and I was looking to click the link to his teachers personal web-page. When I did, many, many "untitled" new tabs kept opening in the same screen. In fact it did not stop until I restarted my computer.
    When I tried to close mozilla firefox page, it would then open up a new screen again doing the many, many "untitled" tabs. Every time I clicked the red X at the top of the screen, it would load a new page doing this.
    It also did this on one other web page.
    I am sure that there is just some info that needs to be entered for what to do when you click a link, however I have no clue how to change it.

    For the list of teachers there are email addresses in the right hand column, did you click on an email address?
    If you did that could explain the multiple tabs being opened. What may have happened is you have the mailto protocol set to open Firefox which results in 100s of tabs opening when you click on an email address. For details on fixing that see [[Firefox keeps opening many tabs or windows]], in particular the section on "Change the action for a content type". My guess is you will find mailto is set to "Use Firefox".

  • I'm trying to load up webpages and am getting the error "URL not valid" but it's on sites and URLs that i know for sure are. Like when I click a link it'll do that but I'll close the notification box and click the link again and it'll load.

    I'll pretty much just get a message that says something like google.com is invalid when I know it for sure it. Even if I just click on a link on like Gizmodo or something, I'll get that message. I'll close the message and then I'll click the link again and it would actually load up now.
    == This happened ==
    A few times a week
    == A while ago. Perhaps a couple weeks

    Click here and request assistance.
    (91679)

  • Poster Frame QT Movie linked to standard QT Movie loads in Firefox not I.E.

    Ok, this may be a rare question here. Here's what I've done following a small blurb of directions in iMovie6/iDVD the Missing Manual by David Pogue. (awesome book)
    I've created a "poster frame movie" in QT. This is a one -frame movie I use as the picture on the page.
    This poster frame movie, when clicked, is linked to a full version of the same movie that opens in the same place. The reason for this poster frame movie is to start the QT plug-in download as soon as someone reaches my page so there is no wait time when they click to watch the movie, it should be instantaneous.
    I tested this last night on my Mac with Firefox, and after clicking the poster frame movie (i.e.) the picture; the linked movie loaded right away. This worked on PC with Firefox as well.
    However, when this is page is loaded in Internet Explorer, on Mac or PC, the poster frame movie is there, but when clicked, the full movies do not load.
    Can anyone think of why or what setting I.E. may have that doesn't allow my QT movies to load when other browsers allow it?

    Yup, that's your problem.
    Before the <embed> you should add:
    <param name="href" value="http://blip.tv/file/get/Awarner20-AnniversarySecondTry745.mov">
    <param name="target" value="myself">
    As predicted, your problem is that while the QuickTime plug-in has the HREF and TARGET parameters, they are missing from your OBJECT code, meaning that the QuickTime ActiveX Control will never see them. You need to include all parameters in both places (unless you want different behavior in IE).
    Also, TECHNICALLY, you should also add a </embed> just before the </object>. The <embed> tag, like, for instance, the <p> tag is self-closing, but the most recent XML standard (HTML is a subset of XML) says, "Thou shalt close all of thy tags". So it won't make a bit of difference in function, but it is good practice. And yes, you should also close your <p> tags and use <br /> or <br></br>, too.
    (although technically we're not supposed to use EMBED at all anymore, as it isn't in the HTML spec, but it works with all browsers except IE while OBJECT doesn't always...)
    --Dave Althoff, Jr.

  • In Windows, all links are hidden until movie loads.

    Hi,
    Anyone else encountered this issue? I have pages with video, that when viewed on a pc everything else but the video loads up (you can see it pop up for a second), then disappears until the entire QuickTime movie has finished loading - leaving a blue 'highlight' everywhere.
    When the movie has loaded, the rest of the graphics appear.
    My thoughts on possible causes are;
    1. I used a blank template in iWeb for all my pages, not a 'movie' template - could this affect the loading order?
    2. I have edited all the links in Photoshop and replaced them post-publishing (for rollover effects).
    Many thanks for your advice in advance.
    CG

    Hi CasparGomez...
    Believe it or not, this is the normal behavior of iWeb pages when viewed through Internet Explorer. iWeb pages contain PNG graphics. IE cannot handle PNG graphics natively. So iWeb generates some fancy javascript code to convert PNGs on the fly so that they are viewable on IE. Unfortunately, this transformation does not happen until all the elements are downloaded. This is why your graphics do not appear until the entire movie is downloaded.
    So the real problem is Internet Explorer and its inability to handle PNG graphics. Try FireFox and your page will render correctly.

  • Despite best efforts, cannot modify link colors in iWeb

    I am having issues with changing the colors of my hyperlinks in iWeb. Specifically, I having this problem while working with the "Welcome" page in the "Modern" style template.
    After searching through this forum, I followed advice to check out http://www.rowan-cottage.co.uk/Site/CSS%20in%20iWeb.html for tips on modifying the CSS and changing the hyperlink colors. While I was able to edit the .css file and change the unfollowed link colors to blue as planned, the followed link colors unexpectly changed to a strange purple color. Hovering was the same purple, but clicking the link and not releasing the mouse resulted in the link turning red (the default color) even after I had edited the .css file so that hover and followed links were to also be the same blue.
    I reloaded the page several times, I reset Safari, I looked at the page with Opera, Firefox, and IE, and it looked the same way in all browsers.
    Does anyone know what is going on here? Is there some sort of communication going on behind the scene that I am not seeing (such as, if unfollowed link = blue, then followed link = purple)? Do I need to edit the XML file? How?
    Advice appreciated! Thanks!
    iMac (PowerPC)   Mac OS X (10.4.4)  

    Okay, that was yesterday.
    Today the problem is not repeating.
    I have no idea what happened, but I as long as the problem is presently gone, I'm happy.

  • Link to muse site doesnt load mobile version

    Phone version of website: I have a link to a blog site on muse phone version. When you click to blog link and then click back to muse site, the desktop version loads on my phone.
    How can I control this?
    MPH

    Hi,
    May I please have the URL of the site and any specific pages you'd like me to take a look at?

  • Modifying Link Wizard Screen

    How would I go about modifying the Link Wizard screen which comes up if a user tries to create a hyperlink in contribution mode to a contribution file? I would like to add another Category which will link documents using "resource" ie: [!--wcmLink('resource','MYCONTENTID')--]. Again I don't know if this is a good way to link to a file or not...but the problem is when I changed the security model to add Accounts...most of our links got broken. So I wanted to take a more programatical approach to defiining links such as using Idoc Scripting of some sort....[!--wcmLink('Link','MYCONTENTID')--] can also be used, but then this doesn't work on PDFs that are converted using IBR. Please help! Thanks.

    HI Kudan,
    Download the par file com.sap.portal.runtime.logon.par.bak from
    Go to System Administration -- Support -- Portal Runtime -- Browse Deployment.
    The path should ROOT/WEB-INF/deployment/pcd. Now download that file into local system.
    Create a Par project and make necessary changes ..i.e
    Open the downloaded par file with WinZip and inside the lib folder three jar files named com.sap.
    portal.runtime.logon_api.jar, com.sap.portal.runtime.logon_core.jar and umelogonbase.jar will be there. Copy those files in the folder u2018libu2019 in par project.
    Now change a branding Image...i.e
    you can see an image with the name "dist\layout\*branding-text.gif*"
    This branding-text.gif is the image you need to change. So you can replace it with your own image.
    Be careful while changing Logon par file. Take a copy of it and do the necessary changes.
    Once modifications are done,then create a par project and upload the par file into portal.
    Go to the path System Administration -- Support -- Support Desk -- Portal Runtime -- Administration console.
    then browse the file and click on upload.
    Connect to server where the Portal WebAS is running and go to:
    (drive):\usr\sap\<system id>\<system instance>\j2ee\cluster\server0\apps\sap.com\com.sap.security.core.admin\servlet_jsp\logon\root\layout.
    There you will find the images used on logon screen, you can replace them for your
    company images, please take care with the width of the images, as usual, to make this
    change effective, you must restart the whole WebAS.
    Regards,
    Raju
    Edited by: V R K Raju P on Sep 14, 2009 4:58 PM

Maybe you are looking for

  • How Install Oracle 8.1.7 on RedHat 7.3

    Hello! I want install Oracle 8.1.7 on RedHat 7.3. I follow the steps in book InstallGuid, but when I run runInstaller, I get the error: map failed. How can I install Oracle 8.1.7 on RedHat 7.3. My email is: [email protected] Thanks, David Lin

  • CUCM 8.6.2 configs

    Dears, It might be very silly nd stupid  for asking this question but it has been asked to me. How i can pull the configs of complete CUCM ------------Is it the backup of CUCM will help??? and in which application we can open the backup files How i c

  • Error Installing 10g on Windows XP

    hello all.. Iam installing ORacle10g on WinXP. After selecting the Installation type as " Personal Edition" option, i get an error message " Thrown when the ip address of the host cannnot be determined" and it gives me 4 options.. Retry, cancel, help

  • Sending a Basic eMail

    Hi All, I have a requirement to send just a basic email in SAP. I am using the following code but for some reason it is not working. It says that I don't have an recipient address even though a correctly formatted address is in LT_ADSMTP-E_MAIL. Can

  • ORA-01502 error in case of unusable unique index and bulk dml

    Hi, all. The db is 11.2.0.3 on a linux machine. I made a unique index unusable, and issued a dml on the table. Howerver, oracle gave me ORA-01502 error. In order to avoid ORA-01502 error, do I have to drop the unique index ,and do bulk dml, and recre