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

JavaScript

 
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 
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 
If it appears after that code is run, and then disappears, make sure you're not setting the style back somewhere else. If you're setting it in the update panel code behind then every time that control is re-rendered it will come as display:none, and document.onready is not called when an AJAX response is handled.

If you want it to be shown immediately, sometimes, you need to write your control in such a way that it renders it correctly, i.e.

<asp:TextBox ID="PhoneSearch" TabIndex="5" runat="server" Width="160px" <%= (some expression) ? "style=\"display:none\"" : "" %> />


... where (some expression) is however you determine whether this box should be shown.

You probably still want to render it inside a div on which you do the visibility logic, because you probably want to have some text or something as well as the text box which should all be switched together.
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 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 12:30
Member 779716720-Jan-12 12:30 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 9:14
Member 779716719-Jan-12 9:14 
QuestionRe: User control - how to access the element using javascript Pin
AspDotNetDev19-Jan-12 10:53
protectorAspDotNetDev19-Jan-12 10:53 
AnswerRe: User control - how to access the element using javascript Pin
Member 779716720-Jan-12 12:12
Member 779716720-Jan-12 12:12 
GeneralRe: User control - how to access the element using javascript Pin
Member 779716719-Jan-12 9:27
Member 779716719-Jan-12 9:27 

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.