This is a migrated thread and some comments may be shown as answers.

asp Radwindow demo fail

1 Answer 62 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Mario
Top achievements
Rank 2
Mario asked on 28 Jul 2009, 02:23 PM
Here i found a missing ";" after contentWindow as follows:

// Get a reference to the first RadWindow's content
var contentWin = dialog1.get_contentFrame().contentWindow


url:

http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx

its in the code example C# Dialog2.aspx in the javascript block in function returnValue()

...

or anything else is wrong, my compiler tells me that get_contentFrame().contentWindow is null or not an object...

with contentWindow (); he tells me that get_contentFrame() is null or not an obejct.

sure that its correct without ; or (); ?

 cheers uspec


1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 30 Jul 2009, 10:11 AM
Hi Mario,

JavaScript does not require the statements to end with ';' and in your case this cannot cause the "null" reference error. At this point I cannot tell you what my cause the issue on your side and I need to examine your exact setup. Please, paste the code that you use in the pages - parent page, content page (that is opened inside the RadWindow). It will be best if you open a new support thread and send us a full runnable project that reproduces the issue. I will debug it and do my best to provide a working solution as soon as possible.

Sincerely yours,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Documentation and Tutorials
Asked by
Mario
Top achievements
Rank 2
Answers by
Fiko
Telerik team
Share this question
or