PDA

View Full Version : how to call "form" from outside ..like .js files?


kab_184
11-03-2002, 08:06 AM
hi how is it possible to call "form" field from external file like we call js. files thru src. is it possible ..?

joh6nn
11-03-2002, 08:24 AM
could you try and explain this a bit more clearly, please?

kab_184
11-03-2002, 08:36 AM
when we want to use same navigation (e.g) we make a separate file called exxample.js(e.g) ..now we can call this files into a page by simply puttting one line in the page...like
<script language=javascript src=exxample.js></script>

now if we have a sumission form..in html ..and we have to use it in lots of pages..so can we do the same with <form>.......</form>
that is maing a separate file containing that <form>....</form> and hten calling it into a page just like we call exxample.js
can it b done?

joh6nn
11-03-2002, 09:10 AM
there are a couple of ways to do this. one, is to make a separate .js file, and have it be document.write('<form> ... '</form>'); . another way to do this, is what what's called server side includes. here's a link explaining server side includes: http://www.bignosebird.com/ssi.shtml . be sure to ask your hosting provide if you have them; not all hosts have them installed.