|
HI All
i have a textarea. and i want to count number of lines in this textarea.
actually i have created a HTML Editor using textarea.
can anybody tell me how to solve this problem.
thanks.
|
|
|
|
|
you can count for the number of occurances for \n
function countRows()
{
var rows = document.getElementById("test").value.split('\n');;
alert(rows.length);
}
this will give the number of lines
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
|
|
|
hello all
I need to center align the contents of my web page as many of the websites does these days(eg. www.msn.com), while reading through diff sites i got to know that we can do it with hlp of css files but not exactly how....can anyone hlp me out on same??
|
|
|
|
|
it depennds how u align the tables.In tables u can align contents in center.no need to go for css.
right click inside the table > build style > align : center
|
|
|
|
|
please don't use tables, it much better to use div tags and then use css to position
Do you want your website to be 800x600 or bigger?
|
|
|
|
|
Thanks for the information
It'll be helpful if you can provide an example of a css file for center aligning.
|
|
|
|
|
Put the content in a div and use javascript to center it. works for all screen resolutions. check this link [^]
|
|
|
|
|
Thanks!!
I will try the stuff and will get back to you
|
|
|
|
|
i tried your stuff its gud enough for me
but only problem is its not working with mozilla thou its working with IE
Could you help me out in this??
Regards
Nitin
|
|
|
|
|
I am not able to Debug, while working.I had been putting breakpoints but on running and pressing F10 i am not able to go to that place .Why is it happning .
While putting breakpoints i get this message as tooltip
"No symbol had been loaded for this document"
plz help
|
|
|
|
|
You're in release mode.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
i want to display msexcel in browser window, my excel file is stored in database
|
|
|
|
|
First try recreating the excel from the db and then temperory place it in the web server.Now you can open it in a new window or do a response.Redirect to that file.\
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
hi
I am developing a site for purchase products.
So i am using paypal for payment.
I am sending reqired items on paypal and paypal ask for loginId or credit card detail.
In my testing account i login and pay the amount.
After the above process PAYPAL show conformation page and a Button (retun to you site) after clicking on that button i back on my site.
All the above proces is going well but i want to come back on my site without the paypal conformation page or button click.
(i need that because on retun from pappal i update the use account.)
please help some one.
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
You need to either not use paypal, or see if they have a paid option that does what you want. Or change your design.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi Rajiv
I am also gone through same situation. For that purpose you have to use
paypal IPN. You can send a ipn page url to paypal. While processing is carried out paypal call this page in backgroud you can check transaction status here if it is success then update user account.
If you have any query then ask me?
Regards
Rahul
People Laugh on me Because i am Different but i Laugh on them
Because they all are same.
|
|
|
|
|
hello rahul
very very thanks for your ipn idea.
my problem has been solved
Rajeev Kr. Sharma
VRI Software Pvt.Ltd.
New Delhi India
HumOnline.com
Stay Connected
|
|
|
|
|
Hi All,
Can any body please help me in writing a dialogue box, so that it will have some DropDown list box and a button in it. When the button is clicked it should return some values/value to the web form. Can any body give me an easy to understand blog or any code snippet. Any kind of help is thankfull.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
Your question doesn't make any sense to me. Are you trying to create a custom web control ?
|
|
|
|
|
Hi,
I have one web form and i want to put a dialogue box in it so that a selected value of the dialogue box should appear in the calling web form. Means two ways communication between form and dialogue box.
Doesnt it sense really Navneeth?
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|
|
You can do it in a number of ways
1) use a div and javascript to do this.
<div id="test" style="visibility:hidden;">
Your content that need to be shown as a dig box
</div>
function showDialog()
{
document.getElementById("test").style.visibility = visible;
document.getElementById("test").style.top = event.clientY + "px";
document.getElementById("test").style.left = event.clientX + "px";
}
similarrly write the functiont o hide it by setting the visibility to hidden.
2) If you are using Ajax use the model popup extender that is comming with the ajax control tool kit.
demo is here
http://asp.net/AJAX/AjaxControlToolkit/Samples/ModalPopup/ModalPopup.aspx
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|
|
Hi Laddie,
Good Idea from you Laddie but I have tried with this already and putting it at appropriate place is difficult. So I have choosen to go for the dialog box of VB.Net or C#.Net so that it can be shown and when button is clicked it will return some value to the calling web form.
Thanks,
Aleem Mohammad.
S/W Engineer
Akebono Soft Technologies
aleem_abdul@akebonosoft.com.
|
|
|
|