Guest User

Untitled

a guest
Jul 20th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <h:commandLink id="area1" onclick="dlg.show()">
  2. ...
  3. </h:commandLink>
  4.  
  5. <ppctu:dialog onCloseUpdate="... here is all the component ids from the dialog content ..." modal="true" widgetVar="dlg">
  6.  
  7. function getFile(url) {
  8. if (window.XMLHttpRequest) {
  9. AJAX=new XMLHttpRequest();
  10. } else {
  11. AJAX=new ActiveXObject("Microsoft.XMLHTTP");
  12. }
  13. if (AJAX) {
  14. AJAX.open("GET", url, false); //notice the 'false' attribute
  15. AJAX.send(null);
  16. return AJAX.responseText;
  17. } else {
  18. return false;
  19. }
  20. }
Add Comment
Please, Sign In to add comment