Invalid IHTMLTxtRange::text value in contentEditable DIV element

I have a BHO on C# which works with text and selection on editable HTML elements. I observe a problem with getting a correct text using
IHTMLTxtRange interface on editable DIV element (contentEditable=true).
Here is my code:
            IHTMLSelectionObject selectionObj = m_doc2.selection;
            if( selectionObj != null )
                IHTMLTxtRange txtRange = selectionObj.createRange() as IHTMLTxtRange;
                if( txtRange != null )
                    txtRange.moveToElementText(
m_element );
                    String sText = txtRange.text;
m_element is the IHTMLElement which I'm getting text for. m_doc2 (IHTMLDocument2) is the document containing m_element.
The problem is with DIV element only and if it contains empty new lines at the end of the text. It does not depend on version of IE (at least 9 and higher)
IHTMLTxtRange::text property returns the whole text but without new lines at the end. How is it possible to get entire text for contentEditable DIV including last empty lines.
Thank you.

Hi,
\r and \n and 'C string' control characters for js strings.
JS Control Characters
'whitespace' (eg. ' ') is a textnode (in IE10 and higher) and is not equivalent to  
so you will have to change your decoding to replace the whitespace characters to  
eg. received text: "Sun\r\nMon\r\n\r\nTue" =><p>Sun&nbsp;&nbsp;<br/><br/>&nbsp;Tue</p>
Sun[blank][blank]
[blank]Tue
what you need to do is to use the IE11 developer tool to inspect the generated html from your control.
f12>DOM Explorer>Find tool.... select the generated markup from your control....
the computed source will be displayed in the DOM Tree....
<p id="test">
Sun  <br/><br/>
Tue
</p>
in the console tab, you can query the value of the text nodes.
document.getElementById('test').textContent
Sun Tue
but because whitespace is treated as a textnode
document.getElementById('test').firstChild.tagName
#textnode
here is the content of a pre element that I use for a typing tutor, that highlights the current character that the user must keypress.
<div class="uc" id="txtscript" lang="id" dir="ltr" contenteditable="false"><span class"word"=""><span class="script" style="background-color: orange;">S</span><span class="script">e</span><span class="script">m</span><span class="script">u</span><span class="script">a</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">o</span><span class="script">r</span><span class="script">a</span><span class="script">n</span><span class="script">g</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">d</span><span class="script">i</span><span class="script">l</span><span class="script">a</span><span class="script">h</span><span class="script">i</span><span class="script">r</span><span class="script">k</span><span class="script">a</span><span class="script">n</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">m</span><span class="script">e</span><span class="script">r</span><span class="script">d</span><span class="script">e</span><span class="script">k</span><span class="script">a</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">d</span><span class="script">a</span><span class="script">n</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">m</span><span class="script">e</span><span class="script">m</span><span class="script">p</span><span class="script">u</span><span class="script">n</span><span class="script">y</span><span class="script">a</span><span class="script">i</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">m</span><span class="script">a</span><span class="script">r</span><span class="script">t</span><span class="script">a</span><span class="script">b</span><span class="script">a</span><span class="script">t</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">d</span><span class="script">a</span><span class="script">n</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">h</span><span class="script">a</span><span class="script">k</span><span class="script">-</span><span class="script">h</span><span class="script">a</span><span class="script">k</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">y</span><span class="script">a</span><span class="script">n</span><span class="script">g</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">s</span><span class="script">a</span><span class="script">m</span><span class="script">a</span><span class="script">.</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">M</span><span class="script">e</span><span class="script">r</span><span class="script">e</span><span class="script">k</span><span class="script">a</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">d</span><span class="script">i</span><span class="script">k</span><span class="script">a</span><span class="script">r</span><span class="script">u</span><span class="script">n</span><span class="script">i</span><span class="script">a</span><span class="script">i</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">a</span><span class="script">k</span><span class="script">a</span><span class="script">l</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">d</span><span class="script">a</span><span class="script">n</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">h</span><span class="script">a</span><span class="script">t</span><span class="script">i</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">n</span><span class="script">u</span><span class="script">r</span><span class="script">a</span><span class="script">n</span><span class="script">i</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">d</span><span class="script">a</span><span class="script">n</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">h</span><span class="script">e</span><span class="script">n</span><span class="script">d</span><span class="script">a</span><span class="script">k</span><span class="script">n</span><span class="script">y</span><span class="script">a</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">b</span><span class="script">e</span><span class="script">r</span><span class="script">g</span><span class="script">a</span><span class="script">u</span><span class="script">l</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">s</span><span class="script">a</span><span class="script">t</span><span class="script">u</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">s</span><span class="script">a</span><span class="script">m</span><span class="script">a</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">l</span><span class="script">a</span><span class="script">i</span><span class="script">n</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">d</span><span class="script">a</span><span class="script">l</span><span class="script">a</span><span class="script">m</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">s</span><span class="script">e</span><span class="script">m</span><span class="script">a</span><span class="script">n</span><span class="script">g</span><span class="script">a</span><span class="script">t</span></span><span class="script">&nbsp;</span><span class="word"><span class="script">p</span><span class="script">e</span><span class="script">r</span><span class="script">s</span><span class="script">a</span><span class="script">u</span><span class="script">d</span><span class="script">a</span><span class="script">r</span><span class="script">a</span><span class="script">a</span><span class="script">n</span><span class="script">.</span></span></div>
the above is pure html and javascript.... note that in the html markup [blank] spaces are replaced with &nbsp; and all characters are wrapped in spans.
from the selectionstart value of the text range object (in the above text input field at the top), gives me the index of the collection of <span>t</span> elements. So I can use the selection start value to select the matching span element for
the keycode the user is to type next.
Rob^_^

