Domanda

I'm using a showModalDialog for opening a Dialog inside a Dialog, although sometimes the dialog will have more fields depending on the information required. Is it possible to make this resize dynamically rather than giving it a fixed size?

    showModalDialog(
    v_location,
    '',
    'dialogHeight:260px; dialogWidth:560px; edge: Raised; center: Yes; help: No; resizable: No; status: Yes; scroll: Yes'
);
È stato utile?

Soluzione

try this one:

   showModalDialog(
v_location,
'',
'dialogHeight:260px; dialogWidth:560px; edge: Raised; center: Yes; help: No; resizable: Yes; status: Yes; scroll: Yes');

That will give you window which can be resized by user/visitor. And yes it is possible to dynamically change size of the windows based for example on screen resolution, you will need to replace 'dialogHeight:260px; dialogWidth:560px;...' with something like 'dialogHeight:<%=WindowsHeight%>px; dialogWidth:<%=WindowWidth%>px;...' Specifics will depend on what your needs are.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top