473,408 Members | 1,841 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Insert Javascript genereted HTML


Hi,

Can I insert HTML that is generated by a javascript function. Instead of
calling that function in <body onLoad> I want to call call it in the
middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>

Thanks,
Prakash.

--
echo ce*****@rpr.nevmban.rqh | perl -pe 'y/A-Za-z/N-ZA-Mn-za-m/'

If you want to make God laugh, tell him your future plans.
-------------------------------------
Printed using 100% recycled electrons
Jul 20 '05 #1
3 12915
Cognition Peon, on Tue, 04 Nov 2003 13:19:19 -0700, had to say:
Can I insert HTML that is generated by a javascript function. Instead of
calling that function in <body onLoad> I want to call call it in the
middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>


function createCalendar(){
document.write("<input type=\"radio\" name=\"area\">\n");
document.write("next-html-line\n");
// and so on
}

Jul 20 '05 #2
Cognition Peon hu kiteb:
Hi,

Can I insert HTML that is generated by a javascript function. Instead
of calling that function in <body onLoad> I want to call call it in
the middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>


Sure you can. I have an example in my sig here.
--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk/en/colours.html
Jul 20 '05 #3
Lee
Cognition Peon said:


Hi,

Can I insert HTML that is generated by a javascript function. Instead of
calling that function in <body onLoad> I want to call call it in the
middle of my HTML code. Here an example.

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<! call function >
javascript:createCalendar();

</FORM>

<FORM name="calendar" method="POST" action="/cgi-bin2/prak_swaccum">
<input type="radio" name="area" checked value="sw">
SouthWest:

<script type="text/javascript">createCalendar()</script>

</FORM>

Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Terry | last post by:
I've tried and tried, and thought I had it figured out, but still the results indicate that I'm wrong. Help is appreciated. I'm merely trying to grab a value from a form and insert it into a...
4
by: Sergio del Amo | last post by:
i, I have the next html page <html> <head> <script> <!-- function insertcode() { var code ="<p> blablabal babala babababab</p><h1>here comes header</h1><span>fadfafa<a...
4
by: keerthana_m_2003 | last post by:
Hello: is it possible to insert the value of some JavaScript variable in the body of HTML (for example the text on button, or at any part of the HTML text part). Please tell me how to do this. ...
6
by: Stefan Mueller | last post by:
The following code (HTML) generates a table. Now I'd like to insert a new row by a javascript. The following code (javascript) works with the Internet Explorer and also with Mozilla. However, the...
1
by: bodilima | last post by:
Dear All, I'm new to this! I wanna insert selected values from form "SaveModel" to form "SaveMake" <input name="makeID" value="<<<<need to insert here(x)>>>>"> & <input name="make"...
1
by: bekkem | last post by:
how to give a hyperlink to view in the following code <script language="javascript" type="text/javascript"> function addtoGrid(){ alert("working"); var...
2
by: adamace5o | last post by:
When i try to use post variables with php and mysql i can't get the insert into statement to accept varibles as values. If i use 'test' instead of $test it does work. I suspect it is something to do...
9
by: sunita jadhav | last post by:
my question is if i type in html textbox on key press event suppose i type 12345 values in textbox then i delete or edit any value of text box suppose i edit 3 and i insert the value 6 at 3 but i...
0
by: studentofknowledge | last post by:
hi my knowledgeable comrads I have created a web form using html, css with the addition of some basic javascript validation. Although now im having trouble to insert this information to my local...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.