Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-18-2008, 11:50 AM   PM User | #1
lor2000
New Coder

 
Join Date: May 2008
Posts: 25
Thanks: 4
Thanked 0 Times in 0 Posts
lor2000 is an unknown quantity at this point
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>



lor2000 is offline   Reply With Quote
Old 10-18-2008, 12:03 PM   PM User | #2
lor2000
New Coder

 
Join Date: May 2008
Posts: 25
Thanks: 4
Thanked 0 Times in 0 Posts
lor2000 is an unknown quantity at this point
Format Gif source in Textbox


Hello I got to work


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

Sorry
lor2000 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:51 AM.


Advertisement
Log in to turn off these ads.