User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP.NET section within the Web Development category of DaniWeb, a massive community of 455,992 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,796 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP.NET advertiser: Lunarpages ASP Web Hosting
Views: 1399 | Replies: 2 | Solved
Reply
Join Date: Nov 2007
Posts: 18
Reputation: Nareshp_123 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Nareshp_123 Nareshp_123 is offline Offline
Newbie Poster

Help Diaplay help message(Popup)

  #1  
Dec 5th, 2007
Hi all,
i need to do like ,when i place the mouse pointer on a textbox(i think its onmouseover event.not sure)
it should display or popup a small message which provides information about the format of values need to be entered in that textbox.please provide me like how can i do, is that in javascript.

Thanks in advance

Naresh
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Location: Somewhere between heaven and hell
Posts: 111
Reputation: Kusno is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 8
Kusno's Avatar
Kusno Kusno is offline Offline
Junior Poster

Re: Diaplay help message(Popup)

  #2  
Dec 6th, 2007
Please try this one.

<script language="javascript">
var p=window.createPopup();
var pbody=p.document.body;
function show_popup()
{
pbody.style.backgroundColor="lime"
pbody.style.border="solid black 1px"
pbody.innerHTML="Enter value from 01 to 10."
p.show(150,150,200,50,document.body)
}

function hide_popup()
{
p.hide();
}
</script>

<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" onmouseover="show_popup()" onmouseout="hide_popup()"></asp:TextBox>
</div>
</form>
Reply With Quote  
Join Date: Nov 2007
Posts: 18
Reputation: Nareshp_123 is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 0
Nareshp_123 Nareshp_123 is offline Offline
Newbie Poster

Re: Diaplay help message(Popup)

  #3  
Dec 6th, 2007
Originally Posted by Kusno View Post
Please try this one.

<script language="javascript">
var p=window.createPopup();
var pbody=p.document.body;
function show_popup()
{
pbody.style.backgroundColor="lime"
pbody.style.border="solid black 1px"
pbody.innerHTML="Enter value from 01 to 10."
p.show(150,150,200,50,document.body)
}

function hide_popup()
{
p.hide();
}
</script>

<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" runat="server" onmouseover="show_popup()" onmouseout="hide_popup()"></asp:TextBox>
</div>
</form>




wow.....,
i was been searching for last one day and i was not able to find easy solution &what ever i found were some third party,complicated code.
finally i adjusted to use textbox properties "ToolTip" which is not that much effective...........

but the solution wat you gave is pretty easy thanks a lot..........

Naresh
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb ASP.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the ASP.NET Forum

All times are GMT -4. The time now is 9:36 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC