New topic: Creating a New Page and Load URL?
<http://forums.realsoftware.com/viewtopic.php?t=38292> Page 1 of 1 [ 5 posts ] Previous topic | Next topic Author Message Bob Keeney Post subject: Creating a New Page and Load URL?Posted: Wed Mar 23, 2011 6:56 pm Joined: Fri Sep 30, 2005 11:48 am Posts: 2247 Location: Lenexa, KS Seems somewhat simple, but how do I force the browser to open a URL in a new page? ShowURL puts it in the same window. _________________ Bob K. 30+ hours of Real Studio Video Training (including over 6 hours of Web Edition) at http://www.bkeeney.com/ Real Studio Consulting http://www.bkeeney.com/consulting/real-studio-consulting BKeeney Briefs Blog For Real Studio Developers http://www.bkeeneybriefs.com/ Top swort Post subject: Re: Creating a New Page and Load URL?Posted: Wed Mar 23, 2011 7:22 pm Joined: Mon May 31, 2010 5:35 am Posts: 829 Bob Keeney wrote:Seems somewhat simple, but how do I force the browser to open a URL in a new page? ShowURL puts it in the same window. I thought this was not possible. as your pushing to open new tab, maybe chrome has this feature. ive seen links like: "newtab:http://mysite.com" in my addressbar (chrome). Dont know if it works but currently you can only use links like <a href="http://mysite.com" target="_blank">http://mysite.com</a> And javascript doesnt support this eighter, with exception of google chrome (with google gears you can). _________________ SWORTâ¢, it stands for Secure Web Object Realtime Transfer⢠- Windows Vista AND Linux Ubuntu 10.04 LTS - REAL Studio Enterprise(latest) and WEB Edition(latest) - REAL SQL Server 2009 For Dutch User Groups ask me to enter! Top logicalvue Post subject: Re: Creating a New Page and Load URL?Posted: Wed Mar 23, 2011 8:39 pm Joined: Fri Sep 30, 2005 9:35 am Posts: 575 Location: South Portland, Maine Bob Keeney wrote:Seems somewhat simple, but how do I force the browser to open a URL in a new page? ShowURL puts it in the same window. You can have a WebLink open in a new page by setting the Target property to "New Window", but that only works if the user clicks on the link. The WebPage.Show method has a parameter to open the page in a new window. It doesn't seem to work for me, but if it did then you could put the ShowURL in the new page. Code:Page2.Show(True) // In Page2.Shown event ShowURL("http://www.apple.com") Seems like a bug. _________________ Paul Lefebvre LogicalVue Software, Inc. --- Software Made Simple Blog --- RBDevZone --- Association of RB Professionals Join me at the 2011 REAL Studio Summit, March 19th and 20th in Atlanta! Top swort Post subject: Re: Creating a New Page and Load URL?Posted: Wed Mar 23, 2011 8:43 pm Joined: Mon May 31, 2010 5:35 am Posts: 829 logicalvue wrote:Bob Keeney wrote:Seems somewhat simple, but how do I force the browser to open a URL in a new page? ShowURL puts it in the same window. You can have a WebLink open in a new page by setting the Target property to "New Window", but that only works if the user clicks on the link. The WebPage.Show method has a parameter to open the page in a new window. It doesn't seem to work for me, but if it did then you could put the ShowURL in the new page. Code:Page2.Show(True) // In Page2.Shown event ShowURL("http://www.apple.com") Seems like a bug. ageold one, its not gonna work ask thom... There is no browser that accepts the site to say "hi open this link in a new tab" If you can set the keys (keyboard) by javascript to open new tab, then you can do it... (or contextmenu in browser). It seems like this is not gonna happen in this year... sorry.. Its based on the clients browser settings for opening new "tabs" or in new "window" _________________ SWORTâ¢, it stands for Secure Web Object Realtime Transfer⢠- Windows Vista AND Linux Ubuntu 10.04 LTS - REAL Studio Enterprise(latest) and WEB Edition(latest) - REAL SQL Server 2009 For Dutch User Groups ask me to enter! Top Thom McGrath Post subject: Re: Creating a New Page and Load URL?Posted: Wed Mar 23, 2011 10:58 pm Site Admin Joined: Tue May 06, 2008 1:07 pm Posts: 730 Location: Greater Hartford Area, CT Swort, you are right that we cannot say "new window" vs "new tab" but we can say "new something". Basically, we get to tell the browser that we want to URL in a new view, but what that view is will be up to the browser. So with that in mind, I think a feature request for ShowURL to gain an InNewWindow parameter would be appropriate. I think I've seen one in Feedback before, but I can't check from my iPad. _________________ Thom McGrath - @tekcor Web Framework Architect, REAL Software, Inc. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 5 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]
