From: Tony S. <ant...@gm...> - 2016-10-05 17:17:33
|
I am using HtmlUnit to read and respond a webpage that contains a JavaScript/Ajax dialog function. This webpage present a JavaScript *dialog* box. I need to answer this dialog (in the affirmative) to see the page under it. I've searched but could not find an answer. I'm new to JavaScript, Here is the JavaScript relative code snippet from the server's web page. $(document).ready(function() { $('#divSaleInfo').hide(); DisplayTerms(); }); function DisplayTerms() { $("#divTerms").dialog({ modal: true, resizable: true, hide: { effect: 'slide', direction: 'right' }, show: { effect: 'slide', direction: 'right' }, height: 500, width: 600, buttons: { "Agree": function() { TermsAccepted(); $(this).dialog("close"); }, "Cancel": function() { $(this).dialog("close"); window.location = "/"; } }, title: "TERMS AND CONDITIONS FOR USE OF THIS WEB SITE", overlay: { opacity: 0.5, background: "black" } }); $('#divTerms').dialog('open');} -- Cheers, Tony Sterrett ant...@gm... General propositions do not decide concrete cases. —Oliver Wendell Holmes |