Solved

how to refer html file in a form

Posted on 2001-08-15
17
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

 

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

Ready to get started with anonymous questions?

It's easy! Check out this step-by-step guide for asking an anonymous question on Experts Exchange.

Question has a verified solution.

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

Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
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.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

615 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