AJAX and iframebility
Posted
3. rujan 2007 20:37
by
dadamec
If you try to use ASP.NET AJAX toolkit inside of IFRAME you might get JavaScript error:
"Sys.ArgumentOutOfRangeException Value must be an integer Parameter name: x Actual value was: NaN". Error message says "Value must be an integer" but you had to guess where parameter "x" pointing to :(
ASP.NET AJAX is expecting frameborder attribute of IFRAME tag as Integer (btw. this is corect behaviour, see: HTML 4.0 standard). If you set frameborder value to “yes” or “no” (this is usual formating and browsers would know what to do with it) Sys.ArgumentOutOfRangeException will rise.
Solution is to change this value to „0“ or „1“ and after that ASP.NET AJAX and all controls from its toolkit should work just fine.