Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - JS/HTML Hybrid Function??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedJS/HTML Hybrid Function??

 Post Reply Post Reply
Author
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post Topic: JS/HTML Hybrid Function??
    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?
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Direct Link To This Post 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
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Direct Link To This Post 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?
Back to Top
C.P.A. View Drop Down
Newbie
Newbie


Joined: 26 April 2005
Location: Netherlands
Status: Offline
Points: 26
Direct Link To This Post 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!
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.