Solved

how to refer html file in a form

Posted on 2001-08-15
17
185 Views
Last Modified: 2013-12-18
hai experts,
  i have html file test.html when i put the html file in default("d:\lotus\domino\data\html") folder its working fine.now i want to refer the same html file in a form or a page.

what i did is i copied the html code and pasted on form
passthru html i am getting uid not found in console.
so i created field uid,password on the form.when i submit i am getting form processed.i created a field named "html" now when i submit i am getting blank page.no error in server console also.
i put the follwing code
<html>
<body>
<form  action="http://www.abc.com/test/cf/Login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="uid">
password:<input type="password"  width=40 name="password">
<input type=submit>

waiting for reponse.

0
Comment
Question by:saleemkhan
  • 9
  • 8
17 Comments
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6391558
I suppose you want to customize the way people login to your domino web server.
The way I did is to setup session authentication and customize the login-form in domcfg.nsf.
By doing this, you don't have to worry about redirecting after the login, domino will do that for you.
If a user clicks on a link to a secure part of your server (where anonymous access is set to no access), domino will automatically present the customized login-form and then redirect to the requested page.
If you need more details about how to setup session authentication and customizing the login-form, let me know. I'll be glad to elaborate.
0
 

Author Comment

by:saleemkhan
ID: 6391676
hai jerrith,
  no not the login problem.from domino to passusername and password to coldfusion application then fetch o fetch data from a coldfusion applicaiton http://www.abc.com/ab.cfm.
  In domino server session authentication is enabled and i customized login from everything is working fine.
  but i am facing a lot of problem  to fetch data from coldfusion application which is running on iis server?
i tried with @urlopen its working fine.
  what i want i want to just pass username and password then
  can u help reg this.

waiting for reply.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6391691
Sorry, never heard of coldfusion, so I don't think I will be able to help you with this one. Maybe another expert can help you...
0
Active Directory Webinar

We all know we need to protect and secure our privileges, but where to start? Join Experts Exchange and ManageEngine on Tuesday, April 11, 2017 10:00 AM PDT to learn how to track and secure privileged users in Active Directory.

 

Author Comment

by:saleemkhan
ID: 6391708
ok no problem can u help

why a html file is working when i put the file in html folder("d:\lotus\domino\data\html\test.html").
the html code i copied and pasted in a form and passthru html i am getting error "uid" not found so i created two text fields with uid and password now when i submit i am getting form processed.so i created $$return.now no error.but not displaying anything on the page.
 my problem is only with html code to pass values.

waiting for reply.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6391746
To redirect domino after form submission, you need to create a $$Return field which is "computed for display" and contains the HTML-code to the location you want to go to between square brackets (for example: "[/homepage.nsf]")

Also hide this field, so the user doesn't see it by checking the hide-when option "Web browsers".
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6391752
Have you tried to put the form's action in the $$Return field ?
0
 

Author Comment

by:saleemkhan
ID: 6391797
HAI JERRITH,
  I CREATED $$return field ->computed for display ->hide from web browser  after that i didnt follow u

i put  html file in d:\lotus\domino\data\test.html and the
same code i put on a form passthru html in the database
test.nsf so can u tell me step by step i have to do.

i want to pass these to the url is
http://www.abc.com/test/cf/login.cfm?action=logoin&domino=1
 
so what to do now?
this is the html code

<html>
<body>
<form  action="http://www.abc.com/test/cf/Login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="uid">
password:<input type="password"  width=40 name="password">
<input type=submit>


i think we are on the way.
waiting for reply.


0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6391810
Okay, try to put the following in the $$Return-field:
"[http://www.abc.com/test/cf/login.cfm?action=login&domino=1]"
Now when you click the submit-button of the form it should call the correct URL.

0
 

Author Comment

by:saleemkhan
ID: 6391982
hai jerrith,
  yes its redirecting to the url but a small problem.
Its not identifying the field "uid".its giving error like this

Error resolving parameter FORM.UID
The specified form field cannot be found. This problem is very likely due to the fact that you have misspelled the form field name.
  so what i did i created two fields uid,password  in domino form and when submitting its giving above error.


can u help me.
waiting for reply.
0
 

Author Comment

by:saleemkhan
ID: 6392015
same code working fine when iput the html file  in d:\lotus\domino\data\html  and run on the http://localhost its working fine.

i forgot to tell to in form i have
1.field name uid        type text
2.field name password    type text
3.field name html         type text  hidden from web
4.field name $$return  type computed
                            for display   hiddenfrom web
5.field name saveoptions type text computed default value 0


May be because of any of the above.something is missing in form only.

waiting for reply.
saleem.
0
 
LVL 8

Accepted Solution

by:
Jean Marie Geeraerts earned 50 total points
ID: 6392038
Try to remove the line :
<form  action="http://www.abc.com/test/cf/Login.cfm?Action=Login&domino=1" method=post>
Since the action is in the $$Return field there's no need to specify a form action like this.
Have you replaced the HTML-code for the input fields by placing a field ?
A few hints for creating the fields :
Locate them as follows :
username : [UID]
password : [password]

Set the first field to be of type 'Text', also in the HTML-properties tab (the last tab of the properties box) type the name of the field (=UID) for 'Id' and optionally specify size=40 parameter in 'Other' to define the width of the field.
Set the second field to be of type 'Password', also in the HTML-properties tab type the name of the field (=password) for 'Id' and optionally specify size=40 in 'Other' to specify the width of the field.

This way the fields should be defined using the correct HTML name tags.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6392045
Just saw your second comment, I'm guessing that if you add the name tags in the HTML-properties of the fields it should be okay. Just enter the names expected by your application in the Id-field.
0
 

Author Comment

by:saleemkhan
ID: 6392150
hai jerrith,
   sorry to ask u silly questions.as u said i removed the form action tag  and this is the follwing code on the form
created two fields
1.field  name=uid type=text but in the last html tab when i tried to place  (=uid) inplace of id getting error id/name must begin with a letter.
same for the password field also.



<html>
username: <input type="text"  width=40 name="uid" value="abc">
password:<input type="password"  width=40 name="password" value="correct">
<input type=submit>
</form>
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6392157
Just leave out the "=" sign, just type UID, I was using the = sign to say name equals UID, my fault for not explainig it clearer.
Same for password field.
Sorry for the confusion,
0
 

Author Comment

by:saleemkhan
ID: 6393204
hai jerrith,
  even the field names are correct i am correct its giving the same error.sorry for the late reply.i went out for some other work.if u have any other idea why the error is coming just help me otherwise i will accept ur answer.


thank u very much for ur fast replies .really i got a very good information from u.

waiting for reply.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6395823
I'm running out of ideas now, myself.
If you gave the correct HTML-name tag through the HTML properties it should work.
One other thing you can try is to set in the form properties the option "Treat Document contents as HTML", this way the whole form gets translated to HTML and it's just as if it was a HTML document. If this doesn't help, I'm puzzled.
0
 

Author Comment

by:saleemkhan
ID: 6403958
hai jerrith,
   Thank u very much for ur fast replies.i put 50 points for the question but i gained a lot of knowledge from.
in future i need ur help.u are great.

my mail saleem99_99@yahoo.com.


if u send me mail i will be greatful to u.


waiting for ur mail.

saleem.

0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.

820 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