Solved

problem with a html file

Posted on 2001-08-27
20
268 Views
Last Modified: 2013-12-18
hai experts,
  i have a html file i put the html file html directory but the problem is when i run like http://abc/test.html its not working properly means its displaying other page.when i click on back button in IE its working fine.i want to display the out put of the html in a perticular frame.
i tried different ways like
1)

i am calling the html onload event of a page

window.open("http://abc/test.html","framename","toolbar=no,scrollbars=yes,width=100,height=1,resizable=false")

2)on the frameset html tab
onload=window.open("http://abc/test.html","framename","toolbar=no,scrollbars=yes,width=100,height=1,resizable=false")
 

can anybody will help me reg this.

waiting for reply.
saleem.
0
Comment
Question by:saleemkhan
  • 11
  • 9
20 Comments
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6428189
Let me see if I get this right :
You have an HTML file in the HTML-directory of your domino server.
You reference your domino webserver as http://abc
If the file is in the root of your HTML-directory (by default you can find this directory under domino\html in your notes data-directory of the server) the url you refer to should be correct. (http://abc/test.html)

If you want this page to display in a particular frame. How do you reference to the page ?
If you have created a hotspot in a notes form or page, you can set the target frame in the properties dialog of the hotspot. Choose URL-link as the type of hotspot, type the correct URL and name of the frame in the other two fields and it should work.

If this doesn't help, please clarify how you are referencing the document and what the html-file is supposed to do.
0
 

Author Comment

by:saleemkhan
ID: 6428255
yes what is said is correct.
My html file test.html is in d:\lotus\domino\data\domino\html.
in the page onload event i am writing
window.open("http://abc/test.html","framename","toolbar=no,scrollbars=yes,width=100,height=1,resizable=false")


and i am referencing this page as framename properties

name: framename

type:namedelement  page

value: pagename
  now the full explantion
i have a database test.nsf
launch properties
when opened in browser :open  designated frameset
frameset: framemain
and i put the database as default url
http://abc/test.nsf.
so when i type http://abc
first it will authenticate then open in the frameset.in the left frame i have some hotspot button.

what i want is after authentication i want to display the output of the html file.
and this is the html code

<html>
<body onLoad="document.form1.submit()">
<form name="form1" action="http://www.abc.com/determine/login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="useranme" value="testuser">
password: <input type="password"  width=40 name="password" value="testpassword">
</form>
</html>


waiting for reply.
saleem.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6428344
If you want to reference this html-page from your frameset, you need to do this as follows :
Select the frame in which you want to launch the page and set the following properties for the frame :
Name : whatever you want
Type : URL
Value : the url to link to your page http://abc/test.html

This will load your page by default in the opened frameset.
If you set anonymous access to your database to no access, you will always be required to authenticate, so you will first authenticate and then the html-file will be loaded in the correct frame.

Hope this helps.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6428348
Is this html-file used to automatically also authenticate with another secure system, using the same username/password as notes ?
0
 

Author Comment

by:saleemkhan
ID: 6428488
No .
The username and password is different for the domino and the username and password passing in  html file is different.
i try to put the url for the page eventhough its going to the login page of the other system and when i click on back button on Internet explorer its working fine.sometimes when i refresh browser its working fine.
  one more strange thing is the html file when i put in someother database its working fine.
  The html file(where its not working) in this database  is having six agents may be because of this.
 But in the previous there is no agent nothing.only html file its working fine.


what may be the cause.

waiting for reply.

saleem.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6430887
When are these agents triggered ? If there's an agent scheduled to run "If Documents Have Been Created or Modified" this would be the agent to look at.
If there's no agent like this, I don't think they have anything to do with the problem.

The problem might even not be in Domino, but with the application that performs the second authentication. Maybe the server isn't responding as it should the first time, and when resubmitting the form (by a browser refresh or back and then again submitting) is responding correctly.
In this case, you need to look into the server running this other application.

How exactly are you calling the form now ? Did you try it the way I described in my previous comment ?
0
 

Author Comment

by:saleemkhan
ID: 6430934
hai jerrith,
   The agent is  manually from action menu and run once @commands used.
  Jerrith today i found new starnage thing is from designer when i click on IEPreview its working fine.The when i type http://abc/test.nsf in ie address bar its not working.

 i tried ur previous commnet.In the page type=url
value="http://abc/test.html".its doing the same.

in my previous comment i sent the html form code.here is the html form code
<html>
<body onLoad="document.form1.submit()">
<form name="form1" action="http://www.abc.com/determine/login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="useranme" value="testuser">
password: <input type="password"  width=40 name="password" value="testpassword">
</form>
</html>



waiting for reply.
saleem.
0
 

Author Comment

by:saleemkhan
ID: 6430946
when i type  http://abc/maintest.nsf in the address bar its showing the login page of the othersystem but when i click on refresh or back button of ie its working fine.This problem is eating my brain so if u help me in this i will be releaved from a big problem.

waiting for reply.
saleem.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6430975
Is your goal to have this logon-form automatically submit ?
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6430984
What do you mean by "it's working fine". What exactly do you want the form to do ?
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:saleemkhan
ID: 6431032
My goal is this form should automatically submit when i run the  database by typing in address bar.
   I want the form should pass username and password to the other system.
 Its working fine means when i preview the database from designer its showing the output what i want.
  If i type http://abc/maintest.nsf in the IE address bar its showing the login form of the other system and when i refresh or click on back button its showing the output.


waiting for reply.
saleem.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6431048
Try to change the line
<body onLoad="document.form1.submit()">
in
<body onLoad="document.form.0.submit()">
0
 

Author Comment

by:saleemkhan
ID: 6431078
hai jerrith,
  I tried  ur comment but i am getting error on page .

line 2
char 14
error expected ";"
code 0
url http://abc/test.html.
 


 i think document.form1.submit()is here form1 is the name of the form u can observe in my html code second line
form name="form1"

<html>
<body onLoad="document.form1.submit()">
<form name="form1" action="http://www.abc.com/determine/login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="useranme" value="testuser">
password: <input type="password"  width=40 name="password" value="testpassword">
</form>
</html>


I have one doubt u want me to mention the form name of the othersystem to which i am submitting.is this solve my problem.


waiting for reply.
saleem.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6431093
In JavaScript you can refer to the form as :
   document.forms[0]
To submit the form you would write :
   document.forms[0].submit()
In the browser this usually gets translated to :
   document.forms.0.submit()

I see i forgot the extra 's' when copy/pasting.

So try :
   <body onLoad="document.forms[0].submit()">
or
   <body onLoad="document.forms.0.submit()">
0
 

Author Comment

by:saleemkhan
ID: 6431187
  jerrith its the same result.but i am not writing any

javascript code whole form code is normal html code.

is there anyevent which fires before onload event.


waiting for reply.
saleem.
0
 
LVL 8

Accepted Solution

by:
Jean Marie Geeraerts earned 25 total points
ID: 6431235
Okay, here's how I got it working :

I created a page in domino designer with property "Treat page contents as HTML" and named test.html
On the page I copy/pasted your HTML-code with one additional line to close the BODY-element :
<html>
<body onLoad="document.form1.submit()">
<form name="form1" action="http://www.abc.com/determine/login.cfm?Action=Login&domino=1" method=post>
username: <input type="text"  width=40 name="useranme" value="testuser">
password: <input type="password"  width=40 name="password" value="testpassword">
</form>
</body>
</html>

Then in the frameset I set one of the frames' content to Named Element, Page, test.html

Now when I opened my testdatabase with the launch option set to my frameset containing the page in one frame, I got a "The page cannot be displayed" which is normal, since I can't link to http://www.abc.com

Try and let me know how you go
0
 

Author Comment

by:saleemkhan
ID: 6431276
Hai jerrith,
              This option i already tried.with this option also first its showing the login form of the other system and when i click on refresh its showing the out put or when i click on back also its working the fine.
 Jerrith its eating my brain.please help jerrith.

waiting for reply.
saleem.
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6431295
Can you email me your sample database ? I'll have a look at it and see if I can locate the problem.
Make sure the default access for your database is at least Designer.
My email address : jean-marie.geeraerts@philips.com
0
 
LVL 8

Expert Comment

by:Jean Marie Geeraerts
ID: 6439847
You wrote in your email :
hai jerrith,
   when i click on back button of IE its working so
what i did is i gave history.go() in the other
system.Now my problem is solved.
  Now what my problem is as u said i gave for the
frame type=url and value="abc.html".
 Now i want to chagne type=named element and page and
value.but the problem is when even i opended the
framset its automatically submitting the form
elements.
now when i right click on frame i just the html code
not the frame properties.how can i do it.

My response:
Are you talking about changing the design of the frameset to use the page from the Notes database in stead of the external HTML-file ?
If this is the case, just open the frameset in your Designer client, right-click the frame for which you want the content to be changed and select "Frame Properties" from the popup-menu. You can now change it back to "Named Element, Page, NameOfYourPageInNotes"
In you designer client, nothing will be submitted automatically.
If this is not what you were asking, let me know.
0
 

Author Comment

by:saleemkhan
ID: 6447168
hai jerrith,
  Thank you very much for helping me a lot.i need ur same help in future.please keep in touch.



saleem.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
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.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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