Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Smile Format Gif source in Textbox

    Good morning!

    // How do I format a link source as follows in textareaBox1.value

    textareaBox1.value="<input type="image" src="/images/btn-join.gif" />)";

    // It returns an error i'm missing ' "" ? any help will be appreciated!


    I tried
    textareaBox1.value="<input type="image" src="/images/btn-join.gif" />)";
    textareaBox1.value=" '<input type="image" src="/images/btn-join.gif" ' />)";
    textareaBox1.value=""<input type="image" src="/images/btn-join.gif" />)"";

    // all returns an Error in my javascript




    // I'm still working on my controls button iframe2 ect in planning stages to say.
    // how do I format preserve the html/javscript code in textareabox1
    // I want to copy to iframe later change the link
    // e.g /images/btn-join.gif" /images/btn-join1.gif" then click update button
    // and have it show up in my 2nd iframe. thanks

    <script type="text/javascript">
    <!--
    function populateIframe() {
    var ifrm = document.getElementById('myIframe');
    ifrm = (ifrm.contentWindow) ? ifrm.contentWindow : (ifrm.contentDocument.document) ?

    ifrm.contentDocument.document : ifrm.contentDocument;
    ifrm.document.open();
    ifrm.document.write(jobleadbldcompname.value);
    ifrm.document.write('<br>Thanks');
    ifrm.document.write('<input type="image"+');
    ifrm.document.write(' src="/images/btn-join.gif" />');

    ifrm.document.write('<br>Thanks1');
    ifrm.document.write('<input type="image" src="/images/btn-join.gif" />');
    ifrm.document.write('<input type="image" src="/images/btn-join.gif" />');
    ifrm.document.write('<input type="image" src="/images/btn-join.gif" />');

    ifrm.document.close();

    // works until I get here

    textareaBox1.value="<input type="image" src="/images/btn-join.gif" />)";
    }
    //-->
    </script>




  • #2
    New Coder
    Join Date
    May 2008
    Posts
    25
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Format Gif source in Textbox


    Hello I got to work


    textareabox1.value='<input type="image" src="/images/btn-join.gif" />)';

    Sorry


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •