Solved

JS Form treatment in IE and NS without CGI need ?

Posted on 1998-02-24
9
285 Views
Last Modified: 2013-12-25
Hi fellow experts,

Here is my problem : I've created a Form on one of my HTML pages, and now need to send it by e-mail so that it keeps the same aspect on arrival - I mean I cannot accept receiving all the data of the form sent in one single line of text : it must be presented with the same format used for filling it at start.

The problem I have is my ISP doesn't allow me access to CGI's, so I need to do this in Javascript, and it must be compatible with both Internet Explorer and Netscape - though two different scripts with branching after detecting browser would be ok too.

Is this at all feasible, and how (JS example with one or two fileds, please) ?

If you think this cannot be done and requests a CGI, could you provide an example CGI in C++ (I don't know Perl), though I would prefer the JS solution :-0

Thanks in advance,

Terminus.
0
Comment
Question by:terminus
9 Comments
 
LVL 5

Expert Comment

by:julio011597
ID: 1857551
Well, the easiest way is setting:

<FORM ACTION="mailto:your_address@your.site">

which, as you can see, does not require neither CGI nor JS.

Anyway, form data is sent NOT formatted, so i'll leave this as a comment.

Regards.
0
 
LVL 2

Author Comment

by:terminus
ID: 1857552
Thanks Julio, I knew about the "mailto..." possibility, but the main point here is I need to send the Formatted Form, and I also think the "mailto ..." is NOT compatible with IE3
0
 
LVL 2

Expert Comment

by:gfreeman081597
ID: 1857553
Hi Terminus,

I would suggest you use a third party script.

I use ICQ.  With ICQ you get a pager form on their website, which allows people from the outside to leave me messages on ICQ, even if they don't have ICQ.

I know this isn't sending to email, but it will send to your ICQ address, and if you are online you'll receive it via ICQ immediately.  

To understand what I mean, visit my website and select "Page Me!"
to get an idea of what I'm on about.  You can download it and disect it if you like.

The address is: http://www.the-wire.com/usr/gfreeman
Check it out and leave me a message, I'll echo you the output.

I too had the problem of a cheapo service provider who suggested I upgrade to a commercial account if I wanted to use their scripts.

As an after thought, I know there are free page access counters out on the web, I wonder if there is a place to do Form to Mail CGI for free...?

Mailto: as a form element will not work in IE 3 (nor does anything else for that matter!)

Cheers
0
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1857554
You can't do what you ask without a server-side script.  My suggestion is move your pages to a place that has a server-side script for you to use.  I use Geocities and the output comes just as you are wanting.  You can find them at http://www.geocities.com .  My ISP doesn't allow access to the server as well and I found that moving my pages to Geocities was a simple solution that solved my email form results problems.  However, if your pages are completely business related then Geocities is not the place to go.  The primary topic of the page would have to be of a non-business related topic.  The secondary topic can then advertise your business.
0
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
LVL 2

Author Comment

by:terminus
ID: 1857555
Well, what I would like as an answer - thought I was clear in the question - is an concrete exmaple of how to do this, be it in Javascript, Java or - worst of all - a C++ CGI.
Problem is, yes : this is for bussiness use, so geocities is out of the race : any suggestions for a cheap CGI site access would get bonus points :-) Keep in mind as a bussiness site, response time must be adequate too - which is surely not the case with geocities ;-)
0
 
LVL 5

Expert Comment

by:icd
ID: 1857556
If you ISP will not allow CGI scripts then they will certainly not allow C++ CGI executables!

I feel the only answer to your question, with the conditions you specify, is that - it can't be done.

The 'best' answer is to use a third party script, running on another server, which can be set in the action part of your form.

0
 
LVL 5

Expert Comment

by:icd
ID: 1857557
For free remote hosting of scripts, including mailing of forms, look at the following resource.

http://www.cgi-resources.com/Programs_and_Scripts/Remotely_Hosted/

You will probably find a solution there that satisfies you.

0
 
LVL 3

Expert Comment

by:bigelos
ID: 1857558
Along with the remotely hosted scripts, you could get yourself one of those free accounts at GeoCities, and then just have one page there that does your submitting.  If you do a link to this page inside a frame on your normal web site, I doubt anyone would be able to even see the difference.
0
 
LVL 8

Accepted Solution

by:
MaDdUCK earned 150 total points
ID: 1857559
This is not possible with Java or -Script. If you cannot get CGI access then I suggest trying
http://mailservice.cwak.com/english/
It is a German provider, but the pages are English. I use it for everything and it has great features such as form validation, confirmation pages, server side log, etc etc.
And it is free for all kinds of users, even commercial.
You can download a wizard on the webpage that will help you create the HTML for the form. It is in german, but I promise I will be of assistance ... :-) -- I did not need the wizard in the first place.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to dynamically set the form action using jQuery.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now