Hi All
I’m doing a web site application where content is managed by the users.
I have a Frameset with 2 frames. LeftNav & Notesview. LeftNav will hold a Form with embedded view. When i populate the leftNav frame with the Form, i want the 2nd Frame to display a ‘splash’ page. This ‘content’ will be ‘replaced’ once the user starts opening documents from the embedded view.
This frameset is called from a Homepage and i want to reuse the same frameset for various pages, rather than creating a seperate frameset for every area of the website.
I can get the onLoad event for the form in the LeftNav frame to launch the required page in the Notesview when i ‘hard code’ the URL
e.g.
parent.NotesView.location.href = “http://mySite/database.nsf/view/docid?openform”
However, when i set the value of the URL in the document and try to call it in the onLoad event, nothing happens.
code example is
parent.NotesView.location.href = document.form[0].splashPageURL.value
splashPageURL exists as a field on the form with the embedded view. I’ve tried the field as editable, computed and computed for display, but to no avail. The field is populated by an @dblookup and i can see the value when in the web browser.
I suspect the problem is that i’m not getting hold of the value from the form, but am not sure what i’m not doing right. I have checked Notes Net and Notes Help, and tried a few different things, but i seem to be getting no where fast.
Any help greatly appreciated.
Andy G