Click here to Skip to main content
15,889,335 members
Home / Discussions / JavaScript
   

JavaScript

 
GeneralRe: Related to pdf Pin
Mohibur Rashid7-Feb-12 19:52
professionalMohibur Rashid7-Feb-12 19:52 
GeneralRe: Related to pdf Pin
Richard MacCutchan7-Feb-12 22:27
mveRichard MacCutchan7-Feb-12 22:27 
QuestionIssuse with window.open Pin
sarang_k18-Jan-12 1:31
sarang_k18-Jan-12 1:31 
AnswerRe: Issuse with window.open PinPopular
Not Active18-Jan-12 1:51
mentorNot Active18-Jan-12 1:51 
AnswerDown voting doesn't help Pin
Not Active18-Jan-12 2:44
mentorNot Active18-Jan-12 2:44 
AnswerRe: Issuse with window.open Pin
AspDotNetDev18-Jan-12 18:12
protectorAspDotNetDev18-Jan-12 18:12 
QuestionUser control - how to access the element using javascript Pin
Member 779716716-Jan-12 12:40
Member 779716716-Jan-12 12:40 
AnswerRe: User control - how to access the element using javascript Pin
BobJanova17-Jan-12 4:07
BobJanova17-Jan-12 4:07 
How are you hiding the text box in the first place? There is no style information applied to it that I can see there.

jQuery will have some method of doing show/hide, which I suspect is assigning to (object).style.display. If the ASP rendering is hiding the control by doing something different, jQuery won't be able to show it. You need to either work out what ASP.net is doing and write script to reverse that, or hide it using some markup that jQuery (or simple clientside script) can easily change.

I recommend the second way:
<%@ Control Language="vb" AutoEventWireup="false" CodeBehind="Test.ascx.vb" Inherits="...Test" %>
 
<asp:UpdatePanel ID="SearchUpdatePanel" runat="server" RenderMode ="inline"  UpdateMode="Conditional">
    <ContentTemplate>
<div id="<%=SearchUpdatePanel.ClientID%>_TextBoxDiv" style="display:none">
 <asp:TextBox ID="PhoneSearch" TabIndex="5"  runat="server" Width="160px"/>
</div>

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
 
       <script type="text/javascript"  language="javascript">
           $(document).ready(function () {
               document.getElementById('<%= SearchUpdatePanel.ClientID%>_TextBoxDiv').style.display = '';
           });
      </script>
       
    </ContentTemplate>
</asp:UpdatePanel>


I'm not sure if there's an asp:Container or something which is a server-side div that prevents the slightly ugly ID related hackery there, but the principle should be the same.
GeneralRe: User control - how to access the element using javascript Pin
Member 779716717-Jan-12 5:08
Member 779716717-Jan-12 5:08 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716717-Jan-12 5:30
Member 779716717-Jan-12 5:30 
GeneralRe: User control - how to access the element using javascript Pin
Graham Breach17-Jan-12 6:42
Graham Breach17-Jan-12 6:42 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova17-Jan-12 11:57
BobJanova17-Jan-12 11:57 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova17-Jan-12 6:12
BobJanova17-Jan-12 6:12 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716717-Jan-12 7:33
Member 779716717-Jan-12 7:33 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova17-Jan-12 12:01
BobJanova17-Jan-12 12:01 
GeneralRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 7:29
protectorAspDotNetDev19-Jan-12 7:29 
GeneralRe: User control - how to access the element using javascript Pin
BobJanova19-Jan-12 22:57
BobJanova19-Jan-12 22:57 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 15:36
Member 779716720-Jan-12 15:36 
AnswerRe: User control - how to access the element using javascript Pin
AspDotNetDev17-Jan-12 7:58
protectorAspDotNetDev17-Jan-12 7:58 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716718-Jan-12 15:45
Member 779716718-Jan-12 15:45 
AnswerRe: User control - how to access the element using javascript Pin
AspDotNetDev18-Jan-12 18:10
protectorAspDotNetDev18-Jan-12 18:10 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 4:02
Member 779716719-Jan-12 4:02 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 4:23
Member 779716719-Jan-12 4:23 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 4:35
Member 779716719-Jan-12 4:35 
GeneralRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 7:39
protectorAspDotNetDev19-Jan-12 7:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.