Link to home
Start Free TrialLog in
Avatar of saleemkhan
saleemkhan

asked on

problem with a html file

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.
Avatar of Jean Marie Geeraerts
Jean Marie Geeraerts
Flag of Belgium image

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.
Avatar of saleemkhan
saleemkhan

ASKER

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.
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.
Is this html-file used to automatically also authenticate with another secure system, using the same username/password as notes ?
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.
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 ?
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.
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.
Is your goal to have this logon-form automatically submit ?
What do you mean by "it's working fine". What exactly do you want the form to do ?
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.
Try to change the line
<body onLoad="document.form1.submit()">
in
<body onLoad="document.form.0.submit()">
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.
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()">
  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.
ASKER CERTIFIED SOLUTION
Avatar of Jean Marie Geeraerts
Jean Marie Geeraerts
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
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
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.
hai jerrith,
  Thank you very much for helping me a lot.i need ur same help in future.please keep in touch.



saleem.