Embedding html for use in a tilelist

In my app I have several images which I've defined as public vars like this:-
Bindable][
Embed(source="assets/images/skynews_small.png")] 
public var image10:Class;
These images are then contained within an array collection which serves as a dataprovider for a tilelist. Instead of static png images though I want to use html components so the tilelist will be full of live images of websites so each image will basically look like this
<mx:HTML location="http://www.yahoo.com/" width="300" height="300" scaleX="0.25" scaleY="0.25" horizontalScrollPolicy="off" verticalScrollPolicy="off"/>
How can I edit the image10 class I made so that it's source is basically a live screenshot of that website as opposed to a static screenshot I took?

you can simply type a web address in plain text and most email clients will interpret it as a link on the receiving end. if you want a different text over the link, type that text fist, select it, control-click and select link->add link. this will create a true html link.

Similar Messages

  • How do I create/host interactive articles with embedded video for use in browsers?

    I'm seeking a little guidance -
    How do I create/host interactive articles with embedded video for use in browsers?
    The aim is to bring together video, design, images and writing in one place. A little like Born Presents, but very accessible and user friendly.
    I'm happy using InDesign but want to create interactive articles / magazines that have embeded video files as required. I've been looking at .SWF files but I've come unstuck.
    I want people to view the articles via a blog, ideally with them opening in a lightbox style viewer. It's not intended for tablet viewing and people should be able to view and interact with the files with little effort on their part.
    I think I know how to create these files within InDesign, but I'm not so hot on web design and I'm not sure how to host these online. Does this start coming into the realms of Flash?
    If anyone could point in the right direction I'd really appreciate it - Thank you in advance.

    PDF is one thing. Folios for DPS is another. There is a little bit of
    overlap but not much.
    The interactivity in the folio overlays panel is for DPS only.

  • Encoding HTML for use in forms

    This is probably a dumb question and is something I've probably overlooked in the API's, but before I write a huge block of code to deal with the problem, I thought I'd ask here first:
    I'm wrinting a form to add/edit records in a database. Is there an easy way to encode what a value to be inserted into a HTML document? e.g.
    <INPUT NAME="title" VALUE="[value to be inserted goes here]" />The actual pasing/insertion has already been coded, but the problem I have is I need something to encode the value before it is inserted. Why? If the value contains quotes, it will break the tag e.g.
    <INPUT NAME="title" VALUE="A value with "quotes" will break this tag" />In addition to this, in some cases I need to encode all HTML special characters ( <tag> to >tag< ) so that the following does not occur:
    <TEXTAREA NAME="post">
    You would think that it's safe to put anything in this block,
    but if some crafty bugger enters </TEXTAREA> in this field in the database,
    there's gonna be trouble...
    </TEXTAREA>And if I encode these tags I will, of course, need some way of decoding the tags too...
    This isn't too difficult a task, but I really don't want to write code to do this if it's already somewhere in the API since there's bound to be some oversights I havn't considered and blah blah blah. So is it in there?
    *** interesting note - this forum could do with something that deals with the </TEXTAREA> problem - I previewed this post and when I came back to edit it, the </TEXTAREA> tag broke the form. Typical...

    URLEncoder.encode() was what I looked at first - since it is designed for use with URL's (hence the name) it has several big drawbacks, formost of which is that all spaces are converted to "+" signs. Not good at all...
    As I originally said, what I require is a little more complex, and I was initially surprised at how little support there is in the API considering Java has such strong tie-ins with internet-related tech (especially with the recent popularity of servlets and JSP).
    Here is a brief example: in the database there is a record of a post, much like the forum posts you see here. The post has a title, and in this title the poster has thoughtfully included an ampersand(&):
    This is the title of my post & I think it's gonna give the Kid some headachesNaturally, I wanna encode the ampersand to &amp; Preferrably when the post is originally made. This is no big deal. What gets inserted into the database will be:
    This is the title of my post & I think it's gonna give the Kid some headachesSay at some point in the future the post will be edited, in the editing screen html there will be something like:
    title:<INPUT NAME="title" VALUE="This is the title of my post & I think it's gonna give the Kid some headaches" /><BR />Now, if you view that snippet of code in a browser, what you will see is an input box containing the text:
    This is the title of my post & I think it's gonna give the Kid some headachesSo I guess the string must be encoded again before it is inserted in the VALUE="" of the the INPUT tag. Also, not a big deal (though I have to remember not to encode the string when it is not being used in an input tag - otherwise it will ALWAYS be displayed as &amp;)
    A side note is that other ampersand escaped characters get screwed up when encoding them twice i.e &quote; ends up getting saved as &amp;quote;, which is something that I don't want. The code to get around this is simple, but I resent having to write it as I see it as being an essential method when outputting html and should, in my opinion, be included somewhere in the API.
    Anyway, that has already been done and works fine. Now I'm working on parsing the passed post so that only the <tags> that I want to be allowed are left unchanged, and the rest of the &lt;tags&gt; are encoded (including the dreaded </TEXTAREA>). There's precious little hope that there's anything out there that will do this for me, but it was worth asking before I started...
    Cheers for your interest.
    Note: writing this post has been a king-sized pain in the arse since I had to make sure all the &'s were written as &amp; and all the &amp; written as &amp;amp; - nightmarish.

  • Converting an HTML file for use in browsers

    Hi Guys and gals,
    I am new to creating java programs to run within a Web environment - thus my reason for asking this question. I hope this is the apropriate forum to point this question to.
    I have created an applet which is invoked inside an HTML file. The HTML is fairly simple, although it does pass a number of parameters for use within the applet.
    I have run the HTML file within Sun's Appletviewer and it works fine. Now I need to convert the HTML for use in Browsers supporting Java 2.
    What is the best resource to use to perform this conversion ? I understand some type of Converter or Plug in is available to perform this task. Can anyone help me out ?

    The easiest way is to use SUNs HTML convertre program.
    You can find the information about the JAVA plugin and how to create the HTML code at
    http://java.sun.com/products/plugin/1.3/docs/html_converter.html
    and
    http://java.sun.com/products/plugin/1.3/docs/tags.html
    Oliver

  • Structure inDesign document and export as XML for use in the web

    Hello everyone,
    I just recently started using inDesign and I am fascinated by its possibilities! I use it for a project where a finished inDesign layout that is used for a printed publication is now supposed to be transformed for implementing it on a web site. My job is to export the inDesign document as an XML file. After massive reading the last weeks I'm quite familiar with the structuring and tagging in inDesign. Though there's some issues I do not understand. Your precious advice would be of highest meaning to me
    The programmer who will later use my XML output for the web-transformation needs the document structured in different levels like "Root > Chapter > Subchapter > Text passage / table". I already structured the document with tags like title, text passage, table, infobox,... but the structure is just linear, putting one item following to another.
    How can I structure the document with reoccuring tags that enable me to identify the exact position of an item in the document's structure? So that I can say for example "text passage X" is located in chapter 4, subchapter 1. This has to be done because the document is supposed to be updated later on. So maybe a chapter gets modified and has to be replaced, but this replacement is supposed to be displayed.
    I hope my problem becomes clear! That's my biggest issue for now. So for any help I'd be very thankful!

    Our print publications are created in InDesign CS5 for Mac then the text is exported to RTF files then sent to an outside company to be converted to our XML specifications for use by our website developers.  I would like to create a workflow in which our XML tags are included in the InDesign layouts and then export the XML from the layouts.
    Some more detail about what kind of formatting is necessary might be helpful.
    I know that IDML files contain the entire layout in XML format.  Is it a good idea to extract what we need from IDML, using the already-assigned tags?
    Well, if you want to export the whole document, it's the only reasonable approach.
    We use a workflow system such that each story is a seperate InCopy document, stored in ICML format (Basically a subset of IDML). Our web automation uses XSLT to convert each story into HTML for use on our web site; it also matches it up with external metadata so it knows what is a headline and what is not, etc.. It is not exactly hassle free, and every once in a while someone uses a new InDesign feature that breaks things (e.g., our XSLT has no support for paragraph numbering, so numbered paragraphs show up without their numbers).
    You could do the same thing with with IDML, you'd just have to pick out each story, but that's small potatoes compared to all the XSL work you're going to have to do.
    On the other hand, there may be better approaches if you're not going to export the whole document. For instance,  you could use scripting to export each story as an RTF file, and then you could convert the RTF files into HTML using other tools.

  • Escaping tag output for use in XHTML document?

    I'm converting a JSP page from HTML to XHTML, and have run across a problem with tags outputting XHTML-invalid characters (&'s and <'s). For example:
    <form action="<f:postResults />">
    postResult returns a string with those invalid characters, and so far I've been unable to figure out how to work around that. Any ideas?

    Our print publications are created in InDesign CS5 for Mac then the text is exported to RTF files then sent to an outside company to be converted to our XML specifications for use by our website developers.  I would like to create a workflow in which our XML tags are included in the InDesign layouts and then export the XML from the layouts.
    Some more detail about what kind of formatting is necessary might be helpful.
    I know that IDML files contain the entire layout in XML format.  Is it a good idea to extract what we need from IDML, using the already-assigned tags?
    Well, if you want to export the whole document, it's the only reasonable approach.
    We use a workflow system such that each story is a seperate InCopy document, stored in ICML format (Basically a subset of IDML). Our web automation uses XSLT to convert each story into HTML for use on our web site; it also matches it up with external metadata so it knows what is a headline and what is not, etc.. It is not exactly hassle free, and every once in a while someone uses a new InDesign feature that breaks things (e.g., our XSLT has no support for paragraph numbering, so numbered paragraphs show up without their numbers).
    You could do the same thing with with IDML, you'd just have to pick out each story, but that's small potatoes compared to all the XSL work you're going to have to do.
    On the other hand, there may be better approaches if you're not going to export the whole document. For instance,  you could use scripting to export each story as an RTF file, and then you could convert the RTF files into HTML using other tools.

  • Escaping html for dynamic javascript

    Hi Folks,
    Can anyone please tell me how I escape html for use in a  function?
    Here is my code:
    onMouseover="ddrivetip('#jobdescription#','white', 300)";
    Thanks in advance

    Hi there
    What is it you're trying to escape exactly? Do you mean you want the literal # signs to go in? If that's the case then use a double hash ## - Coldfusion will render a single one to the browser.
    If that's not what you mean then some more info may be required
    O.

  • Using onFocus method with embedded html

    Hi,
    I have embedded html in a servlet. I am using a text field to call the onFocus method with the following code:
    out.println("<input type='text' name='name' value='0' onFocus='if(this.value=='0')this.value=';'>");
    If I was using straight html with no servlet this works fine. When the user clicks on the field the default value is automatically erased.
    Why will this not work in a servlet?
    I have also tried calling a javascript function. Please note that I successfully use javascript with input type 'button' to render a pop up window with dimensions. So my javascript inside a servlet works elsewhere.
    Thanks VERY MUCH for your time
    Rick

    I don't think it's the same as I'm doing. Essentially, I have a JEditorPane subclass, which just has a few custom tags in it. I don't need them to be recognized by java, since it will be uneditable, but I just need to know how to convert from the getText() locations to the actual displayed text locations.
    Also, when I set the text as text/html, it creates a bunch of extra HTML tags, so it's larger than the original String used to create it.

  • [Oracle JDBC Driver]This driver is locked for use with embedded application

    Hi
    I installed Sun Java Studio Enterprise 8, and am trying to connect to my Oracle database using the attached tutorial code.
    The code compiles fine, but I get the following error whenever I run the file: [Oracle JDBC Driver]This driver is locked for use with embedded application
    I don't understand what is happening.
    Using the Runtime navigation panel on the upper left of the IDE screen, I can right-click and connect to the database, and navigate database files, using the Oracle JDBC Driver that came with JSE8.
    Name: Oracle Driver
    Driver: com.sun.sql.jdbc.oracle.OracleDriver
    Database URL: jdbc:sun:oracle://JAZZPUP:1521;SID=REPO
    If the driver is installed, and can be used to connect to a database by right-clicking on the database definition in the Runtime panel, why can't I connect to it just using java code in the IDE. I would expect both methods to work or to fail, not one of each using the same IDE.
    Many thanks and take care,
    Shayne
    import java.sql.*;
    public class CreateCoffees {
    public static void main(String args[]) {
    //String url = "jdbc:mySubprotocol:myDataSource";
    String url = "jdbc:sun:oracle://JAZZPUP:1521;SID=REPO";
    Connection con;
    String createString;
    createString = "create table COFFEES " +
    "(COF_NAME VARCHAR(32), " +
    "SUP_ID INTEGER, " +
    "PRICE FLOAT, " +
    "SALES INTEGER, " +
    "TOTAL INTEGER)";
    Statement stmt;
    try {
    //Class.forName("myDriver.ClassName");
    Class.forName("com.sun.sql.jdbc.oracle.OracleDriver");
    } catch(java.lang.ClassNotFoundException e) {
    System.err.print("ClassNotFoundException: ");
    System.err.println(e.getMessage());
    try {
    //con = DriverManager.getConnection(url, "myLogin", "myPassword");
    con = DriverManager.getConnection(url, "login", "password");
    stmt = con.createStatement();
    stmt.executeUpdate(createString);
    stmt.close();
    con.close();
    } catch(SQLException ex) {
    System.err.println("SQLException: " + ex.getMessage());
    } //end class CreateCoffees
    ---

    There are two similar threads:
    http://swforum.sun.com/jive/thread.jspa?threadID=61327&tstart=0
    http://swforum.sun.com/jive/thread.jspa?threadID=51057&messageID=188210
    To summarize - the DataDirectDriver that is shipped with the IDE seems to be locked to be used inside the IDE only because of some licensing issues etc..
    That's weird, I agree. I will raise a question on reasons for such a behavior.
    The solution would be to use Oracle's own driver, that is distributed at no charge from their web site - http://www.oracle.com/technology/software/tech/java/sqlj_jdbc/index.html
    HTH,
    Kirill

  • Using javascript to dynamically generate the html for a  Spry table

    I have some javascript which generates html code for a Spry
    table which displays the content of a Spry data set. The problem is
    that after I generate the html, Spry never fills in the values for
    the table.
    Here's what I'm doing:
    Using a data set observer, check for onPostLoad and generate
    the html code
    Using innerHTML, stuff the code into the appropriate
    <div>
    Use regionName.updateContent() to update the region I just
    created with the html code I generated
    Interestingly, if I take the generated source for my page and
    remove the data set observer, the Spry table displays correctly
    with all the expected values. This suggests to me that my generated
    html code is correct, but that there is some sort of timing issue
    (i.e. Spry doesn't know about the new code I generated).
    Any suggestions?

    jalperin wrote:
    > Here's what I'm doing:
    >
    Using a data set observer, check for
    onPostLoad and generate the html
    > code
    >
    Using innerHTML, stuff the code into
    the appropriate <div>
    >
    Use regionName.updateContent() to
    update the region I just created
    > with the html code I generated
    >
    > Interestingly, if I take the generated source for my
    page and remove the data
    > set observer, the Spry table displays correctly with all
    the expected values.
    > This suggests to me that my generated html code is
    correct, but that there is
    > some sort of timing issue (i.e. Spry doesn't know about
    the new code I
    > generated).
    >
    > Any suggestions?
    I'd guess that it is a timing issue as well. I haven't looked
    much at the dataset capability in Spry, but it may be that the
    dataset "finds" all of the regions and code that it applies to
    before the onPostLoad event is triggered. If that is the case, then
    your generated code doesn't exist yet,and so the dataset thinks
    that there is nothing for it to apply to.
    Will the HTML that you generate change based upon the dataset
    that is actually returned? I guess I'm looking for the reason why
    the HTML is being generated when it could be in the page itself and
    avoid this issue completely.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Could we use embedded SQL for XML in .pc ?

    Hi,
    Can we use embedded SQL for XML in .pc ?
    <1> assume we have run SQL statements in Oracle9i:
    SQL>create table MY_XML_TABLE
    (Key1 NUMBER,
    Xml_Column SYS.XMLTYPE);
    SQL>insert into MY_XML_TABLE(key1, Xml_Column) values
    (1, SYS.XMLTYPE.CREATEXML
    ('<book>
    <chapter num="1">
    <text>This is the my text</text>
    </chapter>
    <book>')
    <2> Could we directly translate it in .pc as usually:
    <outlined, not exactly)
    int emp_number = 1;
    XML_Data emprec; /* ?????? */
    EXEC SQL SELECT M.Xml_Column.GETCLOBVAL() as XML_Data
    INTO :emprec INDICATOR :emprec_ind
    FROM MY_XML_TABLE M
    WHERE Key1 = :emp_number;
    Thanks
    MJ

    reply by myself.
    No problem!!
    ===============================
    int emp_number = 1;
    struct emprec{
    char feature[1280]
    EXEC SQL SELECT M.Xml_Column.GETCLOBVAL() as XML_Data
    INTO :emprec INDICATOR :emprec_ind
    FROM MY_XML_TABLE M
    WHERE Key1 = :emp_number;

  • Does the DPS publishes only for tablets? can I publish my indesign file to html only using DPS?

    Does the Digital Publishing Suite publishes only for tablets?  can I publish my indesign file to html only using DPS?

    DPS will not do what you want and neither with anything else without at
    least some work.
    HTML out of InDesign is for content only, not layout. There is a new
    product out there you can try, however:
    http://ajarproductions.com/pages/products/in5/
    Bob

  • How do i query for a html content using cm:select tag

    Hi i want to query the dmsBase directory for any html file(s).
    I am using..
    <cm:select> tag and using query ="mimeType like 'text/*' "
    But it doesnot work
    HELP....

    Thanks for the reply, however I did find that you can test for a NULL with a Velocity #if statement and it works. Here's what I found this at the below website:
    Conditional. Null can be checked for using #if ($obj) obj not null #end syntax.
    http://today.java.net/pub/a/today/2003/12/16/velocity.html
    Regards

  • Need advice on storing configuration variables for use by FP2000 Controller for embedded application.

    I am creating 8 machines that generally operate in the same way and each will be controlled using a FP-2000 controller. The only difference between the machines is a set of scaling constants and pass values for determining if the machine completed its process successfully.
    In the past, using an idependent PC and Labview, I have created a configuration.vi for writing the constants and configuration variables to a data file on my hard drive. Then in the auto.vi I read(only once each time the program is started) the file and store the data in the program. I would like to do something similar with this system but am not familar with the Field Point system.
    I know i
    t is probably not difficult to store the data to the host computer and transfer it to the modules but I am better off writing to the modules once and storing the data onboard the FP controller for use by an embedded application. This way, if the network connection is lost for any reason, the machine can still operate. Is this possible, and if not what do you suggest in order to prevent being so reliant on the host computer?
    Thank you for your help.

    Mike,
    There are a number of ways to accomplish what you desire. The easiest is to continue doing what you are already doing. The FP-20xx series modules treat their flash memory as if it was a hard drive, so the file I/O VI's in LabVIEW work just the same in a FP-20xx as on a regular computer running LabVIEW. The primary variation will be in how you write the files over the network. Since mapping network drives is more of a Windows functionality, you can not simply have a VI running on your host computer use a File I/O VI to write to a FP-20xx. Instead, what you will need to do is to write the file to you local drive and then FTP (file transfer protocol) the VI to the FP-20xx module. This can be done using the LabVIEW Internet toolkit or any 3rd party FTP util
    ity. One word of advice; the OS on the FP-20xx does not support long filenames but due to a problem in the FTP server, long filenames (non 8.3 compliant) may be uploaded and once there, you will be unable to access the file again, even to delete it.
    An alternative method that I have seen used is to use a global VI and write to it from the host machine through the use of VI server. You can then have the program on-board the FP-20xx save the globals to your configuration file.
    Regards,
    Aaron

  • Replacing a 3 tier application using HTML for presentaion with a Java App

    Hello Everyone,
    Any help with this respect will be greatly appreciated..
    We have created an application which uses Weblogic as the Application Server and the front end is written in HTML which uses HTCs. Data from the front end to the back end is sent in the form of XML. The application as such is very slow, the lag is in the loading of the HTCs and in rendering the xml.
    Is it good to replace the front end part with a full blown Java application which uses Swing for the front end. I feel that this is not a good approach, but I do not have valid reasons to support my ideas.
    Please help me ...
    Thanks in advance
    Raj

    1) Swing is very very slow and if used will otherwise
    cause a very pathetic user experience (and believe me
    lady, it is true).Define slow and pathetic, I do not think you can because you are not work in her environment. Swing is accepted to be slower than AWT.
    2) Making a seperate client side application will
    cause
    a) Distribution problem - you have to go around
    nd giving it to all the clients (and potentially new
    ones, it could be a potential pain).
    b) Changes to the front end will result in
    in re-distributing the client application.
    c) Control over the client interface will be
    be compromised as it shall be spread across antire
    gamut of users. In web interface at least it is at one
    place and changes can be easily affected.Web logic totally nullifies this argument with their push technology (I don't remember what it is called), it will automatically update any and all parts of the application as the developers define and with options for delay of updates as the developer defines.

Maybe you are looking for

  • Looking for a duration / scheduling API

    I was not sure how to even search for this on Google. Java duration and java scheduling turned up too many results and were not really what I was looking for. I also looked at joda-time, but they do not provide this functionality either. Basically, I

  • Shrinking a database after a cut-down

    Hi all, I have the scenerio below, any hints tips most welcome ... - we are using oracle 9.2.0.1 - get a copy of a production database 80gb and put into another db - run a cutdown script that culls about 70% of the data, for purposes of use as test d

  • 10.0.2 monitor delay

    I'm getting a short delay/latency with 10.0.2 but I can't figure out how to get rid of it. Just recording voice and a DI acoustic guitar. 

  • Help in service tax code

    Hiii experts... my client faced an issue in service tax code e.g s1( service tax+edu cess+higher edu).. i went to ftxp... in accounting key st1 i assigned 12%,(condtion -jstx) ec-2%(condtion-jec5)  and ec3-1(condition-jes3)... all went good and the t

  • Whats latest version of nseries pc suite?

    what version is it? My beta labs version of nseries pc suite works fine apart from when I check for updates for the pc suite itself and it comes up with"THERE WAS A PROBLEM COMMUNICATING WITH THE NOKIA SOFTWARE UPDATE SERVER PLEASE VERIFY YOUR INTERN