Inserted HTML problem

I have some html that I'm trying to insert. I've tried both paste and insert via "inser html" in Object. The html "object" comes in without a problem but it shifts my footer to the right for no apparent reason. Remove the object and all returns to normal. I've pasted the html below to see if anyone can spor the glitch.
Paul
<div id="contactForm">
<form action="http://www.galesendpress.com/cgi-bin/gep-contact.pl" method="post" id="contact-form">
<fieldset>
<p><label for="contact">Name: <span>*</span></label><br/><input class="text" type="text" name="contact" id="contact" alt="your name" /></p>
<p><label for="email">Email: <span>*</span></label><br/><input class="text" type="text" name="email" id="email" alt="your email address" /></p>
<p><label for="message">Message: </label><br/><textarea cols="40" rows="10"name="message" id="message"></textarea></p>
<div>
<input class="submit" type="submit" value="Send Message" alt="submit button"
onclick = "if(this.form.email.value == '' ||
    this.form.contact.value == '' ||
    this.form.phone.value == '' ||
    this.form.subject.value == '' ||
    this.form.message.value == ''){alert('Please fill in all fields before sending your message'); return false;};" />
</div>
</fieldset>
</form>

The HTML you're trying to insert is not valid.
You're missing a closing tag for your opening div. Make sure you copy all the embed code from wherever you're getting this HTML from.

