Hi all i am working on adobe air with javascript and html. I want to open print dialogbox for print the page on the button click event and load this page to print.please help me
Print dialog opens when PrintJob.start() is called. If it returns true, user has confirmed printing, if false - canceled.
Related
I have a webpage with a form on it, and a beforeunload event.
When the page first loads, if the form is changed, a confirmation message appears on both Safari and Chrome.
In Chrome - if i press "leave page" and then return to the page, future changes keep invoking the conformation upon attempt to leave the page.
In Safari - if i press "leave page" and then return to the page, future changes to the form don't invoke the message when leaving the page, and the target page is loaded without problems.
If i refresh the page, the confirmation "resets".
I develop using Oracle Apex 5.1, but according to different forums this happens regardless of the platform:
https://github.com/codedance/jquery.AreYouSure/issues/112
Can you help me find a workaround?
Can i "Reset" safari without refreshing the page?
I have a fillable pdf on my website displaying inside an iframe. I created a Save button at the end of it through adobe acrobat professional, it is suppose to trigger Save As action ... However I cannot click on that button. Any suggestions?
I have a page with a viewPanel and a dialog. When an item in the viewPanel is clicked, the dialog opens, prompting the user to make changes to that item, and offering them the option to generate a report of the item in PDF format.
At first, I tried putting the PDF creation onto a button, as described here: http://www.eknori.de/2011-10-25/xpages-to-pdf-with-itext/ However, whenever the button is pressed, I get a "NotFoundError: DOM Exception 8" which seems to stem from the dojo JS. So currently I have an alternative whereby the button simply sets some sessionScope variables and opens a pdf.xsp XPage, where the variables are read back and the PDF is created.
The PDF gets created correctly, but it also means that the page that the user is on won't be refreshed to display their new change in the viewPanel. I've tried adding page redirects at the bottom of the XPage which creates the PDF, but with no luck.
So, how can I create a PDF and prompt a user to download it, but also refresh the page that they are currently on?
Are you isseuing an partial refresh on the button to hide your dialog and to execute the code for pdf generation? If so you I think that there is your problem. What you could do is to do a partial refresh on the onClose() method of the dialog to refresh the viewpanel. In the clientside onunload method you could open a so called xAgent which renders the pdf for you in a new window (window.open(pdf.xsp?docid=xxx). Take a look here: NotesIn9: 039 Creating PDF’s with XPages Part 2
Of cours the problem with this approach is that when you have a button / image in yoru viewpanel row that displays if the report has been created is not shown because the xagent runs after the / during the time the viewpanel row is being refreshed.
We are in process of testing our current web application in IE10(compatibility mode). Throughout our application we use showModelDialog method and title of dialog message always end up with #Name? i.e. if title of page is My, then title appears on dialog window is My#Name?. Please use the link below to see the problem in action.
http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/showModalDialog2.htm
Set dialog height using drop down and then click 'Push To Create' button. Dialog appears on the screen has title end with #Name?.
In earlier versions of IE it used to be Webpage Dialog.
Is there any way to get rid of the #Name? and I do not want to use spaces after the title as there still appears ... at the end of title.
Thanks,
I use a webbrowser control (in C# - latest version of visual studio and .NET) to allow me to read and write data to a specific web page. Everything is OK until I reach the point that the page attempts to open a pdf document in a new window (the page contains javascript code).
The new window opens OK on my IE. But nothing appears when the webbrowser control opens the new window...
I've tried setting firefox as my default browser to see if it makes any difference but no good came out of it. The webbrowser control still opened IE.
I've tried catching the event of the new window and refer the url to another webbrowser control... no success again!
How can I get the pdf document? And why would the new window open but not display the pdf?