Similar Messages

  • How can I get the text value of an XML element  in MXML ?

    Hi,
    I have the following XML loaded into a variable of type XML :
    <properties>
         <comment>RIMpro Data Collector Configuration</comment>
         <entry key="server.pear.username"/>
         <entry key="server.apple.retry.times">5</entry>
         <entry key="rdc.proxy.host">http://192.168.1.2:8080</entry>
    /properties>
    I can easily get the key attribute displayed in a DataGridColumn by setting the dataProvider to my variable and the dataField to "@key".  But I do not know how to get the text value in a second column...  Is there a way or do I need to change my XML to something like this :
    <properties>
         <comment>RIMpro Data Collector Configuration</comment>
         <entry key="server.pear.username"/>
         <entry key="server.apple.retry.times" value="5"></entry>
         <entry key="rdc.proxy.host" value="http://192.168.1.2:8080"></entry>
    /properties>
    Many thanks in advance.
    Marc

    yes, you'd better modify your XML structure to fit the DataGrid internals.
    Since dataField pattern require each grid row item to have a named property to be displayed, otherwise you'll be forced to overcome this pattern using custom labelFunction for the particular column which will implement your custom actions on how to extract appropriate data for that column out of grid row item. It will be much more complicated than just rearranging your xml structure.

  • "Invalid text value" error when calling a web service from a workflow in SharePoint Online

    I'm trying to create a workflow that loops through a list in SharePoint Online using a REST web service call. However, I'm having
    some trouble trying to pass the authentication token as described in the following article.
    http://www.fabiangwilliams.com/2013/09/03/more-on-sharepoint-2013-r...
    Basically, the workflow stops right at the "Call web service" action, and the only error it tells me is the following.
    Invalid text value.
    A text field contains invalid data. Please check the value and try again
    Has anyone had success with web service calls to SharePoint Online?
    Dan Kreitz, Solutions Architect, Séafra Inc.

    Hi DanPoint,
    Thank you for your sharing!
    Best Regards,
    Wendy
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Wendy Li
    TechNet Community Support

  • Invalid text value. A text field contains invalid data. Check the value and try again

    Hello,
    I am having a problem with the error mentioned in the title. I see alot of others have experienced the same problem, but I have quite a twist to it.
    I see the problem when I try to edit a list item, and then try to save the changes.
    Here what I see in the ULS log:
    System.Runtime.InteropServices.COMException: Invalid text value. A text field contains invalid data. Check the value and try again  
    at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId,
    Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter
    pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)   
    at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean
    bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback,
    ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback)
    I have 3 front end servers(fx wfe1, wfe2, wfe3).  And here is the twist.
    If I access the library directly through wfe1 and wfe2, I get the error. If I access the library via wfe3 if works just fine.
    So because of this, I think it is safe to assume that is has nothing to do with the character limit of 255. Nor does it have anything to do with the field type, since it is already set to mulitible lines of text.
    So. Any ideas?
    Regards,
    Michael
    mic

    Check if there is any change in web.config of these servers
    http://support.microsoft.com/kb/2880758
    To work around this issue, limit the length of the personal message in the invitation to 256 characters or less.
    This is a known issue. Microsoft is working to resolve this issue.
    http://social.msdn.microsoft.com/Forums/en-US/7bb16e51-e7cc-439e-a8b3-755683ccac1a/max-length-on-custom-field-types
    To solve the problem you may have to change the field's parent type to "note". To do that you have to open your fldtypes... file under Templates/xml and change the line to:
    "<Field Name="ParentType">Note</Field>" from "<Field Name="ParentType">Text</Field>"
    You might also have to add a sql type if your text needs to be longer than 255 characters
    <Field Name=”SQLType”>ntext</Field>
    and inherit from SPFieldMultiLineText instead of SPFieldText
    If this helped you resolve your issue, please mark it Answered

  • CAS - Write text of certain html div tag to new attribute

    Hi,
    Is it possible with CAS to extract text from certain HTML div tags to new attributes. So let's say we have tags in a specific "Tags" div and store that text in a new attribute of that record?
    Thanks!
    Marco Snels

    Hey Marco,
    I'd need to try this out a bit more since I have never built a custom CAS web crawler parser plugin. Here's what I know based on your questions:
    1) If I understand it correctly the name after the METATAG_PROPERTY_NAME_PREFIX will be the attribute name (?) so in this case Endeca.Document.HTML.MetaTag (?)
    Correct. You will want to change this in the code to something more meaningful to what you're trying to parse out of the <DIV> you're interested in.
    2) And I think that I have to change the FILTER-HTMLMETATAG name after the getParseMeta().add line but I don't know to which value?
    Accorinding to the WebCrawler guide this sample attribute was only added so you could see a new property on each output record to prove that this custom plugin was being executed. It can be removed for your custom plugin. That said, you're going to have to change what you're pulling out out the parser object. In the sample, they're pulling out the MetaTags (via an Endeca extension of the nutch parser), which you don't care about for your need. (e.g. HTMLMetaTags tags = parse.getData().getMetaTag();). Instead, you'll need to pull out the Content (e.g. parser.getData().getContentMeta()). You may want to google for nutch parser usage to get examples on how specific HTML elements can be found.
    HTH,
    Dan
    http://branchbird.com

  • How to comment in smartform for text value in abap

    how to comment in smartform for text value in abap.
    i want to comment text value which is coming in output
    From drag and drop option i had dropped an item text in text window and now i dont want to delete it i just want to comment it so can any one help me in commenting the text value.
    Advance Thanks for your help

    hi
    open the text element in the smartform.
    on the left corner, we have text editor button.
    open that and change the editor (goto-->change editor)
    on the new line, give the format as comment line /*. and you can write the comments as required.
    such lines doesnt reflect in the output layout.
    thanks
    pavan

  • How to read values of dynamic UI elements in a backing bean?

    Hi, I have an ADF page where some of the UI elements (in this case, checkboxes) are dynamically rendered as such:
    <af:forEach var="row" items="#{backing_testPage.userList}">
    <af:selectBooleanCheckbox id="checkbox" value="#{row.id}"
    text="#{row.name}" selected="#{row.userSelected}"/>
    </af:forEach>
    I am wondering how can I read the values of these checkboxes in my page's backing bean. It does not seem possible to specify a distinct binding value for the selectBooleanCheckbox elements in order to tie them to a CoreSelectBooleanCheckbox variable in my backing bean (so that I could check whether the checkbox is selected or not).
    When the page gets rendered, I did see that the checkboxes get assigned distinct ids like checkbox_1, checkbox_2, checkbox_3, etc... Not sure if that would help with this.
    Would appreciate any tips on this as I've been struggling with this for awhile. Thanks!

    You probably would do better with a SelectManyCheckbox. Here's how:
    In your backing bean you need:
    private String[] usernames;
    public String[] getUsernames () {
      return usernames;
    public void setUsernames (String[] _usernames) {
      usernames = _usernames;
    }In your page:
    <af:selectManyCheckbox value="#{backing_testPage.usernames}">
      <f:selectItems value="#{backing_testPage.userList}"/>
    </af:selectManyCheckbox>When the form is rendered any strings in the usernames array that are in the userList will be checked. When submitted, any checked items will be in the array.

  • How do you get a Node's text value using DOM?

    Hi,
    Can anyone tell me how I can extract the text values from <currency>, <Handle>, <shortcut> and <source> tags?
    This is my Code
    import org.w3c.dom.*;
    import org.apache.xerces.parsers.DOMParser;
    public class CurveConfSave{
    public static void walkover(Node n){
    if( n.getNodeType() == Node.ELEMENT_NODE){
         System.out.println("Walking over: " + ((Element)n).getNodeName());
         for( Node c = n.getFirstChild();c != null;c=c.getNextSibling()){
              walkover(c);
    public static void main(String[] args) {
    try {
    DOMParser p = new DOMParser();
    p.parse("CurveConf1.xml");
    Document doc = p.getDocument();
    NodeList liveCurvesNodeList = doc.getElementsByTagName("LiveCurves");
    System.out.println("Num items: " + liveCurvesNodeList.getLength());
    // Get the first node from the node list
    Node liveCurvesNode = liveCurvesNodeList.item(0);
    System.out.println("Live Curves Node: " + liveCurvesNode.getNodeName());
    walkover(liveCurvesNode);
    } catch (Exception ex) {
    System.out.println(ex);
    This is the xml chunk that I want to mainpulate
    <LiveCurves>
    <dd.enumerate>
    <AUD>
    <Currency>AUD</Currency>
    <Handle>GregB_AUD.today.</Handle>
    <Shortcut>LondonJava</Shortcut>
    <Source>XDB</Source>
    </AUD>
    </dd.enumerate>
    <dd.enumerate>
    <CAD>
    <Currency>CAD</Currency>
    <Handle>GregB_CAD.today.</Handle>
    <Shortcut>LondonJava</Shortcut>
    <Source>XDB</Source>
    </CAD>
    </dd.enumerate>

    This is the new modified code but I still get blanks for the Text Values I am trying to retrieve....
    import org.w3c.dom.*;
    import org.apache.xerces.parsers.DOMParser;
    public class CurveConfSave{
    public static void walkover(Node n){
    if( n.getNodeType() == Node.ELEMENT_NODE){
         System.out.println("Walking over: " + ((Element)n).getNodeName());
         for( Node c = n.getFirstChild();c != null;c=c.getNextSibling()){
              if("GBP".equals(c.getNodeName())){
                        NodeList childNodes = c.getChildNodes();
                        System.out.println("Child Nodes Length " + childNodes.getLength());
                        for (int i=0; i < childNodes.getLength();i++){
                        if(childNodes.item(i).getNodeType() == Node.ELEMENT_NODE){
                        System.out.println("Node value: " + "[" + childNodes.item(i).getNodeName() + "]");
                        if(childNodes.item(i).getNodeType() == Node.TEXT_NODE){
                        System.out.println("Node value: " + "[" + childNodes.item(i).getNodeValue() + "]");
                   System.exit(0);
              walkover(c);
    public static void main(String[] args) {
    try {
    DOMParser p = new DOMParser();
    p.parse("CurveConf1.xml");
    Document doc = p.getDocument();
    NodeList liveCurvesNodeList = doc.getElementsByTagName("LiveCurves");
    System.out.println("Num items: " + liveCurvesNodeList.getLength());
    // Get the first node from the node list
    Node liveCurvesNode = liveCurvesNodeList.item(0);
    System.out.println("Live Curves Node: " + liveCurvesNode.getNodeName());
    walkover(liveCurvesNode);
    } catch (Exception ex) {
    System.out.println(ex);

  • Barcode 3 of 9 does not display with text value

    What barcode is standard for a text value? I wanted to scan the document name using a barcode that is standard in our company. Using 3 of 9 gave me an invalid default value. On the form, there was no barcode displayed. The numeric values on the doc displayed correctly with that font. Which barcode font should I use that is standardly recognized on most printers/copiers/scanners?

    That sounds plausible. But it is ominous, too. PDF so far has been mercifully protected from the failure of later versions of systems and applications to remain backwards compatible. If your guess is correct, i shall have to expect more and more PDF documents to arrive unreadble by my version of Preview (which I can't update without updating my whole system and my computer, which in turn would make most of my old textual and musical documents unusable). Preview is so much quicker than Adobe Reader.
    I was recently advised to deal with the problem of all my papers, articles and musical scores becoming unusable in an updated system by converting them all into PDF. If PDF is itself developing in this way, then a time will come (sooner rather than later) when old PDFs will become unreadable in new systems as well as new PDFs being unreadble by old versions of Preview — and, in my case, presumably even by old versions of Adobe Reader.

  • Question on positioning div elements

    I have a wrapper div and a footer div below that. I want to
    center the wrapper div in the middle of the page and then position
    sub elements within this wrapper div. For example, I would like to
    create a "nav" div and an "actual content" div within the wrapper
    div. I learned that I can relatively position the wrapper div to be
    in the middle of a page regardless of screen width and then
    absolutely position the "nav" div and "actual content" within the
    wrapper div. The problem with this is that as soon as I absolutely
    position the "actual content" div within the wrapper div then the
    footer div jumps up the page to be right in the middle of the
    wrapper div when it should be located completely below the wrapper
    div. The other way of doing it would be to relatively position (or
    don't specify) both the nav and actual content divs and just float
    the nav to the left. This seems to work but I am wondering why the
    footer jumped up when I tried to absolutely postion divs in the
    wrapper div. Is there a way to not make the footer jump up and also
    what is the standard way of doing this?

    This may help you understand positioning a bit -
    There are 4 different types of positioning:
    Absolute
    Relative
    Fixed
    Static
    Here is a brief explanation of each kind of positioning (with
    regard to
    placement of elements on the page only)....
    Position:absolute (or A/P elements)
    This does several things -
    1. It 'removes' the element from the flow of the code on
    the page so that
    it can no longer influence the size or position of any other
    page element
    (except for those contained within it, of course).
    2. The absolutely positioned element takes its position from
    the position of
    its closest PARENT *positioned* element - in the
    absence of any explicitly
    positioned parent, this will default to the <body> tag,
    which is always
    positioned
    at 0,0 in the browser viewport.
    This means that it doesn't matter where in the HTML code the
    layer's code
    appears (between <body> and </body>), its
    location on the screen will not
    change (this assumes that you have not positioned the A/P
    element within
    a table or another A/P element, of course).
    Furthermore, the space in
    which
    this element would have appeared were it not positioned
    is not preserved
    on the screen. In other words, absolutely positioned elements
    don't take
    up any space on the page. In fact, they FLOAT over the page.
    Position:relative (or R/P elements)
    In contrast to absolute positioning, a relatively positioned
    page element is
    *not* removed from the flow of the code on the page, so
    it will use the
    spot
    where it would have appeared based on its position in
    the code as its
    zero point reference. If you then supply top, right,
    bottom, or left
    positions
    to the style for this element, those values will be
    used as offsets from
    its
    zero point.
    This means that it DOES matter where in the code the
    relatively positioned
    element appears (, as it will be positioned in that location
    (factoring in
    the offsets) on the screen (this is true for any placement in
    the code).
    Furthermore, the space where this element would have
    appeared is
    preserved in the display, and can therefore affect the
    placement of
    succeeding elements. This means that the taller a relatively
    positioned element is, the more space it forces on the page.
    Position:static
    As with relative position, static positions also "go with
    the flow". An
    element with a static position cannot have values for
    offsets (top, right,
    left, bottom) or if it has them, they will be ignored. Unless
    explicitly
    positioned, all div elements default to static positioning.
    Position:fixed
    A page element with this style will not scroll as the page
    content scrolls.
    Support for this in elements other than page backgrounds is
    quirky
    There are several other things you need to know:
    1. ANY page element can be positioned - paragraphs, tables,
    images, lists,
    etc.
    2. The <div> tag is a BLOCK level tag. This means that
    if it is not
    positioned or explicitly styled otherwise, a) it will always
    begin on a new
    line on the screen, and b) it will always force content to a
    new line below
    it, and c) it will always take up the entire width of its
    container (i.e.,
    width:100%).
    3. The placement of A/P elements *can* affect the BEHAVIOR of
    other
    elements
    on the page. For example, a 'layer' placed over a hyperlink
    will mask that
    hyperlink.
    You can see a good example of the essential difference
    between absolute and
    relative positioning here -
    http://www.great-web-sights.com/g_layersdemo.asp
    You can see a good demonstration of why using layers for a
    page layout tool
    is dangerous here -
    http://www.great-web-sights.com/g_layer-overlap.asp
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Johnny the boy" <[email protected]> wrote
    in message
    news:[email protected]...
    >I have a wrapper div and a footer div below that. I want
    to center the
    >wrapper
    > div in the middle of the page and then position sub
    elements within this
    > wrapper div. For example, I would like to create a "nav"
    div and an
    > "actual
    > content" div within the wrapper div. I learned that I
    can relatively
    > position
    > the wrapper div to be in the middle of a page regardless
    of screen width
    > and
    > then absolutely position the "nav" div and "actual
    content" within the
    > wrapper
    > div. The problem with this is that as soon as I
    absolutely position the
    > "actual content" div within the wrapper div then the
    footer div jumps up
    > the
    > page to be right in the middle of the wrapper div when
    it should be
    > located
    > completely below the wrapper div. The other way of doing
    it would be to
    > relatively position (or don't specify) both the nav and
    actual content
    > divs and
    > just float the nav to the left. This seems to work but I
    am wondering why
    > the
    > footer jumped up when I tried to absolutely postion divs
    in the wrapper
    > div.
    > Is there a way to not make the footer jump up and also
    what is the
    > standard way
    > of doing this?
    >

  • 'Incorrect value type for array element in index N'

    Please help.  Preflight is flagging multiple 'Incorrect value type for array element in index N" > Required key /F is missing >Array element at index 0 is of wrong type' messages for pages throughout my text document with embedded navigation and annotations.What does it mean? Is there anything I can do?
    The origins of the file are from a selection of emails taken from Mail and gmail, and letters probably written on pc (Office) and converted to pdf...
    I'm on Mac Mavericks.
    Thanks for reading.

    What problem are you trying to solve with preflighting? What are you checking for?

  • Trouble selecting text inside an AP Div

    I've been having a problem every time I try to select text within an AP Div container.  Instead fo placing the cursor inside the div, my cursor turns into the hand, and if I'm trying to select, I end up moving the div around.  As far as I know, the "hand" icon should only be there if I hover it over the border of the div itself, or if it is selected at the bottom of the screen (which it is not).
    What I've ended up doing throughout the past few weeks of class is double-clicking to select a word, and then from that point, I can select normally, even after I change divs. That is, until I close and reopen the file.
    Anybody have any ideas why this is, or how to get around it otherwise?
    Eric the Grey

    David_Powers wrote:
    The reason is probably because the text fills the full height of the AP Div. It's usually not a good idea to put text in an element that has a fixed height, particularly an AP Div. If the text size is increased, it will spill out of the div and overlap other elements below it on the page.
    Double-clicking is the correct way to open for editing an element that has more content than its declared height. The alternative is to right-click and select Element View > Full from the context menu. After you have finished editing, press F5 to restore the page.
    Well, the templates I've created had only a few lines within them, no where neare filling up the div's.  Also, they all have overflow set to auto so they generate scroll bars.
    However, if double-clicking is the correct way to open them for editing, I guess that's that.  Your alternate doesn't seem to make any changes at all in respect to this behaviour.
    Although perhaps I should mention that I'm using a Mac (OSX Snow Leopard) to do this, not windows.
    Eric the Grey

  • ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.

    ExternalInterface not working when swf file is embed inside a dynamically cloned DIV element.
    It seems that flash movie is identifed as 'undefined' inside document.
    //a statically placed div
    var staticdiv=document.getElementById('PropDiv');
    //dynamically placed div with object tag
    var dynDiv =staticdiv.cloneNode( true );
    var xD=50;
    var yD=50;
    if(dynDiv)
    dynDiv.style.display  = "block";
    dynDiv.innerHTML="<object classid=" + "\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"" + "codebase=" +
    "\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\"" + "width=" + xD + "height=" + yD +
    "id=" + "\"external\"" + "align=" + "\"middle\"" + ">" +
                    "<param name=" + "\"allowScriptAccess\"" + "value=" + "\"sameDomain\"" + "/>" +
                    "<param name=" + "\"movie\"" + "value=" + "\"external.swf\"" + "/>" +
                    "<param name=" + "\"quality\"" + "value=" + "\"high\"" + "/>" +
                    "<param name=" + "\"wmode\"" + "value=" + "\"transparent\"" + "/>" +
                    "<param name=" + "\"bgcolor\"" + "value=" + "\"#ffffff\"" + "/>" +
                    "<embed src=" + "\"external.swf\"" + "quality=" + "\"high\"" + "wmode=" + "\"transparent\"" +"bgcolor=" + "\"#ffffff\""
    + "width=" + xD + "height=" + yD + "name=" + "\"external\"" + "align=" + "\"middle\"" + "allowScriptAccess=" + "\"sameDomain\"" +
    "type=" + "\"application/x-shockwave-flash\"" + "pluginspage=" + "\"http://www.macromedia.com/go/getflashplayer\"" + "/>" +
                    "</object>";
       dynDiv.style.top=50;
       dynDiv.style.left=100;
    document.body.appendChild(dynDiv);
    In above situation communication is not establised when a  funtion which is retruning boolean is called from flash using
    ExternalInterfcae.call.The return value of this function is getting as false inside flash.But the value is true in javascript.
    if (navigator.appName.indexOf("Microsoft") != -1) {
       return window[movieName];
      } else {
       return document[movieName];
    window["external"] is returning as 'undefined'.
    Please give a  solution to solve this.

    Note that you have different file names for the object (images/banner.swf) and the embed (images/banner1.swf)
    You also placed the embed in the middle of a param tag and nested all param tags.
    Because you didn't include a MIME type and the object doesn't have a classid for an ActiveX control for IE, I'm not sure what Firefox will be using.<br />
    The object doesn't have a data attribute to specify the file.<br />
    A separate embed is only needed when you specify a classid in the object.
    <pre><nowiki><div class="bannercontainer">
    <object width="940" height="445" type="application/x-shockwave-flash" data="images/banner.swf" >
    <param name="wmode" value="transparent" />
    <param name="movie" value="images/banner.swf" />
    </object>
    </div></nowiki></pre>

  • Importing and adding to Taxonomy Text Values

    Hi MDM experts,
    I have loaded a taxonomy, attributes, attribute texts and linked the attributes to nodes in the taxonomy.  I also have products associated to the taxonomy nodes.
    I am now importing data to populate products with the values of the taxonomy attributes. Occasionally, there are new values for the taxonomy text of an attribute in the input file.
    When I import the taxonomy text for an existing attribute which already has several text values, the new value wipes out all the current values, replacing them with the new value for the import.
    For example, the attribute Primary Color has values red, green, yellow. I get a product which has a primary color of blue. When I map using the Taxonomy [Text Values], the only Text value I have left after importing is blue.
    I am using the Update all mapped fields option. I tried the Replace option and got the same results.
    Is there a way to import additional text values and have them add to the existing list of text values for an attribute? I am on MDM version 5.5.63.74.
    thanks,
    morgan

    Hi Sudhanshu,
    You are correct. There is no way to populate an attribute that doesn't exist.
    Here are my observations on importing product attribute data to MDM:
    Import Manager
    1. An input file that has an existing attribute that is not linked to the taxonomy node of the part will map but will not import. The error on import is 'One or more attribute values are invalid'.
    2. A non-existing attribute will not map so you can't import data as long as the new attribute is in your input file.
    Import Server
    1. If there is an exiting attribute in the input file that is not linked to the part's taxonomy node, the import will fail with the error 'One or more attribute values are invalid'.
    2. If there is a new attribute in the input file, the file will import. This tells me the import server just ignores the new attribute.
    Since MDM does not have the concept of a free-form text attribute, the data for that attribute always needs to be added to the list of values for the attribute. This is what I was having a problem with. I found that if you set the Multi-Valued Update option in the Destination pane to Append, the value in the input file will be appended to the existing list of values for the attribute and then it can be used to populate the attribute on the part. (This requires 2 separate imports to populate the part attribute -- unfortunately).
    Hope this helps,
    Morgan

  • Text concatenation to the container element

    HI All,
       I need to concatinate a container element with a hardcoded text and assign it to a different container element.
       exm :
       Set the WF container Workitem text to : u201C<Ledger number>: Waiting for site action u201C
       could you please suggest how to do this as I am new to Workflow ?
    Thanks in advance,
    Chinmaya

    I assume that you want to assigne a  value to a container element you have two possible ways.
    1. Open SWDD Txn give the workflow template number.
    2. At left side bottomm you will find the workflow conatiner on the screen.
    3. Declare a element by double clicking there and on the new subscreen you will find a tab with INITIAL VALUE click on it and specify what evre the value that you want to save in the conatiner element. ( Coz we declared in the conatiner of the workflow so we call it as workflow conatiner element)
    The other way is during run time you want to assign the valule then you ca make use of a standard workflow step CONTAINER OPERATION by using this step you can assign the value at runtime.

Maybe you are looking for