try dropping #chr(10)# into the string, I think that will work.
might be nicer to set one display variable earlier
<cfset infoText = url.address & chr(10) & url.city & chr(10)....>
then you can just refer to #infoText in the js.
On 5/25/06, Tony <[EMAIL PROTECTED]> wrote:
>
> Hi there... this should be quick and easy for you Jscript ninja's...
>
> in this line:
> marker.openInfoWindowHtml("#url.address# #url.city# #url.state#
> #url.zip# Report time: #url.time# Report Date: #url.date# ");
>
> i want to put <BR>'s so that the text, line breaks, and the pop up
> window isnt huge.
>
> any idea how to add that into the string, so that it doesnt break it?
>
>
> <script type="text/javascript">
> //<![CDATA[
> <cfoutput>
> function load() {
> if (GBrowserIsCompatible()) {
> var map = new GMap2(document.getElementById
> ("map"));
> map.setCenter(new GLatLng(#insert('.',url.lat
> ,2)#,
> #insert('.',url.lon,3)#), 13);
> map.addControl(new GLargeMapControl ());
> map.addControl(new GMapTypeControl());
> // Creates a marker at the given point
> with the given number label
> function createMarker(point, number) {
> var marker = new GMarker(point);
> GEvent.addListener(marker, "click",
> function() {
> marker.openInfoWindowHtml("#url.address#
> #url.city#
> #url.state# #url.zip# Report time: #url.time# Report Date: #url.date#
> ");
> });
> return marker;
> }
> // Add 1 markers to the map
> for (var i = 0; i < 1; i++) {
> var point = new GLatLng(#insert('.',
> url.lat,2)#, #insert('.',url.lon,3)#);
> map.addOverlay(createMarker(point, i +
> 1));
> }
> }
> }
> </cfoutput>
> //]]>
> </script>
>
>
> thanks!
> tony
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241498
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54