Img tag inline  with text

I realize that discussions on how to include an image/icon inline with text has been done before. It appears that this problem has not been solved yet. Does anyone know if it can be done or we have to live with an insufficient implementation of html in Flex? The code below is what I am trying to execute; have a small icon next to some text. Thanks in advance.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
     <![CDATA[
         [Embed(source="assets/studentsImageIconSmall.jpg")] public var iconTest:Class;
     ]]>
</mx:Script>
<mx:TextArea width="100%" height="100%">
        <mx:htmlText>
            <![CDATA[
                <p>You can include an image in your HTML text with the &lt;img&gt; tag.</p><br>
                <img src="assets/studentsImageIconSmall.jpg">Text next to the image.<br>
                <img src="assets/studentsImageIconSmall.jpg">Text next to the image.<br>
                <img src="assets/studentsImageIconSmall.jpg">Text next to the image.<br>
            ]]>
        </mx:htmlText>
    </mx:TextArea>
</mx:Application>

You could use Iframe but there're a few drawbacks you can read more about this here
http://www.deitte.com/archives/2008/07/dont_use_iframe.htm
And also see an example of flex + iFrame here
http://www.deitte.com/IFrameDemo3/IFrameDemo.html

Similar Messages

  • How do I insert multiple images inline with text in Pages 5.0?

    I have over 20 images in my iPhoto library that I want to insert in a document one after the other (inline with text).
    How do I do this without having to insert them one by one and going into the image options to change the formatting? It's a pain to have to do it this way...
    I tried using the media browser in Pages, but it seems you can only add them one by one. So I exported the pictures from iPhoto into a folder, selected them all in Finder and dragged them onto my document. All the images appeared stacked on top of each other in a random spot on my page. I can't select them all for some reason. So again, I have to click on them one by one to the formatting? Why is this not simpler? Am I missing something?

    If you use the Help in your Pages 5 you will find the followings link http://help.apple.com/pages/mac/5.0/?lang=en#/tanca246d3ac

  • Inline with text not working in pages 5

    I just upgraded to Pages 5.0. A lot of functionality has been removed, but also at least one feature that is there is not working for me. Inserting an image onto a document and setting up the image to "move with text" and "inline with text" is not working, as the image is staying fixed, and there is text wrapping around it. The interesting thing is that old images inserted and setup the same way using Pages 4.3 are moving with the text correctly, and there is no wrapping. Help!

    You will have to use File > Revert to or File > Export to > Pages '09.

  • When I import or drag/drop an image from Finder into Pages, it floats the image instead of keeping it inline with text

    I'm new to Pages and I've searched online for an answer to this question but haven't found anything quite what I need.
    When I import an image from Finder (or drag and drop from Finder) into Pages, the Text Wrap default is "automatic" which seems to be "in front of text." I have to manually click each image and then change it from "Automatic" to "Inline With Text." Is there a way to change the default so it's not "Automatic" but "Inline With Text" to save me these steps for every single image I import?
    (If importing from Media Browser would behave differently, I don't use iPhoto except for Photo Stream so I need to bring them in from where I've saved them in my Finder.)
    Thanks so much for any help!

    Good questions...  I'll have to try and figure out when the problem first happened - I was thinking it was when I upgraded to Safari 5.1.4 but that might not be the case...  I'll try your suggestions to see if any of them eliminate the problem (I have restarted recenlty and that didn't fix it) but I'll try repairing permissions,etc.  Thanks!
    hmmm... Mcbuffy: are you implying that you *don't* get the webloc when dragging an image out of Safari and that this isn't a caused by change to Safari but is a big/conflict in mine?

  • At my wits end: Placing anchored object inline with text & wrap

    Granted I never learned InDesign the way I should.  Once upon a time I fared well with Aldus Pagemaker.  But I've just spent the last two hours trying to resolve a massive gap in my knowledge and I can't do it.  I'm exasperated and desperate for help.
    What I want to do:  I have a tech manual with lots of text and need to place graphic objects in a way that the text will wrap around the object and if I need to edit the text, the graphic will move with where I inserted the graphic.
    What happens:
    1.  I have a text frame with text.  I place the cursor at the beginning of the paragraph and click File> Place, thereafter choosing a graphic.
    2.  Using the selection tool, I click the graphic and then click the icon "wrap around bounding box".
    3.  The text shifts a teeny bit but does not wrap around the object.
    4.  Object is, however, inline/anchored, with text.
    OR
    1.  With nothing selected I click File> Place, thereafter choosing  a graphic.
    2.  I place the graphic on the lower part of the page over a blank space.
    3.  I move the graphic over the text and then click the icon "wrap around bounding box".
    4.  The text flows but when I edit the text, it does not flow around the graphic.
    Conclusion:
    I am retarded.  I even went through Lynda's example here:  http://www.adobe.com/designcenter/video_workshop/?id=vid0073   I was able to place my object in her document and watch the text flow around the text wrapped graphic.
    I read the help docs (I'm a big fan of reading).
    The only thing I can think of is I've set my text box up wrong or I have no idea.  I'm so frustrated I am seriously almost in tears.
    My example document (I'm under an NDA and can't release my original document, but I duplicated what I've done in the previous one) is here for anyone who can tell me what I've done wrong.  Thank you kindly.
    http://www.xandria.ca/test01.indd

    Alrighty, this is bizarre.  I couldn't leave well enough alone and I'm still trying to hammer this one out.  But I just followed my first method described in the original message and then...
    I clicked and dragged the edge of my graphic and the text began to flow around it and it moves with the text.
    What on earth?
    While I can do this for each image, I'd rather not.  What am I still doing wrong, although I seem to have a half baked workaround.
    Cheers.

  • Mp3 tag viewer with text encoding/decoding purpose

    I'm want suggest some idea:
    Let assume that we have many mp3 files with cyrillic or some else non ascii tags in different encodings. And let assume that each file may have several encodings (eg cp1251 for album and utf-8 for title). Programs like EasyTag is not convenient for such case.
    So idea: draw all tags for many files in simple table and decode what you want on the fly, independently for field, not whole file.
    ps I'm not like a programmer or so, so i dont know should i start new project or not. Here on my hands some very first script in python, pyqt, tagpy, chardet.
    github: https://github.com/LeoMirr/tagcoder
    screenshot: https://github.com/LeoMirr/tagcoder/blo … gcoder.png
    I dont know how to move thread so i stick to previous post
    Last edited by LeoMirr (2013-09-27 15:10:22)

    Because of zero attention for such idea in this topic and because i finally remove my messed up collection of music i decide to drop this git.
    PS. this program is just little sample end if no one is reply for idea and if it even doesn't need for me anymore creating is impossible. that's all : )

  • Arrrgh... img tags! 

    Hi All,
    I'm having problems with embedded <img> tags. I
    stripped out a single dynamic text box out of a larger application
    just to test the functionality (or non-functionality) of the
    <img> tags to see if it was something that I was doing in the
    larger app. I have about 6 inline icons that are 24x22 px that I
    would like to have placed inline with the text. All I have is a
    single textbox on the stage named topicText...nothing else and the
    attached code. The output shows two of the 5 or 6 inline images and
    they are one on top of the other on the left hand side. All others
    are missing, I'm assuming they are probably on top of each other.
    I've tried stripping the commas out of the text (which was
    suggested in another post), and I got a different two icons
    showing...which was strange in itself.
    Even more baffling to me was in the larger app, I load the
    code from XML and I get the same broken lineup of the two icons on
    either the right or left (depending on my align=""
    attribute)...buuuut, they display elsewhere on the stage...not even
    in a textfield???? It's almost as if Flash decided to create a
    brand new textfield on it's own and center itself somewhere on the
    stage. Any ideas?

    I am having a similar problem and was wondering if it is even
    possible for img tags to be inline with text in flash since I have
    not been able to get it to work yet.

  • Img tag border

    Hello,
    I am currently running HS 5.5 on Vista Home Premium. Don't
    have any issues with it except, when I drag an image from the
    resource window to the page, it does not place in the border="0"
    attribute. This becomes quite annoying as I then have to go through
    each image and add the attribute or a border is displayed.
    I thought that HS did this automatically in previous versions
    but can't figure out how to change the settings if there are any.
    Thanks,
    Andy

    The border attribute has been deprecated in favor of the use
    of CSS. As a
    result, it's not being automatically added by CS3.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "geschenk" <[email protected]> wrote in
    message
    news:f1nqih$sii$[email protected]..
    >>>
    > Is there a setting for CS3 to do the same?
    > >>
    >
    > can?t find such a setting in CS3, but you can simply
    eliminate borders
    > around
    > all images using a CSS rule for the img - tag:
    >
    > <style type="text/css">
    > <!--
    > img {
    > border: 0px;
    > }
    > -->
    > </style>
    >

  • Move graphics with text--but not inline--in PM...??

    Hello, is there a way in PageMaker to move graphics with text but not inline? I ask because right now I see two options for graphics:
    --inline, so you cannot place the graphic exactly where you want AND the text only flows way above or below--but not next to--the graphic
    or
    --independent so you can place the graphic exactly where you want and the text DOES flow right next to the graphic, but then the graphic doesn't move with the text
    I'd like to be able to place graphics exactly where I want AND have them move with the text, like the "Move object with text" option in Word.
    thank you!
    L

    well it has been a while since i used PageMaker so i didn't realize it was "dead."
    though i'm not surprised and am kind of glad. i was hired into a new job recently
    to work on a department newsletter, and i'm trying to find a good authoring program
    within our budget. right now the newsletter is in Word but we've had a lot of problems
    with Word so i'm seeking an alternate solution. i'd like Frame but again there isn't
    enough money in the budget. i need a good option that is $500 or less...i'm trying Publisher
    now too but not enough functionality...

  • XSLT problem with img tag in Saxon

    Hi,
    Iam getting a problem with <img> tag when transforming a document using Saxon transformer. In the input XSLT I have proper closing tag for <img>, but the output of the transformation is not well formed as the closing tag for <img> does not appear. I need to feed the output to a FO object to generate a print preview, but the output is not well-formed.
    Kindly help to resolve the issue.
    Kind Regards,
    Abhinandan

    Perhaps that is because you are generating HTML as your output? As I recall, <img> tags don't have to be closed in HTML. So try generating XML instead if you need XML.

  • Tablespace usage report generated with html tags instead of text

    Hi ,
    We have a unix shell script scheduled to find tablespace usage and sends the report to our mail id.
    For the past few weeks(no changes idone in the script) the report is coming with html tags instead of text as below.
    </head>
    <body>
    <p>
    <table border='1' width='90%' align='center' summary='Script output'>
    <tr>
    <th scope="col">
    TABLESPACE_NAME
    </th>
    <th scope="col">
    CUR_USE_MB
    </th>
    <th scope="col">
    CUR_SZ_MB
    </th>
    <th scope="col">
    CUR_PRCT_FULL
    </th>
    <th scope="col">
    FREE_SPACE_MB
    </th>
    <th scope="col">
    MAX_SZ_MB
    </th>
    <th scope="col">
    OVERALL_PRCT_FULL
    </th>
    </tr>
    <tr>
    <td>
    SYSTEM
    </td>
    <td align="right">
    268
    </td>
    <td align="right">
    500
    </td>
    <td align="right">
    54
    </td>
    Is this any settings issue or anything to be modified in the script.Could you please reply..
    Regards,
    Bharath.
    Edited by: 870384 on Jul 6, 2011 1:17 AM

    Hi Sven W,
    Please find the sql below that is generating the tablespace usage report. In the staring of the script markup is set to ON and at the end it is set to OFF.Do you suggest any changes to this..?
    SET ECHO OFF
    SET PAGES 999
    SET MARKUP HTML ON SPOOL ON
    col tablespace_name format a15 trunc
    col cur_use_mb for 999999999
    col cur_sz_mb for 999999999
    col free_space_mb for 999999999
    col max_sz_mb for 999999999
    compute sum of cur_use_mb on report
    compute sum of cur_sz_mb on report
    compute sum of free_space_mb on report
    compute sum of max_sz_mb on report
    break on report
    spool tablespace.html
    select tablespace_name,
    round(sum(total_mb)-sum(free_mb),2) cur_use_mb,
    round(sum(total_mb),2) cur_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(total_mb)*100) cur_prct_full,
    round(sum(max_mb) - (sum(total_mb)-sum(free_mb)),2) free_space_mb,
    round(sum(max_mb),2) max_sz_mb,
    round((sum(total_mb)-sum(free_mb))/sum(max_mb)*100) overall_prct_full
    from (select tablespace_name,sum(bytes)/1024/1024 free_mb,0 total_mb,0 max_mb from DBA_FREE_SPACE group by tablespace_name
    union select tablespace_name,0 current_mb,sum(bytes)/1024/1024 total_mb,sum(decode(maxbytes, 0, bytes, maxbytes))/1024/1024 max_mb
    from DBA_DATA_FILES group by tablespace_name) a group by tablespace_name;
    select owner,segment_name,segment_type,bytes/(1024*1024) size_m
    from dba_segments
    where tablespace_name = 'SYSTEM' and segment_name='FGA_LOG$' order by size_m desc;
    spool off;
    SET MARKUP HTML OFF SPOOL OFF

  • IE problem with img tag calling stored procedure

    I have an img tag in my JSP which looks like this (it has a very long src value):
    <img src="http://www.enetrix.com/cores/net_charts.display_temp_chart?vChartDef_in=ChartType%20=%20DIALCHART;Chart
    . . . and so on and so on . . .
    26,%2075.0);&vChartType_in=PNG&vChartURL_in=http://333.333.33.333/j2ee/servlet/chart"/>
    In short, the img calls a stored procedure and passes it a servlet among many other things. The procedure passes back an image to the browser.
    The image shows up in Firefox but not IE 7. I don't think its an issue with the stored procedure but I can't understand why IE doesn't show the image. Is there something I'm missing? I've tried both jpeg and png.
    Thanks
    Eric

    As the related posts suggest, you will need to use direct JDBC code for this.
    Also I'm not sure JDBC supports the RECORD type, so you may need to wrap your stored functions with ones that either flatten the record out, or take OBJECT types.

  • Generate image with CFIMAGE - but need to use img tag to serve the content

    I create a new image with cfimage, that already works without
    any problems.
    But instead of using the action="writetobrowser" I need to be
    able to use the script inside a img tag:
    Example: <img
    src="myscript.cfm?somedata=iwanttheimagetocreate>
    I found one webpage that deals with that problem (
    http://www.webdevelopernews.com/2007/09/14/serving-up-cfimages-via-image-tags/)
    but the image served to the browser, when using the code below, is
    of a very low quality and another point is that you can't serve
    .gif's to the browser.
    <cfcontent type="image/jpg"
    variable="#ImageGetBlob(backgroundimage)#">
    Any suggestions/solutions?
    Thanks,
    Phil

    In that entry Raymond mentions:
    "The WriteToBrowser action actually generates HTML that points
    to a ‘magic’ URL to serve the image.". ie <img
    src="/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG" alt=""
    />
    Perhaps you could create a function that captures the
    generated html by using <cfsavecontent>.
    <cfsavecontent variable="imageTagHTML">
    <cfimage action="writeToBrower" ..>
    </cfsavecontent>
    Then uses a regular expression to extract and return the url
    portion only. ie
    "/CFFileServlet/_cf_image/_cfimg-12345036853711072.PNG"
    <cfset ExtractedURLHere = SomeFunction(arguments...)>
    <cfoutput><img
    src="#ExtractedURLHere#"></cfoutput>
    Though you could also use the entire html string directly
    <cfoutput>#imageTagHTML#</cfoutput>

  • Using img tag with htmlText

    I'm trying to display images within mx:Text components using htmlText.  However, no matter what I try, I can't get an image to display.  The application just displays whitespace where the <img> tag is.  My current code looks something like:
                <mx:Text id="test_html" width="100%" height="100%">
                    <mx:htmlText>
                        <![CDATA[
                            <p>Why can't I include an image =(</p><img src='assets/add_icon.gif' width='20' height='20' align='left' hspace='10' vspace='10' />
                        ]]>
                    </mx:htmlText>
                </mx:Text>
    What I get displayed when I view this is:
    I've tried essentially every permutation that I can think of -- setting the htmlText in actionScript, using all different paths (app:/assets/add_icon.gif, ../assets/add_icon.gif, add_icon.gif, embedding the image and using {<classname>.addIcon}).  I have other images embedded in the application using the path "../assets/<image file>" and they work fine (they're not being used in htmlText).
    Has anyone had this kind of trouble before?  Any idea what might be going wrong?

    does anybody know anything? how long do i need to wait to see
    if someone replies? I just need to know if it is possible or not.

  • HTML embeded in Flash and img tag

    I'm currently developing an application in flash, which
    consist of a hand-drawn screen, in which HTML page appears. To
    achieve this I used a TextField with html option. Unfortunately,
    TextFiles show only some simple tags – is there any other way
    to show more complicated ones in Flash CS3 (and AS3)? I have also a
    problem with the <img> tag. Picture loaded via <img>
    doesn’t print from TextField. My printing code attached -
    webpage_txt is control to print. Do you konw why it doesn't print?
    Thanks in advance for help.

    Currently, no, there are only simple HTML tags available.
    Though, FlashPlayer10 promises to have much greater support for
    text, including inline tables, etc.. You may just have to make do
    with what you have for now, and wait for the new player.
    As for your picture woes, I unfortunately am unable to help
    you there, with very little printJob experience myself.

Maybe you are looking for