This is an archived, read-only copy of the United-TI subforum , including posts and topic from May 2003 to April 2012. If you would like to discuss any of the topics in this forum, you can visit Cemetech's Calculator Programming subforum. Some of these topics may also be directly-linked to active Cemetech topics. If you are a Cemetech member with a linked United-TI account, you can link United-TI topics here with your current Cemetech topics.

This forum is locked: you cannot post, reply to, or edit topics. General Coding and Design => Calculator Programming
Author Message
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 07 Jul 2005 06:44:34 pm    Post subject:

The following works in IE but not in Firefox, I have no idea why..

I can add alert( container ) and it shows the data corrrectly, so that reference is working ok,

appendChild() is compatible with Mozilla, so that should be ok too,

when put in a try/catch it doesn't give any errors. :(


Code:
<html>

<head>
<title> element add test </title>
<script language="javascript">
function test( objContainer ) {
objElement = document.createElement( "<textarea style=\"width: 100%;\" name\"consolehistory\" cols=\"120\" rows=\"6\" readonly=\"true\">" );
objContainer.appendChild( objElement );
}
</script>
</head>

<body>

<form onclick="test( this )"> CLICK HERE FOR TEST </form>

</body>

</html>


Any thoughts?


Last edited by Guest on 07 Jul 2005 06:47:32 pm; edited 1 time in total
Back to top
Arcane Wizard
`semi-hippie`


Super Elite (Last Title)


Joined: 02 Jun 2003
Posts: 8993

Posted: 24 Jul 2005 04:53:38 am    Post subject:

Figured out how to do it properly a while ago:

ifrm = document.createElement( "IFRAME" );
ifrm.setAttribute( "name", "consolehistory" );
ifrm.setAttribute( "cols", "120" );
ifrm.setAttribute( "rows", "6" );
ifrm.setAttribute( "readonly", "true" );
ifrm.style.width = 100 + "%";
document.body.appendChild( ifrm );
Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    »
» View previous topic :: View next topic  
Page 1 of 1 » All times are UTC - 5 Hours

 

Advertisement