Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Programming > Javascript and Ajax
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

Javascript and Ajax Questions and information about working with Ajax and Javascript in Delphi for PHP.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 7th January 2009, 00:37
alquimista's Avatar
D4PHP Guru
 
Join Date: Aug 2008
Location: Guadalajara, México
Posts: 237
alquimista is on a distinguished road
Default Disable toolbar in browser

Hi,

In JS I know how to open a new window from an existing page, having the new browser window opened with no toolbar (navigation buttons). "window.open(parameters....)"

How can I do it when loading the initial page of my site? I mean, if my site for example is www.pppp.com, and the user types that URL in the browser, what can I do to have his/her current browser disable the toolbar when loading the initial page of that URL? is it possible? I'd like the user to navigate through the application using only the menu I provide, and not the nav. buttons of the browser.


Thank you
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 7th January 2009, 06:45
D4PHP Enthusiast
 
Join Date: Apr 2007
Location: Barrie, Ontario, Canada
Posts: 185
jomitech is a glorious beacon of lightjomitech is a glorious beacon of lightjomitech is a glorious beacon of lightjomitech is a glorious beacon of lightjomitech is a glorious beacon of light
Default

Unfortunately, this is not possible. The closest thing you have would be to call window.open when your page loads, to load the actual application, but you'll probably run into pop-up blockers then.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 7th January 2009, 12:11
405hp's Avatar
Firebug Fanatic
 
Join Date: Dec 2007
Location: State of Confusion
Posts: 3,480
405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute405hp has a reputation beyond repute
Default

You can tell if it doesn't pop

Code:
                TheNewWin =window.open ('myscript.php','mywindow',config='height=620,width=915,toolbar=no, menubar=no,location=no, directories=no, resizable=no');
                  if(TheNewWin)
                    TheNewWin.moveTo(10,10);
                   else
                    alert('Please disable your popup blocking software!');
But I've found that the newer browsers ignore some of the directives I've used anyway.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:52.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use