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

Forigner input and div in my page when useing Windows

1 Answer 53 Views
Window
This is a migrated thread and some comments may be shown as answers.
Farshad heidary
Top achievements
Rank 1
Farshad heidary asked on 02 Dec 2009, 05:46 PM
this code apper in my page!!!

<input  onkeydown="return RadWindowprompt_detectenter('{0}', event, this);" type="text"  class="rwDialogInput" value="{2}" /> 
                </div> 
                <div> 
                    <onclick="$find('{0}').close(this.parentNode.parentNode.getElementsByTagName('input')[0].value);"              
                        class="rwPopupButton" href="javascript:void(0);" ><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[OK]##</span></span></a> 
 
                    <onclick="$find('{0}').close(null);" class="rwPopupButton"  href="javascript:void(0);"><span class="rwOuterSpan"><span class="rwInnerSpan">##LOC[Cancel]##</span></span></a> 
                </div> 
 

i used this code

 
<runat="server"  id="hyperSuggestion" href="#" style="font-family:Tahoma;font-size:8pt" > 
                          Clik here</a> 
<script type="text/javascript"

     

hyperSuggestion.Attributes["onclick"] = "openRadWindow('" + queryStringUserID.ToString() + "'); return false;"; 
        
         function OpenPositionedWindow(oButton, url, windowName) 
        { 
            var oWnd = window.radopen(url,windowName); 
        } 
        function openRadWindow(UserID) 
        { 
            var oWnd = radopen("SuggestAsFriend.aspx?UserID=" +UserID, "RadWindow1" ); 
            oWnd.center(); 
        } 
    </script> 










1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 03 Dec 2009, 09:09 AM
Hello Farshad,

The code that you see is part of the radprompt template. If you don't want to have it on the page, you should set an empty <PromptTemplate> in the RadWindowManager declaration, but in this case you will not be able to use the radprompt() dialog.


Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Window
Asked by
Farshad heidary
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or