definition of text within the specific Web div object

Hello!  I am trying to find a way to take the text of a text caption and assign it to a specific div inside a Web object.

I tested it with a site regular html with embedded iframe and it works fine, but with Captivate, I can't get the text to a web object.

The WebObject is named CC_box and inside, there is a div tag with an id of 'text' - this is where the text should go.  The text caption containing the text is named CC_source_1 for the first slide, then CC_source_2 for the next, etc.

Here is my code:

var slideNumber = window.cpAPIInterface.getCurrentSlideIndex ();                                Gets the number of the current slide

var ccText = document.getElementById("CC_source_"_+_slideNumber).textContent;     Retrieves the text of a legend of text on a page in progress - works fine

$("#CC_box).contents ().find("#text").html (ccText);                                                          This line of code works perfectly in HTML, but not in Captivate

What is a good way to access this div within the web object of Captivate?

Thank you!

Thank you, I'll try that!

in the meantime I kept trying different things here and found that if I go 'deeper' and call iframe directly as opposed to a container div, everything works, so in this case the following worked:

$("#myFrame_CC_boxc").contents ().find("#text").html (ccText);

Interestingly, Captivate attached a 'c' at the end of the name of the div, so even if I named the CC_box of Web object, we call it actually CC_boxc if you look in the DOM Explorer

Tags: Adobe Captivate

Similar Questions

  • setValue for entering text within the pop-up window giving NullPointerException

    Hi all

    I want to put the value programmactically for entering text within the pop-up window

    I write the following code in the bean (extended view)

    to fill the text to enter the PopupFetchListener

    {} public void setMyInput (myInput RichInputText)

    this.myInput = myInput;

    }

    public RichInputText getMyInput() {}

    return myInput;

    }

    {} public void fetchText (PopupFetchEvent popupFetchEvent)

    Add the code in the event here...

    myInput.setValue ("test"); gives NullPointerException

    }

    JDeveloper 12 c

    First, link component UI (with the exception of fragment) to the scope of request bean.

    Then, try to play with the popup childCreation property (try with immediate)

  • Floating text within the text

    QUESTION: What is the best way to float a box of text within a paragraph of text, such as the floating text does not appear at the top of the paragraph containing?

    BACKGROUND

    (1) I know not how how to float an image captioned with a < p > tag floating at the top of a paragraph (see http://homepage.mac.com/moogoonghwa/practice/CSS/floatedImageInParagraph.html), and

    (2) I know how to float a letter inside a < span > or semantic HTML tag at the top of a paragraph of text (see http://homepage.mac.com/moogoonghwa/practice/CSS/firstLetterOfParagraph.html).

    This time, I want to float a paragraph of text inside another paragraph of the text so that it does not appear at the top of the paragraph. I examined three possibilities:

    The < span > tag
    This option seems preferable, because it is online, and the floating text always appears at the same place in the container < p > tag. I fear, however, that this approach would limit the ways in which I could put in the form the text inside the < span > tag, I could put a tag < p > in a < span > tag, for example? If I remember correctly, the answer is no.

    The < p > tag
    Using the < p > ensure that floating text always appears in the same place in the flow of the document. It would also format text "embedded" in a variety of ways. Unfortunately, it would necessarily be split the paragraph containing two paragraphs.

    The < div > tag
    Although this tag may organize the text incorporated in anyway that I wanted, I fear that this would cause disturbances in the paragraph that contains text similar to that of an inserted [p] tag.

    Roddy

    LAST REPLY

    The three tags that I mentioned - the ,

    , and

    Tags - only tag will work correctly, because it is an inline tag.

    Neither the
    tag, or the

  • How can I configure a secondary Navigation menu expandable linear stands for the specific Web site pages?

    I'm looking to set up a secondary Navigation menu that is customized to specific pages on my site. I tried to do this using the Widgets Library > Menus > Vertical, then dragged the vertical menu on the page. I know how to add sub-pages using the + box, but I want the subpage names at shOE upward in a specific way. The problem I have is, I want the secondary navigation menu to have a specific look, with "pages" of the menu running in the vertical menu format and subpages if poster in a schema extensible sub-navigation form (see image below), so that when I click on a homepage of the sub navig. menu, all the sub pages expand underwear, slightly indented (so that the hierarchy of the pages is obvious). Then, when I click on a different home page and its subpages below expand, I want the subpages of the homepage previously clicked on to disappear. I've seen websites set up in this way and I like the simplicity, the functionality and look of this type of secondary navigation, I don't know how to do. Does anyone know how this can be done? I am ready to go the "long way" If that's what it takes. Thank you. AdobeMuse-SecondaryNavig.jpg

    You can use the widget panel tabs to achieve this. (formatting to your look)

    Just add some text in each Panel and a link to the specific page.

    The only drawback is you wouldn't be able to link the main headings (Commercial... etc)

  • Line or break line break in the text in the UserInterface WEB-Gallery

    How to insert a line break or a line break in the text in the WEB - Gallery UserInterface defined in 'galleryInfo.lrweb '.

    Example:


    Code:

    < pre >

    ToolTip = LOC ' $$$ / AgWPG/Templates/HTML/Panel/WarningIcons/RequiresLarge = change of Image Pages settings are not currently visible.»  Click in the image grid to move to a page of the image. «,

    < / pre >

    Output should be:

    Changes to the settings of the Image of Pages not currently visible.

    Click in the image grid to move to a page of the image.

    Ideas are welcome, thanks.

    \n is a newline and \r is a return to regular text strings.


    is a newline in HTML.

  • Blocks of text within the illustration/container management

    Hello

    One of the things I do most often, as a technical writer, creates frameworks anchored including an illustration, some blocks of text and a few lines that connect them. Import into FrameMaker, a related illustration (or create a frame and import is the illustration), resize the frame surrounding the illustration, and then create blocks of text inside frame illustraton to include captions.

    I would reach the same goal in InDesign CS5, but have yet to understand what is the right way.

    First of all, I assume that the equivalent of "Below the current line" anchored frames, ID, is a framework inserted, that must be repositioned vertically.

    But then, after that I placed a picture in there, I don't know how to add text blocks that remain fixed within the frame of the illustration (the framework 'container', I would call it). It seems to me that any item, other than the illustration cannot be included within this framework 'container '.

    Any suggestion on the other how it would be welcome.

    Best regards

    Paolo

    You'll want to make your artwork and blocks of text as separate objects, and then group them before pasting in the text stream to anchor the group.

  • CTRL + click / SHIFT + click does not not on the specific Web site

    I'm an admin for this blog site: http://undividedblog.org.uk/

    If you use Firefox, I discovered that, for almost all of the links on the site above, perform a CTRL + click or a SHIFT + click the link does not open the link in a new tab or window, but on the contrary is no nothing that either.

    I tested a 22.0 Firefox running on two separate computers, and a Firefox running 16.0.2, and machines/versions behave exactly the same way, i.e. CTRL + click and SHIFT + click the links does nothing.

    By clicking normal on the links behave as expected, navigate to the location of the link. Using the right click > open link in a new tab, or right click > open the link in a new window works fine too.

    I tried CTRL + click and SHIFT + click on the site above using the two Chrome and IE, and they work fine. So I've narrowed the issue down to be something to do with the way Firefox processes the HTML of the site. Firefox on both machines deals very well with links on other sites by doing a CTRL + click or SHIFT + click. but not on this specific site.

    Can someone help me to find out why this is happening? Why is that a problem on Firefox? What is the specific site that Firefox has issues with?

    Thanks long before any wisdom or experience that you can lend to it. She was driving me crazy, as I have always used Firefox and I rely heavily on CTRL/SHIFT + click, especially when doing admin stuff.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Safe mode is a troubleshooting mode, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open Firefox 4.0 + in Safe Mode holding the key SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • Or open the Help menu and click on the restart with the disabled... modules menu item while Firefox is running.

    Once you get the pop-up, simply select "" boot mode safe. "

    If the issue is not present in Firefox Safe Mode, your problem is probably caused by an extension, and you need to understand that one. To do this, please follow article Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems .

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. It might help others who have the same problem.

    Thank you.

  • Find and move text within the existing framework of anchored

    I have a great story that spans several pages text. It contains a number of paragraphs that have the following content:

    [empty anchor for an existing character, but the anchor text frame] [important book that contains NO tab] [TAB] [intermediate text containing NO tab] [TAB] [end text containing NO tab] [empty anchor for an another existing character, but the block of anchor text]

    I need a script (Javascript, preferably) that:

    1. find a paragraph that starts with a character of anchor;

    2. find and cut the main text between the character of the anchor and the first TAB after

    3. Paste the main text in text anchored at the beginning of the paragraph;

    4. in the same paragraph, find the final text between the second (and last) TAB and the character of the second (and last) anchor at the end of the paragraph;

    5. glue the final text under text anchored at the end of the paragraph;

    6. repeat 1. -5. for the paragraph all in the same article that starts with a character of the anchor.


    I'm a JS programmer advanced, but new scripts CreativeSuite. I just understood how to search for some text, and I know that the 'parent' of an anchored object is a 'character' - but now to I access the contents of an object anchored to its parent character?


    Even better:

    function movetoanchored(find) {
      var myText = find.characters.itemByRange(1, -1).texts[0];
      var myFrame = find.characters[0].textFrames[0];
      myText.move(LocationOptions.AT_BEGINNING, myFrame);
    };
    
    function main() {
      var myStory = app.selection[0].parentStory;
      app.findGrepPreferences = app.changeGrepPreferences = null;
      app.findGrepPreferences.findWhat = "^~a\\S+";
      var myFinds = myStory.findGrep(true);
      for (i = 0; i < myFinds.length; i++) movetoanchored(myFinds[i]);
      Window.alert(myFinds.length + " moves performed");
    };
    
    app.doScript(main, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "MoveToAnchored");
    
  • RH8: Centering table page Centers text within the page

    I have a webhelp imported from MS word with plenty of tables. I used a table style to set up tables in word format.

    What I want: table centered on the page. Text inside the left-aligned table.

    What I get previews and webhelp output: Table centered on the page. Text inside table centered in the table

    (In the editor of HR, the table looks at how I want it with the table centered and text aligned to the left)

    I tried setting the text on the normal style, but has done nothing.

    I know I can manually edit the HTML code, but I don't have the time to do it.

    Please see point 24- http://www.grainge.org/pages/authoring/rh8/using_rh8.htm

    See www.grainge.org for creating tips and RoboHelp

    @petergrainge

  • Search for text within the range of specific pages

    Hi all

    I have a pdf document that is 1000 + pages long. I wonder if there is a way to search for certain words in a certain amount of pages; for example, if I wanted to find the term "heart", but only in pages 560-600. Is there a way to do this?

    Thank you very much!

    Hannah

    This option is not available. If you do a Ctrl + F, click on the arrow pointing downwards in the search window and choose "open research to drive full" then "Show more options", you will see all the options available.

  • Change the search engine to the url of the specific Web site

    I have the problem by changing the url of search engine for the url address bar and the search engine plugin. My version of Firefox is 35.

    Specifically, I want to use Google.co.uk for each search, but it goes to a country different from Google.

    I tried to change the subject: config-> keyword. URL: value: "https://www.google.co.uk/#q=", but it does not.

    I have tryied changing the search engine plugin, which does not work either.

    You need to install a search engine for your favorite country, then select this search engine in "Options/Preferences > Search" as the default search engine.

  • Sound for incoming emails with the text of the specific object?

    I want emails coming to make an alert sound and some can't. I know that I can give senders the VIP list and have the phone makes a sound when their emails is available, but I want to base this decision on a specific string in the subject/body of the email, don't not from which it comes. Is this possible with iOS?

    NO.

  • Cut within the specific range

    Hello

    I use MCdaq201 to acquire the signal of a photodiode. What I see in oscilloscope, is a beautiful sinusoid!, exactly what I was expecting. Then, I connect it to PC via MCdaq-USB201, I see a signal which is as he was cut in a specific range. I've attached a screenshot of the output of the program labview and tracerDAQ. Anyone know what could be the reason?

    Thank you

    Petar

    Thanks a lot for all of your helpful tips, YES! We used a preamp between the photodiode and the DAQ hardware and acquired the desired signal.

    And I am really HAPPY!

  • Draw text within the rectangle in OpenGL

    I want to draw text in a rectangle and I also need to make sure that the text does not go beyond the limit. Can someone give me some idea/advice for this problem in OpenGL?

    Yes on the link below.

    https://github.com/BlackBerry/NDK-samples/tree/next/HelloWorldDisplay

  • Prevent the specific Web site to store the user name in the drop-down list

    I have a site that I connect to frequently. Their home page has a login field. If I double-click on this area, it shows me several login names to automatically fill the area with. I want to prevent Firefox (or other) to remember those login names, for safety because of my personal paranoia.

    I'm using Firefox 49.0.2.

    • I added this site to my list of blocking Cookies. New Cookies are not displayed to the top, when I connect.
    • I do NOT have the connections stored for this site (they were removed and new not appear when I enter a name).
    • Firefox does NOT show me the dialog box "do you want to remember?
    • I removed each stored in AutoComplete list in this field by using the 'shift + Delete' keys to select and delete the headings that appear when I double click on the field.
    • The list that appears when I double click is NOT specific to this site... or rather, the entries in the list seem to come from almost any site that I connected. For example, I have deleted all entries in this site, I worry; I have then is come to Mozilla's Support forum and tried connecting; I had to try several times; all of these names that I used on the login field Mozilla now appear in the list for the original site.
    • Curiously... If I hit 'back' after typing my name (causing the site to go to the next page), the name that I typed in the field seems NOT to remember. However, if I click on the button "login" next to the field after you type a user name, the name seems to remember.
    • Even if I disable 'Remember connections... ". "in Firefox, UN I enter this field to remember.

    A screenshot is provided the field of seizure and the drop-down list of names (which I deleted several times).

    I turn off history form of Firefox, so I don't know if this is specific to the site (such as the saved connections) or could possible appear on all sites with a named field in a similar way, which seems a little odd.

    If you clear history of Firefox form feature, is the unwanted suggestion stop appearing? You can do this on the preferences page, Privacy panel:

    "3-bar" menu button (or Firefox) > Preferences

    In the left column, click on privacy. On the right side, if you do not see "conservation rules: use the custom settings for history" go ahead and make that choice.

    Then you can uncheck the box ' Remember search and form history.

    When you return to the site and reload the page, the suggestions disappear?

Maybe you are looking for