5
Answers

validate "Src" attribute value of "iframe" element

I have a iframe element to display an address in google map as below as example.

"<iframe name='testiFrame' id='runtimeIFrame' src='"https://www.google.com/maps/xyz/dfgfdg/ + "'></iframe>"

Issues:

1.Sometime some error with the "SRC" attribute value so giving error page as: The Google Maps API server rejected your request. Invalid request.

2.Some time google map unable to detect the address so displaying only map without pointing to any address.

How can i programatically detect these above two problem.

N.B: Here I cann't check the Src attribute value with "GetResponse()" method of HttpWebrequest as the Value in the attribute need to be passed in Iframe element for google map

Answers (5)