/    Sign up×
Community /Pin to ProfileBookmark

Centering a PHP window, & auto sized

Hello I would like to have a new window that opens from an html file centered and possible have the new window auto sized so that it is exactly the width of a form I am using.

I’ll try to point form this, I know sometimes it’s hard to read these posts and understand the writing, I see the right words, but, sometimes I don’t wrtie them… ?

• New PHP window opens from an html link (index.php) another page
• Would like to center the window. (auto centered for all screens)
• Would like to have the new window sized to fit the form exactly

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@helmutaugustineauthorAug 13.2006 — I tried to post the form code but it said it was too long, I don't what code I would need to post so I will provide a link to the page, hopefully that will help.


http://www.hotgolfshots.com/mail/index.php

here it is....


it opens from an html link on another page


Cheers

H
Copy linkTweet thisAlerts:
@pcthugAug 13.2006 — PHP cannot modify browser properties (centering, resizing, etc.), it's beyond it's capabilities as a server-side language. To do such use a client-side scripting language, i.e. Javascript.
Copy linkTweet thisAlerts:
@helmutaugustineauthorAug 13.2006 — Ahhh, trust me again to pick a task that can't be done....., explains why I can't find a tut on it!

Alas, we are human and can accoplish great feats. Corn to Gas, Man to the moon, rovers on mars,

We can do this, it's possible, has ta be!


At any rate if it can be done with Java what would be the script? for an example please if you could.

Thank you
Copy linkTweet thisAlerts:
@pcthugAug 13.2006 — A quick search for [url=http://www.google.com/search?q=Javascript%3A+resize+window]Javascript: resize window[/url] and [url=http://www.google.com/search?q=Javascript%3A+center+window]Javascript: center window[/url] yield many results.

For further insight, please ask in the [url=http://www.webdeveloper.com/forum/forumdisplay.php?f=3]Javascript[/url] Forum.
×

Success!

Help @helmutaugustine spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...