View Full Version : Object does not support this property or method error

09-06-2008, 10:26 AM
Hi All;
I stuck in a strange problem.

I am having a javascript error suddenly from nowhere stating that the object doesn’t support this property or method.

I was not coming sometime before and there is absolutely no code changes.

Moreover the same code is running on server.

I cannot run it on my localhost due to the error, I tried restarting the project and machine restarting the services and restarting the IIS as well.

wsName = document.getElementById('cboCountry');

parent.MapFrame.storeMapServiceName(wsName.value);//error ic coming here.

I put an alert before the second line
alert(wsName.value); it is showing me the correct value.

I enabled script debuggig it shows that parent.Mapframe is undefined.
How come? the same code is running elsewhere and it was runnig on my machine as well a while before.
cboCountry is the dropdownlist ID,
I am using IE6, can any body find time to help me and provide me the resolution asap.

09-06-2008, 11:25 AM
Post the complete markup(HTML+javascript) or a link would be more useful.

PS: please wrap your code in
while posting here.