Similar Messages

  • Muse cc, object insert html problem

    Select object > insert html, paste the code and I get a box with an 'x' in the upper left hand corner.  This was working fine a couple of days ago, what went wrong??

    Please try to preview in browser and then check.
    Thanks,
    Sanjit

  • Insert HTML and export to PDF problem (ID CS6)

    Greetings,
    A new feature in Indesign CS6 is to insert HTML snippets in an Indesign document via the Object > Insert HTML option.
    This will insert a frame in the page containing the rendered HTML content.
    There are several issues that I have encountered using this feature in Indesign CS6. Can anyone advise if these are bugs/ux issues and provide any alternatives/solutions.
    1) After inserting any HTML content (even the default "This is an HTML snippet"), when I try to export to PDF format (Interactive or Print), the  HTML content or rather its frame container is rendered in black. I've noticed that the HTML content is exported as a image so all I get are black rectangles.
    There is no problem when I try to export to HTML format.
    2) There seems to be a paste size limit in the Insert HTML text area/field as I can only paste 16566 characters of HTML code. (Haven't checked yet if the limit is in characters or tags or newlines).
    3) How can you set such that the HTML object frame will span multiple pages for cases where the HTML content is larger than the height of the page? Since it is not a text frame, I can't find a threading feature or a possible workaround. Or is the "Insert HTML" feature not really applicable for PDF export workflows but only for epubs?
    Thanks

    Oh ok. I guess direct HTML import is still not possible in ID CS6 (either import as XML or convert to DOC/RTF) for PDF export.
    Thanks

  • Inserting HTML/CSS in a Tabbed Panel

    I've been having trouble inserting HTML/CSS into a Tabbed Panel widget. In this case, the HTML/CSS is creating a text box with scroll bars (as described in an excellent workaround for getting scroll bars to work).
    Has anyone else come across this situation?
    Thanks!

    I'm not seeing the same problem (the scrolling text box displays fine in the tabbed panel for me).
    Does your HTML container fit within the content area of the panel?
    Here are screenshots from Muse Design view:
    and Preview in Browser (Firefox):
    When you say it's not working, what exactly do you mean? What's happening?
    Best regards,
    Corey
    Edited: Adding topic on creating scrolling text box for reference: http://forums.adobe.com/message/4327943#4327943)

  • Inserting html into a composition in muse

    Hi, I am trying to insert some html into a composition in Muse.  I would like to have a clickable button trigger, and then a kind of overlay opens up with an interactive calculator inside.  I have the html for the calculator, the problem is no matter how I try to insert it into Muse, the calculator either disappears (as well as the trigger) for some reason, or the calculator stays on the page the entire time, losing the whole clickable effect.
    Can someone tell me the best way to do this?

    Hello,
    Which Composition are you trying to Use ? Blank,Featured News, Lightbox Display, Presentation or Tooltip ?
    Also Make Sure to drag and drop the inserted HTML window over the target (Border of target gets activated once you move it over), Hopefully this will work.
    I created the same using Tooltip composition and its working fine. Please take a look at the link.
    Home
    If it do not work then please share the calculator HTML  code that you are inserting so that I can do some test at my end.
    Regards
    Vivek

  • Insert html

    I am creating a mobile application in indesign and then using DPS...wondering how i can insert the following html...they are learning activities that we created using a seperate application (Hot Potatoes)...i have succesfully integrated them into applications using Dreamweaver and Phonegap but indesign and DPS appears to be the direction that this is moving.  When i try and insert the code into the "insert html" function it doesn't all fit so I am wondering if there is any way to work around this...
    not sure if this is better for the indesign forum or the DPS forum...the code for the activities is below...thanks
    <?xml version="1.0"?>
           <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "xhtml11.dtd">
           <html xmlns="http://www.w3.org/1999/xhtml"
                 xml:lang="en"><head>
    <meta name="author" content="Created with Hot Potatoes by Half-Baked Software, registered to Tim Fanning."></meta>
    <meta name="keywords" content="Hot Potatoes, Hot Potatoes, Half-Baked Software, Java, University of Victoria"></meta>
    <link rel="schema.DC" href="http://purl.org/dc/elements/1.1/" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>
    Acura NSX Commercial
    </title>
    <!-- Made with executable version Java Hot Potatoes 6.1.0.5 -->
    <!-- The following insertion allows you to add your own code directly to this head tag from the configuration screen -->
    <style type="text/css">
    /* This is the CSS stylesheet used in the exercise. */
    /* Elements in square brackets are replaced by data based on configuration settings when the exercise is built. */
    /* BeginCorePageCSS */
    /* Made with executable version Java Hot Potatoes 6.1.0.5 */
    /* Hack to hide a nested Quicktime player from IE, which can't handle it. */
    * html object.MediaPlayerNotForIE {
              display: none;
    body{
              font-family: gill sans, heletevica;
              background-color: #ffffff;
              color: #000000;
              margin-right: 5%;
              margin-left: 5%;
              font-size: 14;
    p{
              text-align: left;
              margin: 0px;
              font-size: 100%;
    table,div,span,td{
              font-size: 100%;
              color: #000000;
    div.Titles{
              padding: 0.5em;;
              text-align: center;
              color: #009900;
    button{
              font-family: gill sans, heletevica;
              font-size: 100%;
              display: inline;
    .ExerciseTitle{
              font-size: 140%;
              color: #009900;
    .ExerciseSubtitle{
              font-size: 120%;
              color: #009900;
    div.StdDiv{
              background-color: #ffffff;
              text-align: center;
              font-size: 100%;
              color: #000000;
              padding: 0.5em;
              border-style: solid;
              border-width: 1px 1px 1px 1px;
              border-color: #000000;
              margin-bottom: 1px;
    /* EndCorePageCSS */
    .RTLText{
              text-align: right;
              font-size: 150%;
              direction: rtl;
              font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", gill sans, heletevica;
    .CentredRTLText{
              text-align: center;
              font-size: 150%;
              direction: rtl;
              font-family: "Simplified Arabic", "Traditional Arabic", "Times New Roman", gill sans, heletevica;
    button p.RTLText{
              text-align: center;
    .RTLGapBox{
              text-align: right;
              font-size: 150%;
              direction: rtl;
              font-family: "Times New Roman", gill sans, heletevica;
    .Guess{
              font-weight: bold;
    .CorrectAnswer{
              font-weight: bold;
    div#Timer{
              padding: 0.25em;
              margin-left: auto;
              margin-right: auto;
              text-align: center;
              color: #009900;
    span#TimerText{
              padding: 0.25em;
              border-width: 1px;
              border-style: solid;
              font-weight: bold;
              display: none;
              color: #009900;
    span.Instructions{
    div.ExerciseText{
    .FeedbackText, .FeedbackText span.CorrectAnswer, .FeedbackText span.Guess, .FeedbackText span.Answer{
              color: #009900;
    .LeftItem{
              font-size: 100%;
              color: #000000;
              text-align: left;
    .RightItem{
              font-weight: bold;
              font-size: 100%;
              color: #000000;
    span.CorrectMark{
    input, textarea{
              font-family: gill sans, heletevica;
              font-size: 120%;
    select{
              font-size: 100%;
    div.Feedback {
              background-color: #ffffff;
              left: 33%;
              width: 34%;
              top: 33%;
              z-index: 1;
              border-style: solid;
              border-width: 1px;
              padding: 5px;
              text-align: center;
              color: #009900;
              position: absolute;
              display: none;
              font-size: 100%;
    div.ExerciseDiv{
              color: #000000;
    /* JMatch flashcard styles */
    table.FlashcardTable{
              background-color: transparent;
              color: #000000;
              border-color: #000000;
              margin-left: 5%;
              margin-right: 5%;
              margin-top: 2em;
              margin-bottom: 2em;
              width: 90%;
              position: relative;
              text-align: center;
              padding: 0px;
    table.FlashcardTable tr{
              border-style: none;
              margin: 0px;
              padding: 0px;
              background-color: #ffffff;
    table.FlashcardTable td.Showing{
              font-size: 140%;
              text-align: center;
              width: 50%;
              display: table-cell;
              padding: 2em;
              margin: 0px;
              border-style: solid;
              border-width: 1px;
              color: #000000;
              background-color: #ffffff;
    table.FlashcardTable td.Hidden{
              display: none;
    /* JMix styles */
    div#SegmentDiv{
              margin-top: 2em;
              margin-bottom: 2em;
              text-align: center;
    a.ExSegment{
              font-size: 120%;
              font-weight: bold;
              text-decoration: none;
              color: #000000;
    span.RemainingWordList{
              font-style: italic;
    div.DropLine {
              position: absolute;
              text-align: center;
              border-bottom-style: solid;
              border-bottom-width: 1px;
              border-bottom-color: #009900;
              width: 80%;
    /* JCloze styles */
    .ClozeWordList{
              text-align: center;
              font-weight: bold;
    div.ClozeBody{
              text-align: left;
              margin-top: 2em;
              margin-bottom: 2em;
              line-height: 2.0
    span.GapSpan{
              font-weight: bold;
    /* JCross styles */
    table.CrosswordGrid{
              margin: auto auto 1em auto;
              border-collapse: collapse;
              padding: 0px;
              background-color: #000000;
    table.CrosswordGrid tbody tr td{
              width: 1.5em;
              height: 1.5em;
              text-align: center;
              vertical-align: middle;
              font-size: 140%;
              padding: 1px;
              margin: 0px;
              border-style: solid;
              border-width: 1px;
              border-color: #000000;
              color: #000000;
    table.CrosswordGrid span{
              color: #000000;
    table.CrosswordGrid td.BlankCell{
              background-color: #000000;
              color: #000000;
    table.CrosswordGrid td.LetterOnlyCell{
              text-align: center;
              vertical-align: middle;
              background-color: #ffffff;
              color: #000000;
              font-weight: bold;
    table.CrosswordGrid td.NumLetterCell{
              text-align: left;
              vertical-align: top;
              background-color: #ffffff;
              color: #000000;
              padding: 1px;
              font-weight: bold;
    .NumLetterCellText{
              cursor: pointer;
              color: #000000;
    .GridNum{
              vertical-align: super;
              font-size: 66%;
              font-weight: bold;
              text-decoration: none;
              color: #000000;
    .GridNum:hover, .GridNum:visited{
              color: #000000;
    table#Clues{
              margin: auto;
              vertical-align: top;
    table#Clues td{
              vertical-align: top;
    table.ClueList{
      margin: auto;
    td.ClueNum{
              text-align: right;
              font-weight: bold;
              vertical-align: top;
    td.Clue{
              text-align: left;
    div#ClueEntry{
              text-align: left;
              margin-bottom: 1em;
    /* Keypad styles */
    div.Keypad{
              text-align: center;
              display: none; /* initially hidden, shown if needed */
              margin-bottom: 0.5em;
    div.Keypad button{
              font-family: gill sans, heletevica;
              font-size: 120%;
              background-color: #ffffff;
              color: #000000;
              width: 2em;
    /* JQuiz styles */
    div.QuestionNavigation{
              text-align: center;
    .QNum{
              margin: 0em 1em 0.5em 1em;
              font-weight: bold;
              vertical-align: middle;
    textarea{
              font-family: gill sans, heletevica;
    .QuestionText{
              text-align: left;
              margin: 0px;
              font-size: 100%;
    .Answer{
              font-size: 120%;
              letter-spacing: 0.1em;
    .PartialAnswer{
              font-size: 120%;
              letter-spacing: 0.1em;
              color: #009900;
    .Highlight{
              color: #000000;
              background-color: #ffff00;
              font-weight: bold;
              font-size: 120%;
    ol.QuizQuestions{
              text-align: left;
              list-style-type: none;
    li.QuizQuestion{
              padding: 1em;
              border-style: solid;
              border-width: 0px 0px 1px 0px;
    ol.MCAnswers{
              text-align: left;
              list-style-type: upper-alpha;
              padding: 1em;
    ol.MCAnswers li{
              margin-bottom: 1em;
    ol.MSelAnswers{
              text-align: left;
              list-style-type: lower-alpha;
              padding: 1em;
    div.ShortAnswer{
              padding: 1em;
    .FuncButton {
              text-align: center;
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              color: #000000;
              background-color: #ffffff;
              border-width: 2px;
              padding: 3px 6px 3px 6px;
              cursor: pointer;
    .FuncButtonUp {
              color: #ffffff;
              text-align: center;
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              background-color: #000000;
              color: #ffffff;
              border-width: 2px;
              padding: 3px 6px 3px 6px;
              cursor: pointer;
    .FuncButtonDown {
              color: #ffffff;
              text-align: center;
              border-style: solid;
              border-left-color: #7f7f7f;
              border-top-color: #7f7f7f;
              border-right-color: #ffffff;
              border-bottom-color: #ffffff;
              background-color: #000000;
              color: #ffffff;
              border-width: 2px;
              padding: 3px 6px 3px 6px;
              cursor: pointer;
    /*BeginNavBarStyle*/
    div.NavButtonBar{
              background-color: #ffffff;
              text-align: center;
              margin: 2px 0px 2px 0px;
              clear: both;
              font-size: 100%;
    .NavButton {
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              background-color: #ffffff;
              color: #000000;
              border-width: 2px;
              cursor: pointer;
    .NavButtonUp {
              border-style: solid;
              border-left-color: #ffffff;
              border-top-color: #ffffff;
              border-right-color: #7f7f7f;
              border-bottom-color: #7f7f7f;
              color: #ffffff;
              background-color: #000000;
              border-width: 2px;
              cursor: pointer;
    .NavButtonDown {
              border-style: solid;
              border-left-color: #7f7f7f;
              border-top-color: #7f7f7f;
              border-right-color: #ffffff;
              border-bottom-color: #ffffff;
              color: #ffffff;
              background-color: #000000;
              border-width: 2px;
              cursor: pointer;
    /*EndNavBarStyle*/
    a{
              color: #009900;
    a:visited{
              color: #009900;
    a:hover{
              color: #009900;
    div.CardStyle {
              position: absolute;
              font-family: gill sans, heletevica;
              font-size: 100%;
              padding: 5px;
              border-style: solid;
              border-width: 1px;
              color: #000000;
              background-color: #ffffff;
              left: -50px;
              top: -50px;
              overflow: visible;
    .rtl{
              text-align: right;
              font-size: 140%;
    </style>
    <script type="text/javascript">
    //<![CDATA[
    <!--
    function Client(){
    //if not a DOM browser, hopeless
              this.min = false; if (document.getElementById){this.min = true;};
              this.ua = navigator.userAgent;
              this.name = navigator.appName;
              this.ver = navigator.appVersion; 
    //Get data about the browser
              this.mac = (this.ver.indexOf('Mac') != -1);
              this.win = (this.ver.indexOf('Windows') != -1);
    //Look for Gecko
              this.gecko = (this.ua.indexOf('Gecko') > 1);
              if (this.gecko){
                        this.geckoVer = parseInt(this.ua.substring(this.ua.indexOf('Gecko')+6, this.ua.length));
                        if (this.geckoVer < 20020000){this.min = false;}
    //Look for Firebird
              this.firebird = (this.ua.indexOf('Firebird') > 1);
    //Look for Safari
              this.safari = (this.ua.indexOf('Safari') > 1);
              if (this.safari){
                        this.gecko = false;
    //Look for IE
              this.ie = (this.ua.indexOf('MSIE') > 0);
              if (this.ie){
                        this.ieVer = parseFloat(this.ua.substring(this.ua.indexOf('MSIE')+5, this.ua.length));
                        if (this.ieVer < 5.5){this.min = false;}
    //Look for Opera
              this.opera = (this.ua.indexOf('Opera') > 0);
              if (this.opera){
                        this.operaVer = parseFloat(this.ua.substring(this.ua.indexOf('Opera')+6, this.ua.length));
                        if (this.operaVer < 7.04){this.min = false;}
              if (this.min == false){
                        alert('Your browser may not be able to handle this page.');
    //Special case for the horrible ie5mac
              this.ie5mac = (this.ie&&this.mac&&(this.ieVer<6));
    var C = new Client();
    //for (prop in C){
    //          alert(prop + ': ' + C[prop]);
    //CODE FOR HANDLING NAV BUTTONS AND FUNCTION BUTTONS
    //[strNavBarJS]
    function NavBtnOver(Btn){
              if (Btn.className != 'NavButtonDown'){Btn.className = 'NavButtonUp';}
    function NavBtnOut(Btn){
              Btn.className = 'NavButton';
    function NavBtnDown(Btn){
              Btn.className = 'NavButtonDown';
    //[/strNavBarJS]
    function FuncBtnOver(Btn){
              if (Btn.className != 'FuncButtonDown'){Btn.className = 'FuncButtonUp';}
    function FuncBtnOut(Btn){
              Btn.className = 'FuncButton';
    function FuncBtnDown(Btn){
              Btn.className = 'FuncButtonDown';
    function FocusAButton(){
              if (document.getElementById('CheckButton1') != null){
                        document.getElementById('CheckButton1').focus();
              else{
                        if (document.getElementById('CheckButton2') != null){
                                  document.getElementById('CheckButton2').focus();
                        else{
                                  document.getElementsByTagName('button')[0].focus();
    //CODE FOR HANDLING DISPLAY OF POPUP FEEDBACK BOX
    var topZ = 1000;
    function ShowMessage(Feedback){
              var Output = Feedback + '<br /><br />';
              document.getElementById('FeedbackContent').innerHTML = Output;
              var FDiv = document.getElementById('FeedbackDiv');
              topZ++;
              FDiv.style.zIndex = topZ;
              FDiv.style.top = TopSettingWithScrollOffset(30) + 'px';
              FDiv.style.display = 'block';
              ShowElements(false, 'input');
              ShowElements(false, 'select');
              ShowElements(false, 'object');
              ShowElements(true, 'object', 'FeedbackContent');
    //Focus the OK button
              setTimeout("document.getElementById('FeedbackOKButton').focus()", 50);
    function ShowElements(Show, TagName, ContainerToReverse){
    // added third argument to allow objects in the feedback box to appear
    //IE bug -- hide all the form elements that will show through the popup
    //FF on Mac bug : doesn't redisplay objects whose visibility is set to visible
    //unless the object's display property is changed
              //get container object (by Id passed in, or use document otherwise)
              TopNode = document.getElementById(ContainerToReverse);
              var Els;
              if (TopNode != null) {
                        Els = TopNode.getElementsByTagName(TagName);
              } else {
                        Els = document.getElementsByTagName(TagName);
              for (var i=0; i<Els.length; i++){
                        if (TagName == "object") {
                                  //manipulate object elements in all browsers
                                  if (Show == true){
                                            Els[i].style.visibility = 'visible';
                                            //get Mac FireFox to manipulate display, to force screen redraw
                                            if (C.mac && C.gecko) {Els[i].style.display = '';}
                                  else{
                                            Els[i].style.visibility = 'hidden';
                                            if (C.mac && C.gecko) {Els[i].style.display = 'none';}
                        else {
                                  // tagName is either input or select (that is, Form Elements)
                                  // ie6 has a problem with Form elements, so manipulate those
                                  if (C.ie) {
                                            if (C.ieVer < 7) {
                                                      if (Show == true){
                                                                Els[i].style.visibility = 'visible';
                                                      else{
                                                                Els[i].style.visibility = 'hidden';
    function HideFeedback(){
              document.getElementById('FeedbackDiv').style.display = 'none';
              ShowElements(true, 'input');
              ShowElements(true, 'select');
              ShowElements(true, 'object');
              if (Finished == true){
                        Finish();
    //GENERAL UTILITY FUNCTIONS AND VARIABLES
    //PAGE DIMENSION FUNCTIONS
    function PageDim(){
    //Get the page width and height
              this.W = 600;
              this.H = 400;
              this.W = document.getElementsByTagName('body')[0].clientWidth;
              this.H = document.getElementsByTagName('body')[0].clientHeight;
    var pg = null;
    function GetPageXY(El) {
              var XY = {x: 0, y: 0};
              while(El){
                        XY.x += El.offsetLeft;
                        XY.y += El.offsetTop;
                        El = El.offsetParent;
              return XY;
    function GetScrollTop(){
              if (typeof(window.pageYOffset) == 'number'){
                        return window.pageYOffset;
              else{
                        if ((document.body)&&(document.body.scrollTop)){
                                  return document.body.scrollTop;
                        else{
                                  if ((document.documentElement)&&(document.documentElement.scrollTop)){
                                            return document.documentElement.scrollTop;
                                  else{
                                            return 0;
    function GetViewportHeight(){
              if (typeof window.innerHeight != 'undefined'){
                        return window.innerHeight;
              else{
                        if (((typeof document.documentElement != 'undefined')&&(typeof document.documentElement.clientHeight !=
         'undefined'))&&(document.documentElement.clientHeight != 0)){
                                  return document.documentElement.clientHeight;
                        else{
                                  return document.getElementsByTagName('body')[0].clientHeight;
    function TopSettingWithScrollOffset(TopPercent){
              var T = Math.floor(GetViewportHeight() * (TopPercent/100));
              return GetScrollTop() + T;
    //CODE FOR AVOIDING LOSS OF DATA WHEN BACKSPACE KEY INVOKES history.back()
    var InTextBox = false;
    function SuppressBackspace(e){
              if (InTextBox == true){return;}
              if (C.ie) {
                        thisKey = window.event.keyCode;
              else {
                        thisKey = e.keyCode;
              var Suppress = false;
              if (thisKey == 8) {
                        Suppress = true;
              if (Suppress == true){
                        if (C.ie){
                                  window.event.returnValue = false;
                                  window.event.cancelBubble = true;
                        else{
                                  e.preventDefault();
    if (C.ie){
              document.attachEvent('onkeydown',SuppressBackspace);
              window.attachEvent('onkeydown',SuppressBackspace);
    else{
              if (window.addEventListener){
                        window.addEventListener('keypress',SuppressBackspace,false);
    function ReduceItems(InArray, ReduceToSize){
              var ItemToDump=0;
              var j=0;
              while (InArray.length > ReduceToSize){
                        ItemToDump = Math.floor(InArray.length*Math.random());
                        InArray.splice(ItemToDump, 1);
    function Shuffle(InArray){
              var Num;
              var Temp = new Array();
              var Len = InArray.length;
              var j = Len;
              for (var i=0; i<Len; i++){
                        Temp[i] = InArray[i];
              for (i=0; i<Len; i++){
                        Num = Math.floor(j  *  Math.random());
                        InArray[i] = Temp[Num];
                        for (var k=Num; k < (j-1); k++) {
                                  Temp[k] = Temp[k+1];
                        j--;
              return InArray;
    function WriteToInstructions(Feedback) {
              document.getElementById('InstructionsDiv').innerHTML = Feedback;
    function EscapeDoubleQuotes(InString){
              return InString.replace(/"/g, '&quot;')
    function TrimString(InString){
            var x = 0;
            if (InString.length != 0) {
                    while ((InString.charAt(InString.length - 1) == '\u0020') || (InString.charAt(InString.length - 1) == '\u000A') || (InString.charAt(InString.length - 1) == '\u000D')){
                            InString = InString.substring(0, InString.length - 1)
                    while ((InString.charAt(0) == '\u0020') || (InString.charAt(0) == '\u000A') || (InString.charAt(0) == '\u000D')){
                            InString = InString.substring(1, InString.length)
                    while (InString.indexOf('  ') != -1) {
                            x = InString.indexOf('  ')
                            InString = InString.substring(0, x) + InString.substring(x+1, InString.length)
                    return InString;
            else {
                    return '';
    function FindLongest(InArray){
              if (InArray.length < 1){return -1;}
              var Longest = 0;
              for (var i=1; i<InArray.length; i++){
                        if (InArray[i].length > InArray[Longest].length){
                                  Longest = i;
              return Longest;
    //UNICODE CHARACTER FUNCTIONS
    function IsCombiningDiacritic(CharNum){
              var Result = (((CharNum >= 0x0300)&&(CharNum <= 0x370))||((CharNum >= 0x20d0)&&(CharNum <= 0x20ff)));
              Result = Result || (((CharNum >= 0x3099)&&(CharNum <= 0x309a))||((CharNum >= 0xfe20)&&(CharNum <= 0xfe23)));
              return Result;
    function IsCJK(CharNum){
              return ((CharNum >= 0x3000)&&(CharNum < 0xd800));
    //SETUP FUNCTIONS
    //BROWSER WILL REFILL TEXT BOXES FROM CACHE IF NOT PREVENTED
    function ClearTextBoxes(){
              var NList = document.getElementsByTagName('input');
              for (var i=0; i<NList.length; i++){
                        if ((NList[i].id.indexOf('Guess') > -1)||(NList[i].id.indexOf('Gap') > -1)){
                                  NList[i].value = '';
                        if (NList[i].id.indexOf('Chk') > -1){
                                  NList[i].checked = '';
    //EXTENSION TO ARRAY OBJECT
    function Array_IndexOf(Input){
              var Result = -1;
              for (var i=0; i<this.length; i++){
                        if (this[i] == Input){
                                  Result = i;
              return Result;
    Array.prototype.indexOf = Array_IndexOf;
    //IE HAS RENDERING BUG WITH BOTTOM NAVBAR
    function RemoveBottomNavBarForIE(){
              if ((C.ie)&&(document.getElementById('Reading') != null)){
                        if (document.getElementById('BottomNavBar') != null){
                                  document.getElementById('TheBody').removeChild(document.getElementById('Bo ttomNavBar'));
    //HOTPOTNET-RELATED CODE
    var HPNStartTime = (new Date()).getTime();
    var SubmissionTimeout = 30000;
    var Detail = ''; //Global that is used to submit tracking data
    function Finish(){
    //If there's a form, fill it out and submit it
              if (document.store != null){
                        Frm = document.store;
                        Frm.starttime.value = HPNStartTime;
                        Frm.endtime.value = (new Date()).getTime();
                        Frm.mark.value = Score;
                        Frm.detail.value = Detail;
                        Frm.submit();
    //JQUIZ CORE JAVASCRIPT CODE
    var CurrQNum = 0;
    var CorrectIndicator = ':-)';
    var IncorrectIndicator = 'X';
    var YourScoreIs = 'Your score is ';
    //New for 6.2.2.0
    var CompletedSoFar = 'Completed so far:';
    var ExerciseCompleted = 'You have completed the exercise.';
    var ShowCompletedSoFar = true;
    var ContinuousScoring = true;
    var CorrectFirstTime = 'Questions answered correctly first time: ';
    var ShowCorrectFirstTime = false;
    var ShuffleQs = false;
    var ShuffleAs = true;
    var DefaultRight = 'Correct!';
    var DefaultWrong = 'Not perfect yet. Please try again.';
    var QsToShow = 9;
    var Score = 0;
    var Finished = false;
    var Qs = null;
    var QArray = new Array();
    var ShowingAllQuestions = false;
    var ShowAllQuestionsCaption = 'Show all questions';
    var ShowOneByOneCaption = 'Show questions one by one';
    var State = new Array();
    var Feedback = '';
    var TimeOver = false;
    var strInstructions = '';
    var Locked = false;
    //The following variable can be used to add a message explaining that
    //the question is finished, so no further marking will take place.
    var strQuestionFinished = '';
    function CompleteEmptyFeedback(){
              var QNum, ANum;
              for (QNum=0; QNum<I.length; QNum++){
    //Only do this if not multi-select
                        if (I[QNum][2] != '3'){
                          for (ANum = 0; ANum<I[QNum][3].length; ANum++){
                                    if (I[QNum][3][ANum][1].length < 1){
                                              if (I[QNum][3][ANum][2] > 0){
                                                        I[QNum][3][ANum][1] = DefaultRight;
                                              else{
                                                        I[QNum][3][ANum][1] = DefaultWrong;
    function SetUpQuestions(){
              var AList = new Array();
              var QList = new Array();
              var i, j;
              Qs = document.getElementById('Questions');
              while (Qs.getElementsByTagName('li').length > 0){
                        QList.push(Qs.removeChild(Qs.getElementsByTagName('li')[0]));
              var DumpItem = 0;
              if (QsToShow > QList.length){
                        QsToShow = QList.length;
              while (QsToShow < QList.length){
                        DumpItem = Math.floor(QList.length*Math.random());
                        for (j=DumpItem; j<(QList.length-1); j++){
                                  QList[j] = QList[j+1];
                        QList.length = QList.length-1;
              if (ShuffleQs == true){
                        QList = Shuffle(QList);
              if (ShuffleAs == true){
                        var As;
                        for (var i=0; i<QList.length; i++){
                                  As = QList[i].getElementsByTagName('ol')[0];
                       

    .oO(dd.l)
    > I want to insert a HTML file( so-called A) in a small
    area in another HTML
    >file( so-called B) .
    > Now the B has been done, and A is from another server
    and its URL is known.
    >How to do that?
    > I'm new to Dreameaver, so anyone can explain or give me
    useful hints?
    Use an iframe. Do a search on Google or use the F1 help for
    details.
    Be aware of possible drawbacks and usability problems,
    dependent on
    what you're actually trying to accomplish.
    Micha

  • Inserting HTML into JTextPane

    Hi,
    I am trying to insert HTML into JTextPane.
    I am using the following code for the same.
    JTextPane jedit = new JTextPane();       
    jedit.setContentType("text/html");
            HTMLDocument doc = (HTMLDocument)jedit.getDocument();
            String text = "<a href=\"???\">hyperlink</a>asd<a href=\"???\">hyperlink123</a>";
            HTMLEditorKit editorKit = (HTMLEditorKit)jedit.getEditorKit();
            editorKit.insertHTML(doc, doc.getLength(), text, 0, 0, null);
            doc.insertString(doc.getLength(),"Hi testing",null);
            text = "<a href=\"???\">hyperlink123</a>";The problem is that the HTML gets inserted into new line. I do not want the new line.
    I know there is an API like insertBeforeEnd(...) but do not know how to use that.
    Any help for the above problem will be of great use.
    Thanks.

    look I have got the answer ... I guess this would be the root cause of the problem of new line.
    when ever you want the text to be inserted
    -at new line provide the last argument  of HTMLDocument.insertHTML as null
    - at same line provide the last argument as the HTML tag you are inserting into the JtextPane's document.thats it !!!
    ENJOY :-)

  • Inserted HTML does NOT push content when resized

    Hi,
    we are building a website for a hotel and are bound to include their channel manager module into the site. In order to do that, you have to follow these steps:
    1. Paste JavaScript code into the head section to load the module.
    2. Place a short line of code with "insert HTML" into the site where the module should appear and that's it.
    The module is generated by a server-side script from the channel manager's server and pasted into an iFrame that is also generated by this very script. The thing is: It resizes the height of the iFrame depending on the displayed content in the iFrame. So we start with 301 px height when we call the page and start the search for free rooms. The results are displayed on a 1400 px iFrame, which resizes properly when showing the results.
    THE PROBLEM: The footers stays put and the iFrame runs behind it and off the display port. There is also no scrollbar showing up allowing me to scroll to the bottom of the iFrame.
    We got three layers:
    3. Top Layer (Containing top navigation and footer, both defined in a master page that is applied to the content page)
    2. Content Layer (Containing the inserted HTML with the generated iFrame)
    1. Background Layer (Well, it contains background elements)
    WE NEED: The footer to be pushed by the ever resizing iFrame and get a scrollbar when neccessary due to iFrame height.
    What are we doing wrong?

    Thank you for your suggestions, although I don't think they will fix the problem.
    We cannot alter the server script in any way, since it is located on the channel manager's server and is just called with a customer id to show our client's hotel related data. They resize the iFrame using an inline height style tag. This causes the page to not recognize the size change and not even showing a scrollbar at all, when the iFrame exceeds the view port.
    We already put a div around the JS-call which expands with the iFrame as expected.
    <div id="u1218"><!-- custom html -->
    <div>
    <script language="javascript" type="text/javascript">
    function();
    </script>
    </div>
    </div>
    This results in an iFrame inserted after the script tag, the div around the script expands correctly. We already removed any master page objects, created a blank new master page to define header and footer areas and pasted our menu and footer directly into the page of question on the same layer as the inserted html box went. So for our understanding the expanding div around the script should push the footer on this page to whereever it ends. It just doesn't. Also we do not get any scrollbar, although the iFrame clearly gets larger than the viewport area and the page just doesn't recognize it.

  • Has anyone gotten "Insert HTML" java applet snippet code to work in Adobe Muse?

    I am trying to insert some code into a page created with Adobe Muse. The insert HTML code snippet, i'm trying to insert is a java.jar file that plays a virtual tour file for the inside of a home. After inserting and then publishing to Catalyst, when viewed in IE, I get a blank box where the applet is suppose to be and it says error.
    Has anyone done something similar and been successful in the past?

    I didn't seem to get any answers, but I think I figured out the problem. Business Catalyst does not support setting file permissions on .jar files (Java Applets) and potentially other kinds of files that I needed to get loaded so that's why I got a generic error.
    The code snippet, I used, worked when I uploaded the site to another hoster that supports distributing .jar files.

  • "null" when trying to insert HTML embed code after 2014.3 update

    I am currently attempting to insert the HTML code of an excel spreadsheet into my adobe muse site. If I copy paste the embed code directly onto the page, nothing happens. If I try the "insert HTML" function, when I paste the embed code there, it simply places "null". I have successfully pasted the same embed code into my muse site before, but the problem began after I updated to Muse 2014.3. Please help me with this as it is inhibiting me from the production of my website where the embedded spreadsheets are extremely important.
    Here is the embed code.
    <iframe width="358" height="900" frameborder="0" scrolling="no" src="https://onedrive.live.com/embed?cid=84CEA296175B532C&resid=84CEA296175B532C%21193&authkey= AP_X9buPgnrR1MM&em=2&ActiveCell='HA_Tier_List'!A3&Item='HA_Tier_List'!A%3AD&wdHideGridline s=True"></iframe>

    I had success using museGrid's 'iFrame Builder' widget. Here's the iFrame that it created...
    <iframe class="actAsDiv" src="https://onedrive.live.com/embed?cid=84CEA296175B532C&resid=84CEA296175B532C%21193&authkey= AP_X9buPgnrR1MM&em=2&ActiveCell=%27HA_Tier_List%27!A3&Item=%27HA_Tier_List%27!A%3AD&wdHide Gridlines=True" style="border:0px #FFFFFF none;" name="myiFrame" scrolling="no" frameborder="0" marginheight="0px" marginwidth="0px" height="900px" width="358px"></iframe>

  • Muse crashes / inserting HTML (embed YouTube code)

    Muse repeatedly crashes upon inserting HTML embded code on Home page. Why?

    Sorry but I don't write in English....io ho risolto il problema usando "https" quando inserisci il codice html in Muse del link del video di Youtube.
    Per esempio
    <iframe width="420" height="236" src="http://www.youtube.com/embed/DcTlvI_Is64?rel=0" frameborder="0" allowfullscreen></iframe>
    diventa
    <iframe width="420" height="236" src="https://www.youtube.com/embed/DcTlvI_Is64?rel=0" frameborder="0" allowfullscreen></iframe>
    Spero che ti sia di aiuto.
    Saluti.

  • Inserting HTML into a table?

    I am trying to find an easier method of inserting html code into a column of type varchar2. I have to insert 100's of lines of html into a table weekly and the inserts keep failing because of special charecters within the html code itself. I have written scripts using UTL_FILE functions but this is very tedious to do weekly. Is there a better method to accomplish inserting html?

    try this.
    Hi,
    procedure start_import (p_filename in varchar2)
    is
    v_lob clob;
    v_offset number := 1;
    v_file bfile := bfilename('IMPORT',p_filename);
    v_lob_length number;
    begin
    -- File open
    dbms_lob.fileopen(v_file);
    -- get file length
    v_lob_length := dbms_lob.getlength(v_file);
    -- Create temp LOB (CACHED)
    dbms_lob.createtemporary(v_lob,TRUE);
    -- fill Temp Lob with filecontent
    dbms_lob.loadfromfile(v_lob,v_file,v_lob_length);
    -- Close file
    dbms_lob.fileclose(v_file);
    So, now you have the Filecontent in your temp LOB.
    For more info. about LOB, read Oracle Documentation.
    Hope this helps,
    Kalpen
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Troy Johnson ([email protected]):
    I am trying to find an easier method of inserting html code into a column of type varchar2. I have to insert 100's of lines of html into a table weekly and the inserts keep failing because of special charecters within the html code itself. I have written scripts using UTL_FILE functions but this is very tedious to do weekly. Is there a better method to accomplish inserting html?<HR></BLOCKQUOTE>
    null

  • How to insert HTML content in a IVIEW

    Hi,
    How to insert HTML content in a iview any body help me with the solution.
    Thanks & Regards
       kiran.B

    Hi,
    You can just spit out HTML in the request object:
    request.write("<B>Whatever</B>");
    Or if you have a single HTML page, you might want to just add it to KM and create an iView from it.
    Hope this helps.
    Daniel

  • Inserted HTML and Images

    Is it possible when inserting html in Muse, to have images within the html text? If we will be using Adobe Catalyst, what will I need to do to properly code the images into the text?

    Hello,
    You can use the <img> tag between the text. More info on : http://www.w3schools.com/tags/tag_img.asp
    In place of Image Path, use "/Assets/Filename.extension" (replace filename.extension with the filename of the image).
    After that use File>Add files for upload and select the image so that it gets added to Assets folder when you Publish the site.
    You might not be able to preview it but you can use File>Export as HTML and view the whole site exported in a local folder.
    Regards,
    Sachin

  • Inserting HTML on a Slide

    Is there a way to insert html code into a slide? I need to place a video on a slide that uses an iframe and a link to a JavaScript file. The video is being delivered from a content management system (Qumu) so I don't have many options. I don't see any way to accomplish this.
    Thanks

    You can put your images in public_html directory.

Maybe you are looking for

  • Can you swap an SSD from a MacBook pro C2Duo to an MacBook pro unibody

    I have a very trusty 17" MacBook pro core 2 duo that's due for an upgrade. Is it possible to swap my current SSD from my MBP C2D to my new 17" MacBook pro unibody? Im thinking there might be a problem with drivers? It will save me a lot of hassle try

  • How to search for music already on my iPhone

    In iOS 6 I could swipe to the left on my Home Screen and search for any file on my phone weather it be music, video, or document. I have over 300 songs on my phone and when I want to play something for someone it now takes a long time to go through a

  • See file size in iTunes?

    Is there any way to see the file size of an item (movie, tv show, audiobook...) in iTunes before purchasing it? Example: I might not want to purchase this audiobook or movie because it will consume half the memory of my Nano so I will pick these othe

  • Nokia C3 Chat application wont work!

    I updated my phone to ver 8.70 now i cant open my Chat app. Help please!

  • Organize pictures in album ascending order

    How can we put the pictures to the most recent first in the album? Some of my albums are ok but some the old pictures are first , I tried to go highlight all pictures in album go to view/sort all projects view but the option by ascending order is not