Flash Games

 FAQ   Search   Members   Groups   User Control Panel      Login 

It is currently Tue Dec 02, 2008 10:51 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Resize popup size depending upon longest text in drop down l
PostPosted: Wed Feb 21, 2007 4:34 am 
Offline

Joined: Wed Feb 21, 2007 1:10 am
Posts: 1
Hi Experts,

The scenario is as belwo:

I am opening a popup window which has drop down list box populated dynamically with various options. When I open the popup, the width of popup is fixed. However, the text in list box exceeds which causes it to flow off the popup window. Is there a way to dynamically reset the popup size based upon text size in drop down?

Here is what I am doing:

step1: open popup window

popWin = window.open(urlstring,'','height=120,width=450,resizable=1,toolbar=no,minimize=no,status=no,memubar=no,location=no,scrollbars=no,top=200,left=200');
}

step2: create drop down combo box and populate dynamically
<TABLE border="0" width="100%">
<TR>
<TD></TD>
<TD nowrap>Select an Option:</TD>
<TD></TD>
<TD>
<select name="summaryEventId">
<option value="1">Current Address</option>
<option value="2" selected>Past Address - 01/01/2007</option>
<option value="3">Some large text goes here- 02/19/2007</option>
</select>
</TD>
<TD></TD>
</TR>
</TABLE>

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User:
Pass:
Log me on automatically each visit: