Current location: Hot Scripts Forums » General Web Coding » JavaScript » Setting browser to resize and remove tools, scrolling etc.


Setting browser to resize and remove tools, scrolling etc.

Reply
  #1 (permalink)  
Old 05-02-07, 02:58 PM
Tonio9 Tonio9 is offline
New Member
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Setting browser to resize and remove tools, scrolling etc.

Greetings,

I am a newbie here and as most of you will know off the bat, I am not a programmer. I am a "dabbler" and thanks to the many free scripts available a mostly successful one.

I am looking for a way to set browser size and features that are called from a "normal" http call like
Code:
<a href="http://www.domain.com/page.html">
instead of a javascript call.

Code:
<a href="javascript:void(window.open("http://www.domain.com/page.html",'example','width=350, height=360, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no, left=10,top=10'))">
I have used window.resizeTo(x.y) and of course this sets the browser outside size to the defined dimensions but I do not know how to implement changing the browser features like menu bar, status etc... at the same time.

The reasons that I want to do this are to provide a simple link that can be distributed to access the content in those targeted pages (The longer the text string the greater chance of it getting messed up when distributed. Some places like Realty MLS have a 40 character limit for added links.), and prevent the browser interpretation of a pop-up to be blocked.

I have tried using the a Chromeless script (BYKLEIN CHROMELESS WINDOW OBJECT 1.0 ) and setting a landing page that runs the link opening the sized chromeless borwser and then closes itself. This sort of works but most browsers block it.

There must be a way to have the browser change its appearance using Javascript to resize and toggle the browser properties when the page opens without having to click a Javascript link with those direcitives.

Code:
window.resizeTo(380,480).......and......window.menubar.visible=false;window.toolbar.visible=false;window.locationbar.visible=false;window.personalbar.visible=false;window.scrollbars.visible=false;window.statusbar.visible=false);
I am sure there are many ways to do this using PHP or ASP or CGI but client-side Javascript seems more doable.

Any help or advise on this topic will be greatly appreciated.

Best regards,
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-02-07, 03:44 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
I'm sorry to disappoint you, but I don't think it's really possible the way you want it. It certainly is not possible with ASP/PHP/CGI as they are server side scripting languages, and those have nothing to say about your browser.

the best way to search would be Javascript indeed, but I don't think there are functions to remove the menubar, hide the toolbar, ... on the fly. In a new popup yes, as you already know. But probably not on the fly.
__________________
Jack Bauer makes Chuck Norris cry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-02-07, 03:49 PM
Tonio9 Tonio9 is offline
New Member
 
Join Date: May 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Thank you for your comment. I suspected that it would not be possible. Dows anyone think that it might be possible to do with a Meta tag refresh? Just a thought.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 05-02-07, 04:42 PM
Vicious's Avatar
Vicious Vicious is offline
Community VIP
 
Join Date: Jan 2007
Location: Belgium
Posts: 584
Thanks: 0
Thanked 0 Times in 0 Posts
I suspect not

But hey, it's not because I think it's not possible, that it's entirely impossible. Just do a thorough search on the net (not only google). It's just my well-educated guess that it's not possible.
__________________
Jack Bauer makes Chuck Norris cry
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 10:45 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.