Insert Javascript genereted HTML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Cognition Peon

    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:crea teCalendar();

    </FORM>

    Thanks,
    Prakash.

    --
    echo cenxnfu@rpr.nev mban.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
  • Mikhail Esteves

    #2
    Re: Insert Javascript genereted HTML

    Cognition Peon, on Tue, 04 Nov 2003 13:19:19 -0700, had to say:
    [color=blue]
    > 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:crea teCalendar();
    >
    > </FORM>[/color]

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

    Comment

    • Fabian

      #3
      Re: Insert Javascript genereted HTML

      Cognition Peon hu kiteb:
      [color=blue]
      > 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:crea teCalendar();
      >
      > </FORM>[/color]

      Sure you can. I have an example in my sig here.


      --
      --
      Fabian
      Visit my website often and for long periods!



      Comment

      • Lee

        #4
        Re: Insert Javascript genereted HTML

        Cognition Peon said:[color=blue]
        >
        >
        >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:cre ateCalendar();
        >
        ></FORM>[/color]


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

        <script type="text/javascript">cre ateCalendar()</script>

        </FORM>

        Comment

        Working...