Solved

how to refer html file in a form

Posted on 2001-08-15
17
183 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
 

Author Comment

by:saleemkhan
Comment Utility
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
Comment Utility
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
Comment Utility
Have you tried to put the form's action in the $$Return field ?
0
 

Author Comment

by:saleemkhan
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:saleemkhan
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

13 Experts available now in Live!

Get 1:1 Help Now