473,508 Members | 2,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Want to display entire string values in alertbox

24 New Member
Hiii.

Iam using alert box to display the total payment modes.
But in Alert it displaying only 62 out of 110.

my Code::
Expand|Select|Wrap|Line Numbers
  1. var hidpaym = document.frmrechnung.hidpayt.value;
  2.             var str = hidpaym.split(",")
  3.             var st = "" ;
  4.             alert("str.length::"+str.length)
  5.                 for (i=0;i < str.length ; i++)
  6.                 {
  7.                     if (st == "")
  8.                     {
  9.  
  10.                         st = str[i];                        
  11.  
  12.                     }
  13.                     else
  14.                     {
  15.                         st =st +" \n "+str[i];  // \n to create new line in alert                        
  16.                     }
  17.  
  18.  
  19.                 }
  20.                 alert("testing::"+str.length)
  21.  
  22.             alert("Please enter integer values as follows,\r\n"+st);
  23.             document.frmrechnung.txtSearch.focus();

Please
Nov 9 '09 #1
8 2597
acoder
16,027 Recognized Expert Moderator MVP
What's the hidpayt value?

PS. please use [code] tags
Nov 9 '09 #2
chinni1
24 New Member
The hidpayt holds all the payment values i.e 110.

But var hidpaym = document.frmrechnung.hidpayt.value;
It displays only 62 payment values.
Nov 10 '09 #3
acoder
16,027 Recognized Expert Moderator MVP
An alert is not meant to display that much vertical content. Either decrease what you want to display or use DHTML (e.g. a div with overflow which you can scroll).
Nov 10 '09 #4
chinni1
24 New Member
Im placing the code in div tag only.but how to dispaly the div tag in javascript function.
plz tell me this as well
Nov 10 '09 #5
chinni1
24 New Member
Im placing the code in div tag only.but how to dispaly the div tag in javascript function.
plz tell me this as well
Nov 10 '09 #6
acoder
16,027 Recognized Expert Moderator MVP
It would be hidden initially either with "display:none" or "visibility:hidden", then show the div when required by setting the style.display or style.visibility property to "block" or "visible" respectively.

If you get stuck, post your attempt.
Nov 11 '09 #7
chinni1
24 New Member
Hii..
Im placing the div here.

Expand|Select|Wrap|Line Numbers
  1. <INPUT TYPE="hidden" NAME="hidpayt" value="<%=hidpaym%>" >
  2.       <div id ="c1" style ="overflow:hidden;display:none" value="<%=hidpaym%>"><%'=hidpaym%></div> 

And dispalying div in javascript fun like:

document.getElementById('c1').style.display = 'block';

But im not getting any values..
Is this corcet way to disaply??
Nov 11 '09 #8
acoder
16,027 Recognized Expert Moderator MVP
A div doesn't have a value, it has content between the tags: <div>content</div>

You will need to position the div properly (outside the flow), otherwise the div will be placed wherever it is coded.

Perhaps you could consider one of the ***box, e.g. see from this list and choose a small size one that displays inline content.
Nov 11 '09 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

14
3065
by: Eric Lindsay | last post by:
I've seen a page using display, and especially display table that did some neat things with boxes, but basically it only worked with Mozilla browsers. Fell over fairly badly with Opera and Safari...
4
4225
by: smshahriar | last post by:
Hi, I want to scan from the following string all the hex numbers and populate an array of integers: 0x27 0x00 0x30 0x00 0x33 0x00 0x36 0x00
5
2227
by: Lance | last post by:
Hi, Can anyone point me in the right direction for using C# to close an alertbox for the admin user? Background: We have some servers (NT4) that are running some services that throw an...
5
1987
by: Hoss | last post by:
Hello all, Ill try and make this short and sweet. I have the following Javascript being executed when the user clicks a button function myFunc() { -- Get some values from elements on the...
3
5224
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from...
1
941
by: Dan Somdahl | last post by:
Hi, I am new to ASP but have what should be a fairly simple task that I can't figure out. I need to parse a string from a single, semi-colon delimited, 60 character field (el_text) in a recordset...
8
1822
by: rob21century | last post by:
Hi every one, newbie here, so i big hello from me now down to business I am a web developer but i don't use java script very often, but i have created a form validation from a group of different...
33
15453
by: Michael B Allen | last post by:
Hello, Early on I decided that all text (what most people call "strings" ) in my code would be unsigned char *. The reasoning is that the elements of these arrays are decidedly not signed. In...
7
7158
by: sudhaMurugesan | last post by:
HI, I need to display the strings on consecutive lines. can u help. My code is like this .I know its silly to ask but please help. I used "\r" but its not working. Please can anybody tell ...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1550
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.