Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Page Style Changes with Popup

Reply
Thread Tools

Page Style Changes with Popup

 
 
MC
Guest
Posts: n/a
 
      09-12-2008
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,scro llbars=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



 
Reply With Quote
 
 
 
 
Bergamot
Guest
Posts: n/a
 
      09-14-2008

MC wrote:
> 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.

--
Berg
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page -> Popup -> New Page (close popup, leave old page open) julie.siebel@gmail.com Javascript 2 01-18-2006 12:57 AM
All style tags after the first 30 style tags on an HTML page are not applied in Internet Explorer Rob Nicholson ASP .Net 3 05-28-2005 03:11 PM
Main > Popup > Popup > Close popup AND new URL in main? Jens Peter Hansen Javascript 7 06-19-2004 08:56 PM
Need help with Style conversion from Style object to Style key/value collection. Ken Varn ASP .Net Building Controls 0 04-26-2004 07:06 PM
popup window changes host page to [object] mmac ASP General 4 01-29-2004 06:59 PM



Advertisments