Page Style Changes with Popup

M

MC

I have a page that has a submit link in it for a popup. The page does the
popup fine but the parent window redraws all of the input fields at
half-height. No matter what I do, the input fields are scrunched after the
popup window opens.

The popup code looks like:
var mywin =
window.open("proposal.jsp","Proposal","HEIGHT=600,WIDTH=800,toolbar=yes,statusbar=no,menubar=no,scrollbars=yes,resizable=yes");
mywin.focus();

and the input:
<input type='text' name='fname' style="width:80px;height:14px;" ...

Adding the following .js
document.quickquote.fname.style.height="14px";
at the bottom of the page does not change the scrunched
fields...completely ignores the javascript.

Any ideas?

WindowsXP Pro, IE 7.0

MC
 
B

Bergamot

MC said:
I have a page that has a submit link in it for a popup. The page does the
popup fine but the parent window redraws all of the input fields at
half-height. No matter what I do, the input fields are scrunched after the
popup window opens.

"Doctor, it hurts when I do this..."

Why not get rid of the pop-up? Problem solved! ;)
<input type='text' name='fname' style="width:80px;height:14px;" ...

FYI, setting height:14px means my minimum 17px font size will get
chopped off in a too-short textbox, seriously degrading usability. Have
some compassion for your users and drop the bogus height altogether, eh?

As for your stated problem, this little code snippet is insufficient for
determining what's going on. Post a URL. Don't post the full code here
because nobody wants to see it here. Just post a URL.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top