Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

width:100% & region plug-in

637204Sep 23 2010 — edited Sep 28 2010
Hi,

I’m busy upgrading my Google Maps plug-in and one of the things that I want to do is the developer can decide the width of the map by using either px or *%*, irrespective of the region template the developer for the plug-in.

Currently I define the Map as follows:
   SYS.HTP.p (   '<div id="'
              || p_region.static_id
              || '_map" style="width:'
              || l_width
              || 'px; height:'
              || l_height
              || 'px"</div>'
             );
Now I though the change would be simple enough. I replace *| 'px; height:'* with *|| '; height:'* in the code above and have the developer add either the px or *%* in l_width

But it does not work; when I enter *%* the map is not shown at all.

The html code generated by Apex shows
<td class="tbl-main" width="100%"><div id="R2153213947910908_map" style="width:90%;height:500px"</div></td>
What am I doing wrong ???

Kind regards

Johannes
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 26 2010
Added on Sep 23 2010
10 comments
972 views