Print Page | Close Window

JS/HTML Hybrid Function??

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=14477
Printed Date: 29 March 2026 at 10:15am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: JS/HTML Hybrid Function??
Posted By: ub3rl337ch3ch
Subject: JS/HTML Hybrid Function??
Date Posted: 29 March 2005 at 10:10pm
I was wondering if it is possible to write a javascript function, say for a button, that would write some html to the page.
 
kind of like:
 
<script>
function thefunction(){
</script>
 
this is the html to insert
 
<script>
}
</script>
 
 
possible? or just a pipe dream?
basically what i need to do is add a new row of fields to a form when a button is pressed. Is there any other/better way to do this?



Replies:
Posted By: Mart
Date Posted: 30 March 2005 at 3:14am
just a dream, it will look for the closing bracket in the current script tag, it won't find it so it will throw an error


Posted By: ub3rl337ch3ch
Date Posted: 04 April 2005 at 1:10am
thats what i thought... is there any other way that i can add new rows to a table without having to reload?


Posted By: C.P.A.
Date Posted: 26 April 2005 at 7:22pm
Good news, it is possible... however I would not recommand it.

Some references:
http://msdn.microsoft.com/workshop/author/tables/buildtables.asp

http://www.oreillynet.com/pub/a/javascript/2003/05/06/dannygoodman.html?page=last

Goodluck,

I just got an answer to my post wanna check it out!


-------------
C.P.A. » The more you find out about the world, the more opportunities warmly welcome you.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net