I am trying to call a search query string from a button, which is no problem. However, when I try to get it to load into an iFrame, the wheels fall off. I can load into a new window, or one of the existing normal frames, but not the iFrame. What am I doing wrong?
I have the follwing code for the iFrame:
And the following code to load into it:
@SetTargetFrame(“SearchViewArea”) +
@URLOpen(“http://server/” + DbName + “.nsf/Categorised?SearchView&Query=”+SearchQuery
The code works fine if the @settargetframe is set to anything other than an iFrame.
This must be something easy that I’m missing. Any thoughts?
Cheers!
Subject: Loading view content into iFrame from a form is causing difficulties…
Yeah – Notes doesn’t know about
Subject: Loading view content into iFrame from a form is causing difficulties…
Is there any DOCTYPE garbage on the form you’re using the IFRAME in? Like:
Some doctypes will prevent the IFRAME from working. Try removing it. I’ve encountered this before when a designer designed a site without any content and they wanted to graft a web view and functionnality which the other programmer was unable to program. At first I couldn’t get the IFRAME to load, but eventually found the DOCTYPE to be the problem.
Subject: RE: Loading view content into iFrame from a form is causing difficulties…
I don’t have any in the form itself, but since you’ve mentioned it, I’ve viewed source from the browser and it says I do. Where is that hiding I wonder?
Subject: RE: Loading view content into iFrame from a form is causing difficulties…
That’s not the problem. The problem is that Notes doesn’t “do”
Subject: RE: Loading view content into iFrame from a form is causing difficulties…
Yeah, not sure if that will work for me as I am trying to get a search result from the query string that I posted above. Not sure how I can use JS while keeping the functionality of searching the db’s from the code I already have. This may be a dead end for me.
Subject: RE: Loading view content into iFrame from a form is causing difficulties…
Thanks for the help. I’ll try to shoehorn some js in the button, but it’ll take me a bit as I’ve done it all in LS first.
Thanks a lot and hopefully this solves it.