New topic: Open a new window
<http://forums.realsoftware.com/viewtopic.php?t=47429> Page 1 of 1 [ 2 posts ] Previous topic | Next topic Author Message sergiotamborini Post subject: Open a new windowPosted: Thu Mar 28, 2013 11:22 am Joined: Tue Feb 06, 2007 6:11 am Posts: 73 Hello all! I'm in trouble... Into a webapp I have a button that produce a pdf. On iOs it works nice, but it open the pdf in the same window of my app, so when i go back with the browser, i have to log-in again into my app... Is possible to open the pdf into a new window of the browser, so I can avoid to login every time I produce a pdf? Many thanks for help! Top taylor-design Post subject: Re: Open a new windowPosted: Thu Mar 28, 2013 12:29 pm Joined: Wed Mar 22, 2006 11:15 am Posts: 637 Location: Southern California To reliably open a new window you must use a WebLink with a Target of New Window, and the user must click the link. That way the browser knows the window is user requested and not an unrequested popup. I have freeware available at http://webcustomcontrols.com/?p=628 which allows you to add links to WebButtons and WebImageViews, allowing the user to open a new window from a regular button or image. If you produce the PDF in the button's Action event you will have to move that some where else (i.e. Shown) and set your PDF link before the control is clicked by the user. If the PDF has to be created at the time the control is clicked, then you will probably have to set the link to a Special URL, and build/deliver the PDF from the Application.HandleSpecialURL event. Hope this helps! _________________ Daniel L. Taylor Custom Controls for Real Studio WE! Visit: http://www.webcustomcontrols.com/ Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 2 posts ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
