Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: best approach

Started 1 month, 3 weeks ago by URBY
hi im working on a c# page using .net 3.5 im trying to hide some of the page from the user untill the hit a button then the content should revel itself - the content itself would be text imput boxs and checkboxes with a few buttons including cancel which must again hide this content What would the best approach to do this ajax? dhtml ? (tryied had problems), other ? Thanks in advance...
Site: Forums - ASP.NET Forums  Forums - ASP.NET Forums - site profile
Forum: Getting Started  Getting Started - forum profile
Total authors: 6 authors
Total thread posts: 11 posts
Thread activity: no new posts during last week
Domain info for: asp.net

Other posts in this thread:

designerSid replied 1 month, 3 weeks ago
Hi Urby, The most sensible solution in this case is jQuery. Have a look at it: http://docs.jquery.com/Effects/slideDown#speedcall back Thanks

rakesh2kv replied 1 month, 3 weeks ago
try jquery... there is a modal dilog which has all the feautures u need.. u can hide/show.. to an button action.. http://jqueryui.com/demos/dialog/ you can add textbox and other controls to this dilog and once they hit ok/cancel it hides..

irokhes replied 1 month, 3 weeks ago
Hi, Javascript is the fastest solution for showing or hide elements. in javascript code you must use this i assume that you want show a button named btn1 function show() { var object = document.getElementById("<%= btn1.ClientlID %>"); object.style.display = ""; } good luck

deepthoughts replied 1 month, 3 weeks ago
Either you can show/hide the values on the clientside using javascript or jQuery.. Like if there is a TextBox and on the click of a button you want to show it and on the click of another button you want to hide it.. the javascript solution would be something like this.. <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> <script type="text/javascript">...

raghav_khunger replied 1 month, 3 weeks ago
Show and hide a div with jQuery <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1 .3.2/jquery.min.js"></script> </head> <body> <div id="TargetDiv"> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has...

URBY replied 1 month, 3 weeks ago
All examples have been quite useful, i think raghav_khunger's one is the best one for me as i have multiple objects with varying sizes and would be much handier to make a div and its contents disappear, I do have one problem though i need it to be invisible onload of page/tab is your solution able to do this raghav_khunger?

raghav_khunger replied 1 month, 3 weeks ago
Hi, Could you please a bit more clear.

URBY replied 1 month, 3 weeks ago
how would I load the page with the tratget Div invisible to start with ?, then i could use the toggle button to reveal it.

raghav_khunger replied 1 month, 3 weeks ago
Hi, URBY: how would I load the page with the tratget Div invisible to start with ?, then i could use the toggle button to reveal it. Try this <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <title></title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1 .3.2/jquery.min.js"></script> </head> <body> <div...

URBY replied 1 month, 3 weeks ago
thanks very much :D

 

Top contributing authors

Name
Posts
URBY
4
user's latest post:
best approach
Published (2009-11-12 04:38:44)
thanks very much :D
raghav_khunger
3
user's latest post:
best approach
Published (2009-11-11 11:12:44)
Hi, URBY: how would I load the page with the tratget Div invisible to start with ?, then i could use the toggle button to reveal it. Try this &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head id=&quot;Head1&quot; runat=&quot;server&quot;&gt; &lt;title&gt;&lt;/title&gt; &lt;script type=&quot;text/javascript&quot;...
designerSid
1
user's latest post:
best approach
Published (2009-11-10 11:34:00)
Hi&nbsp;Urby, The most sensible&nbsp;solution in this case is&nbsp;jQuery. Have a look at it: http://docs.jquery.com/Effects/slideDown#speedcallback Thanks&nbsp;
deepthoughts
1
user's latest post:
best approach
Published (2009-11-10 12:51:00)
Either you can show/hide the values on the clientside using javascript or jQuery.. Like if there is&nbsp; a TextBox&nbsp;and&nbsp;on the click of a button you want&nbsp;to show it and on the click of another button you want to hide it..&nbsp;the javascript solution would be something like this.. &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head runat=&quot;server&quot;&gt;...
rakesh2kv
1
user's latest post:
best approach
Published (2009-11-10 11:34:00)
try jquery... there is a modal dilog which has all the feautures&nbsp; u need.. u can hide/show.. to an button action.. http://jqueryui.com/demos/dialog/ you can add textbox and other controls to this dilog and once they hit ok/cancel&nbsp; it hides..
irokhes
1
user's latest post:
best approach
Published (2009-11-10 11:34:00)
Hi, Javascript is the fastest solution&nbsp;for&nbsp;showing &nbsp;or hide elements. in javascript code you must use this i assume that you want show a button named btn1 function show() { var object = document.getElementById(&quot;&lt;%= btn1.ClientlID %&gt;&quot;); object.style.display = &quot;&quot;; } &nbsp; good luck

Related threads on "Forums - ASP.NET Forums":

Related threads on other sites:

Thread profile page for "best approach" on http://www.asp.net. This report page is a snippet summary view from a single thread "best approach", located on the Message Board at http://www.asp.net. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity