Access content inside an inframe from the current gorm

Hi, i have a lotus notes web form in which an iframe inside. Initially the iframe has an input form in which user enters the details and submit the form(the button as well inside the iframe form). When the form is submitted, it redirects to an acknowledgement form.

I want to get the details of which form is loaded inside the iframe. Please guide me. Thanks in advance

Subject: Access content inside an inframe from the current gorm

This is more web dev than domino, and searching google for referencing iframe contents will get you lots of usefui information.

Your iframe should have an ID, assuming your iframes are in the same domain, you can typically reference an iframe through something line parent.iframeid

Subject: RE: Access content inside an inframe from the current gorm

Hi Tyler, thank you for answering. I tried by googling. But if the content which is loaded inside an iframe is a html file, my code works fine. If its a notes web form, the code breaks. I have posted my code. Please help me to check where am missing.

Design element 1: form

Name: mainform

Code:

Design element 2:html file in lotus notes

Name :dummy.html

This is h1 tag

welcome

Design element 3:form

Name:iframeform

this is in iframe form

yourname

/*here yourname is a lotus notes field with id as yourname */

Subject: RE: Access content inside an inframe from the current gorm

You’ve got a lot of alerts in that script, but they aren’t telling you anything useful at all, are they? You’re not checking the variables you’re setting along the way; you’re merely interrupting the progress of the script repeatedly to tell you that nothing has crashed yet.

Also, everything you’re setting depends on the HTML structure of the documents. Have you even thought about looking at the HTML source you’re working with? Do the ids you’re depending on exist?

These are all things you can do without depending on the developer tools that are very likely built into your browser, as Carl suggested. There’s nothing about Domino that changes the way JS and HTML work - you still need to look at the JS and the HTML.

By the way, relative paths using dot notation is a bad idea in Domino development, since forms and documents exist at different hierarchical levels on the web (form and views are at the same level; documents are “inside” of views). Use server-relative paths and @WebDbName.

Subject: RE: Access content inside an inframe from the current gorm

Hi f12 in your browser and debug. Use the inspector to check Ids match what you believe there are.

Did you assign the iframe an ID value in the designer properties for the iFrame?