...

View Full Version : Format Gif source in Textbox



lor2000
10-18-2008, 12:50 PM
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 :thumbsup:

<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>

lor2000
10-18-2008, 01:03 PM
:thumbsup:
Hello I got to work :thumbsup:


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

Sorry



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum