Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Jun 2008
    Posts
    67
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Calling an external html form

    I am trying to write an external form and call it up in html or javascript, the one that would be the simplist. i wrote the form in dreamweaver and it has about 30 drop down boxes and 20 text boxes all with one submit button. i want to place this form on a page already on my site (form will change alot that is why i want external).
    my external file starts off with the form action/method tag and then goes straight the the select items. should i have document.write for ever line to use java script or just use html.
    i saved it two ways
    groupform.js
    groupform.htm

    and am trying to call it by placing a html fragment on the page i want to place it on.
    i tried two ways both not working

    [script type="text/javascript" src="http://www.allyscandle.com/index files/groupform.htm"[
    [/script]

    and the same way except groupform.js

    can anyone tell me what i am doing wrong?
    i even tried useing include and had no luck.
    i am totally lost and all the research i have been doing (even went to barnes and nobles and bought $200.00 in books) does not help me with anyhting but the calling of the file, nothing about writing the file. any good websites that give basic writing instructions?

  • #2
    Regular Coder BabyJack's Avatar
    Join Date
    Apr 2008
    Location
    Somewhere.
    Posts
    602
    Thanks
    43
    Thanked 6 Times in 6 Posts
    You're using these tags: [ ]
    Instead of: < >

    In your HTML, for the external .JS file
    Enlightenment in Coding
    Validate before Posting | Google is your friend for PC Problems | Make sure you have a doctype

  • Users who have thanked BabyJack for this post:

    howardfan123 (09-02-2008)

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    If you are trying to include some html other then use some serverside script(if any) to include it.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    New Coder
    Join Date
    Jun 2008
    Posts
    67
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Like an <!--#include
    if so what do i have to put in the external file for that to work

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,863
    Thanks
    160
    Thanked 2,224 Times in 2,211 Posts
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •