RadWindowManager generating unclosed anchor tags

5 posts, 0 answers
  1. Shrikant Kale
    Shrikant Kale avatar
    20 posts
    Member since:
    Oct 2009

    Posted 08 Apr 2010 Link to this post

    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
  2. Shrikant Kale
    Shrikant Kale avatar
    20 posts
    Member since:
    Oct 2009

    Posted 08 Apr 2010 Link to this post

    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>

  3. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 13 Apr 2010 Link to this post

    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.
  4. Shrikant Kale
    Shrikant Kale avatar
    20 posts
    Member since:
    Oct 2009

    Posted 20 Apr 2010 Link to this post

    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
  5. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 22 Apr 2010 Link to this post

    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.
Back to Top