What is the difference between these two? I can't figure out reading documentation. On the webpage with API documentation there is a link to an example but the events are not used there.
Related
I am developing an application on xpages and would like to put a wait message while there is an ongoing processing. There are several articles that indicate how to do, but this only functional with partial update. I need the message, preferably with lock and an animated gif to work with the full update.
Problem is that a full refresh will reload the page, to get this working you need to load the page inside an iframe and place the standby code in the top page.
If you do something you need to call parent.window.dothestandby()
and in onload on the page inside the iframe call parent.window.hidestandy()
Take a look at this NotesIn9 video by David Leedy and watch from 5 minutes and see if it helps:
http://www.notesin9.com/2016/02/19/notesin9-188-adding-a-please-wait-to-xpages/
What I did was use the technique described in the link below, from an article by Brad Balassaits. In the various techniques mentioned, I implemented the one that inserts the waiting animated gif into the triggered button. From the techniques suggested and researched this was the one that would least impact when there are changes of adjustments in the application.
Brad Balassaiti article
I am using Primefaces DataTable to display content in a grid. I want to reorder these rows using drag and drop(shuffle), I have tried jquery sortable, it works only ones, after that I need to refresh the browser.
Is there any way to implement that?
Thanks a lot
This feature is now available from PrimeFaces 5.0:
Usage is very simple by just enabling draggableRows option and also an optional rowReorder ajax behavior is provided getting a ReorderEvent with index information for flexibility.
Source : http://blog.primefaces.org/?p=3026
You can also have a look at the showcase here: http://www.primefaces.org/showcase/ui/data/datatable/reorder.xhtml
There is currently no way to have row-sorting with server side effects. You can achieve client side reordering using jQuery, but this is not stored on the server.
$('.ui-datatable tbody').sortable();
There is a discussion on the PrimeFaces forum.
There is also an issue about drag/drop capability in PrimeFaces' issue tracker. Note that the issue is closed as WontFix, so I guess you're out of luck.
Why can't I see the onComplete event in my 8.5.3 Designer client for any control? I had to manually type in this.onComplete? A screenshot of where it's meant to appear would be really appreciated.
Many thanks.
It doesn't show that easy, I don't know why IBM has hidden it.
You can find it. if you have an object that has some other event specified.
in the outline window, there will be a event handler click on this.
Then in the properties panel you will se the oncomplete. Easy no.
I'm currently using the Rich Text Editor from the YUI framework. But I don't know how I can run a function when the content of the editor has changed. Want to do this to give the user a message if they leave the site and there is unsaved changes.
Any idea anyone? :)
I think you want the 'afterNodeChange' event.
Study the API for the Events. It is there that you will find the answers that you seek :-)
editorKeyPress event gives almost all functionality of onchange() html event.
Does anyone know of a good javascript menu using the prototype library.
I need to produce a list of links available for each row of a HTML table as a hover/click dropdown menu.
Constraints
The list of links is the same for every row, however, a link needs to post an id param unique to the row.
The table is in a scroll pane, so the menu needs to know if if should render itself on the other side of the associated HTML element (e.g. TD) if necessary for visiblity.
I've found some a nice plugin for the JQuery library, but don't currently use JQuery and would like to avoid adding it if possible. I am already using prototype 1.6.
The author of the blog post below has used prototype to create a drop-down JS menu. I don't think it fits the bill for everything you're looking for, but it should give you a starting point.
http://www.blog.highub.com/javascript/javascript-library/prototype-drop-down-menu/