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

RadWindowManager generating unclosed anchor tags

4 Answers 38 Views
Window
This is a migrated thread and some comments may be shown as answers.
Shrikant Kale
Top achievements
Rank 1
Shrikant Kale asked on 08 Apr 2010, 12:34 PM
Hi All,
 I am facing a weird issue with RadWindowManager. When I place this control on a page it generates HTML which contains some unlcosed anchor tags. Please have a look at the HTML here:

<div>
 <a onclick="$find('{0}').close(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"                
      class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan">
 <span class="rwInnerSpan">
 <a onclick="$find('{0}').close(null);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan">
 <span class="rwInnerSpan">               
</div>

Because of this incorrect HTML IE does not render page correctly(Firefox still works, probably it understands broken HTML)
To do some troubleshooting I developed test application which has only RadWindowManager in a page. In test app it worked fine and I could not reproduce this incorrect behavior in test app. It only happens in my live project.

Can anyone provide me any suggestion on this?

I am attaching complete HTML related to RadWindowManager. Attached file has extension jpg but it's a simple text file. I had to change the extension because site does not allow upload txt files.

Regards
Shrikant

4 Answers, 1 is accepted

Sort by
0
Shrikant Kale
Top achievements
Rank 1
answered on 08 Apr 2010, 04:29 PM
After analyzing html for some more time I realized that some span tags are also not closed.
Please see the following code:

<div>

 <a  onclick="$find('{0}').close();"

     class="rwPopupButton" href="javascript:void(0);">

     <span class="rwOuterSpan">

     <span class="rwInnerSpan"></span>

 </a>                   

</div>

0
Georgi Tunev
Telerik team
answered on 13 Apr 2010, 12:37 PM
Hi Shrikant,

Could you please open a ticket and send a sample application where this problem occurs?
I am asking you this because the code that you show is from RadWindowManager's popup templates - radalert, radprompt and radconfirm. The original code however is properly closed and rendered correctly on the page. For example, below is the radalert's template (I see that in your last post you pasted part of it) but as you can see the tags are closed - the code below is from the HTML dump of a page with a RadWindowManager in it.

<div class="rwDialogPopup radalert">           
    <div class="rwDialogText">
    {1}            
    </div>
     
    <div>
        <a  onclick="$find('{0}').close();"
        class="rwPopupButton" href="javascript:void(0);">
            <span class="rwOuterSpan">
                <span class="rwInnerSpan">##LOC[OK]##</span>
            </span>
        </a>               
    </div>
</div>

The problem that you report leads me to believe that the problem might not be directly related to the RadWIndowManager, but to an error that occurs on your side that prevents the proper rendering of the control. Without being able to reproduce it however, I cannot say what the reason might be.

All the best,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Shrikant Kale
Top achievements
Rank 1
answered on 20 Apr 2010, 05:02 AM
Hi Georgi

Thanks for the reply.

As I have described in my previous post, I was not able to reproduce this problem. It was happening only in one particular project. I did some troubleshooting and figured out that it was happening because of NVelocity templating engine(http://nvelocity.sourceforge.net/). I have used this library to modify the views. This was distorting HTML generated by RadWindowManager.

So now I need to dig into it...
If you have any suggestion on this then please let me know.

Regards
Shrikant
0
Georgi Tunev
Telerik team
answered on 22 Apr 2010, 01:33 PM
Hi Shrikant,

I am afraid that we cannot do much on our side about this problem - I would suggest to contact the NVelocity team and send them a sample they could examine.

Sincerely yours,
Georgi Tunev
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Window
Asked by
Shrikant Kale
Top achievements
Rank 1
Answers by
Shrikant Kale
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or