I'm trying to add a weather radar page in Premise. However, the premise automation browser resizes when I first open it. The problem is it resizes the iframe to a much larger value than the pixels it is set for and the page I'm displaying won't change size as its in flash. This means the new area is black surrounding the weather radar flash plugin. Is there a way to prevent this? I've tried adding a background tags to atleast change the color and possibly set it to transparent, but it didn't work. Attached is a picture of the issue. Keep in mind that the page displays perfectly if displaying 800x600 and not resized (not sure what's doing the resizing).
My code is below and I'm using the dlink camera driver:
if not sysevent.ClientSession is nothing then
strOutput = "<div STYLE=" & chr(34) & "Position: absolute; Left:7px; Top:-60px" & chr(34) & ">"
strOutput = strOutput + "<iframe src =" & chr(34) & "http://image.weather.com/web/flash/FMMain.swf?&lat=41.79&long=-88.16&viewPortWidth=400&viewPortHeight=300&initialWeatherLayerType=satrad&initialZoomLevel=8&wxAnimateOnStart=true" & chr(34)
strOutput = strOutput + " width=" & chr(34) & "400px" & chr(34) & " height=" & chr(34) & "420px" & chr(34) & " marginwidth=" & chr(34) & "0" & chr(34) & " marginheight=" & chr(34) & "0" & chr(34) & " scrolling=" & chr(34) & "no" & chr(34) & " frameborder=" & chr(34) & "0" & chr(34)
strOutput = strOutput + "</iframe>"
method.RenderHTML = strOutput
end if
My code is below and I'm using the dlink camera driver:
if not sysevent.ClientSession is nothing then
strOutput = "<div STYLE=" & chr(34) & "Position: absolute; Left:7px; Top:-60px" & chr(34) & ">"
strOutput = strOutput + "<iframe src =" & chr(34) & "http://image.weather.com/web/flash/FMMain.swf?&lat=41.79&long=-88.16&viewPortWidth=400&viewPortHeight=300&initialWeatherLayerType=satrad&initialZoomLevel=8&wxAnimateOnStart=true" & chr(34)
strOutput = strOutput + " width=" & chr(34) & "400px" & chr(34) & " height=" & chr(34) & "420px" & chr(34) & " marginwidth=" & chr(34) & "0" & chr(34) & " marginheight=" & chr(34) & "0" & chr(34) & " scrolling=" & chr(34) & "no" & chr(34) & " frameborder=" & chr(34) & "0" & chr(34)
strOutput = strOutput + "</iframe>"
method.RenderHTML = strOutput
end if