Need Help with My iframe

First let me say that I’m new to developing Notes apps for the browser, but I’m very experienced with developing for the client. I’m trying to convert one of my apps to work from a browser. I have several keyword lists on my form and I found some great documentation regarding using iframes to get the keyword list to populate without the page jumping. I’m having a problem that I’m sure is simple to fix but I can’t figure it out.

Here’s a link to the method I’m using. I’ve also seen various posts on this forum using the same method:

Here’s the first few lines of my javascript:

var LOBArray = new Array(""); I get an error right at that var line. It's telling me there is an unterminated string constant. I believe the problem is because I am returning a long list of keywords and the first line is wrapping. If I just display it in the Notes client as text, and not HTML/javascript I get: var LOBArray = new Array(" keyword1","keyword2, etc But the keywords start on the next line instead of right up against the new Array(" I tried setting the text alignment to none and it still doesn't work. What do I need to do to get the keyword list next to my new Array(" so the javascript knows it's continued on the next line? Any help is appreciated. Thanks!

Subject: Need Help with My iframe

I do not think the wrapping is your problem. JS should be able to handle wrapping just fine and it may just be your text editor wrapping the lines for you.

But just to be sure, edit the computed text area to only include the first one or two items from the list. If that doesn’t wrap, it’s only because the text isn’t long enough to wrap.

Normally when these problems occur, it is because one (or more) of the items in the list contains string-delimiting characters.

Try editing your formula so that single- and double qoutes are replaced with something printable. That will give you an indication if that is the problem.

You can often get away with using both single- and double quotes if they are replaced with the HTML equivalents, like " or " for double quotes and ’ for single quote.

ken@noteshound.com