George Payne commented on Nov 9, 2009

Domino AJAX Library/Keyword Refresh

Link to the current working library with a couple of fixes:

http://people.virginia.edu/~ghp5h/dominoAJAX/dominoFunctions.js.txt

Text version (add http):

people.virginia.edu/~ghp5h/dominoAJAX/dominoFunctions.js.txt

George Payne commented on Nov 9, 2009

Domino AJAX Library/Keyword Refresh

George Payne commented on Nov 9, 2009

Domino AJAX Library/Keyword Refresh

Current working library:

http://people.virginia.edu/~ghp5h/dominoAJAX/dominoFunctions.js.txt

Text version of link:

people.virginia.edu/~ghp5h/dominoAJAX/dominoFunctions.js.txt

George Payne commented on Nov 9, 2009

Domino AJAX Library/Keyword Refresh

Here is a link to the working version of the library which has several key fixes for IE. This link was here before but got deleted from comments for some reason:

http://people.virginia.edu/~ghp5h/dominoAJAX/dominoFunctions.js.txt

Text version of link:

people.virginia.edu/~ghp5h/dominoAJAX/dominoFunctions.js.txt

George Payne commented on Oct 7, 2009

Untitled

In case there are other errors introduced via cutting and pasting to the wiki, here is a link to a text copy of the current working version of the library:

{ Link }

If you're having problems getting it working, get firebug--it is a great tool for debugging javascript (though you do, at least in older versions, need to turn network monitoring off in firebug to get more than one async ajax call to work without refreshing the browser).

Jeremy W Deal commented on Jul 22, 2009

Domino AJAX Library/Keyword Refresh

I love this code thank you for posting it, I see many possibilities here but I'm having the identical problem as "Nikhil Shah" (in comment #4). I have put alerts in the code to test functions and calls to make sure they are working and they all are firing properly except the PostKeywordRefresh(){}. It would be nice to have a small working NotesDb to download to dissect, any help would be appreciated.

George Payne commented on Jun 5, 2008

Domino AJAX Library/Keyword Refresh

Another fix for IE in refreshKeywords function above:

keyGlobal=new Array(1);

keyGlobal[0]=source.value;

should be:

keyGlobal=new Array(1); keyGlobal[0]=((source.options[source.selectedIndex].getAttribute('value'))? source.options[source.selectedIndex].value : source.options[source.selectedIndex].text );

I'm afraid wiki page above will lose all formatting and indents if I fix it...

George Payne commented on Jun 4, 2008

Domino AJAX Library/Keyword Refresh

Also noticed that the login=1 in the lookup urls may cause issues for folks using anonymous access to their views. You can search and replace "&login=1" (3 locations) and remove it. (that's login-1 preceded by an ampersand, if the editor removes it from this post.

George Payne commented on Jun 2, 2008

Domino AJAX Library/Keyword Refresh

In response to Matt's note above:

The function he's referring to is actually the removeDuplicates prototype function, not the incrementString function. This was provided as a utility, but is not actually used and can be removed if desired.

It does look, as Matt said like the editor deleted a part of the loop counter, and if you want to fix it, it should look like this ("Less than" symbol replaced by "LT" so editor won't eat it again):

for(i=0;i LT this.length;i++)

Nikhil Shah commented on Jun 2, 2008

Domino AJAX Library/Keyword Refresh

Its not working for me -

See i have 2 dropdown fields on the form -

1.DbName

2.DbForm

Now i want to populate the elements of DbForm dropdown field without refresh based on the selection of the DbName field .

So i call the following function onChange of DbName field -

refreshKeywords(this,"vDBFormConfig",2,"DbForm")

Also i copied following function in JS header -

function onPostKeywordRefresh()

{

// custom things that happen depending on which source field was changed. You might want to show/hide fields, e.g.

}

I have also included the dominoFunctions.js script library into the form.

But for me its not working.

Do i need to do anything else ? Please guide me.

Matt commented on Apr 23, 2008

Domino AJAX Library/Keyword Refresh

In the function incrementString(val) the For Loop is missing information this is whats posted for(i=0;i

George Payne commented on Feb 1, 2008

Domino AJAX Library/Keyword Refresh

looks like the editor axed my library include above (it's blank). It's a standard js library include, like this (leaving out angle brackets):

script type=\"text/javascript\" src=\"/js/dominoFunctions.js\"

George Payne commented on Feb 1, 2008

Domino AJAX Library/Keyword Refresh

Looks like this HTML editor loses indents on repeated saves, so I was unable to clean up a couple of things, for fear of losing the rest of the indents. If formatting gets hosed, you can fix it with this handy tool:

{ Link }