|
If you want to use the new keyword to create the RegExp object, you just use the pattern from the regular expression:
new RegExp('^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@
((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])
|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$')
Why do you want to use the new keyword to create a RegExp object, when you already have one?
---
b { font-weight: normal; }
|
|
|
|
|
My program needs to receive notifications when cookies are set in IE and when they are read by websites. Is this possible with a Browser Extension in IE?
Thank you very much
Rich
--------------------------------
"All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke
|
|
|
|
|
Google would give a good result for a question like this.
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Hi.
How can I transform this javascript code
function insRow()
{
var x=document.getElementById('myTable').insertRow(0)
var y=x.insertCell(0)
var z=x.insertCell(1)
y.innerHTML="NEW CELL1"
z.innerHTML="NEW CELL2"
}
Row1 cell1 | Row1 cell2 | Row2 cell1 | Row2 cell2 | Row3 cell1 | Row3 cell2 |
so values NEW CELL1 and NEW CELL2 can be inserted by user in two different textboxes.
|
|
|
|
|
Firstly the removed in your Insert row button should be onClick. That's the event that gets called when you click the button, and executes your insRow() function.
It not clear to me what you want when you say "so values NEW CELL1 and NEW CELL2 can be inserted by user in two different textboxes".
With onClick instead of removed in your button, the code inserts a two new cells into your table. Are these the two different textboxes you are refering to?
If not then you need to add them to your page, either using javascript or as HTML tags, similar to the way you created the button. Then, assuming that the textboxs you add have ids of textbox1 and textbox2, it's just a matter of adding statements like this to your insRow() function:
textbox1.value = "NEW CELL1";
textbox2.value = "NEW CELL2";
|
|
|
|
|
sorry, some nested html messed up my last post about this. Heres my 2nd attempt to post this.
*******************************
Hi,
I have text like this:
text that is very very very long and this text on same line to follow ellipsis
It needs to be displayed in Intenet Explorer like this:
text that is ... and this text on the same line to follow ellipsis.
I have tried div and span tags, all give me the same problem, either the text has a line break after ellipsis, or the text does not break, but there are no ellipsis.
What I've tried:
1.
<nobr><div style="width:30px;display:inline;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;"><nobr>text that is very very long</nobr></div><nobr>and this text on the same line to follow ellipsis</nobr></nobr>
2.
<span style="width:30px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden>text that is very very long</span>and this text on the same line to follow ellipsis
I am trying to avoid doing this on the server to keep it more efficient.
Any help appreciated.
Thanks.
-Shefali
|
|
|
|
|
shefali_sinha wrote: text that is very very longand this text on the same line to follow ellipsis
Try:
<span style="display:inline-block; width:30px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden;">text that is very very long</span> and this text on the same line to follow ellipsis
Note: this will only work in IE. Mozilla does not support either display:inline-block or text-overflow:ellipsis . Opera does support display:inline-block , but not text-overflow:ellipsis , so the first text will be cut off, but there will be no ellipsis between it and the second text.
|
|
|
|
|
We have used Ocx Controls in the Web Pages. These ocx controls are built in Visual Basic 6.0. These OCX controls are embeded in <object> tags in the ASP Web pages. For the application to run, security settings in the "Internet Options" are defaulted to low and all the options concerning the Activex Controls are enabled. And now when an Internet explorer Update is done all the Activex Controls fail to Load.
Is there any way that we can stay current with the version update of IE and still make Ocx controls to load in the web pages?
if anybody has evolved a workaround to solve the problem of "OCX controls not loading" please reply to the post.
Thanks in advance
|
|
|
|
|
Hi,
I am having the following issue with html pages which i stored in one location.
When I tried to open this html pages from the given hyper link,it is opening but closing the window automatically after some time..
How to resolve this..How to make the opened pages stay in place with out closing automatically..
Any idea is much appreciated..
Thanks,
RPM.
|
|
|
|
|
Can you please post the HTML code here, and do you receive any massages when it is closing?
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Brad,
Thanks a lot for your reply..Kindly requesting you for one day so that I will get back to you with the html pages..
Thank You,
RPM.
|
|
|
|
|
Dear all,
Why my webserver cann't run even HTML pages?
it run so slow till error page occured.
please tell me the problem
thanks
Hy Chanhan
|
|
|
|
|
You'd have to contact your webmaster/web host.
|
|
|
|
|
Thanks you,
MatrixCoder
I'm success now.
|
|
|
|
|
Please reinstall ok
Ginu
Ginu U
|
|
|
|
|
Doesn't it have any way to resolve?
I don't want to reinstall.
|
|
|
|
|
What is your Host, what server, and what is your URL?
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
I use Linux server, PHP, Mysql
|
|
|
|
|
Who are you hosted with?
Do you use Apache?
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
i hosted with
http://www.cpanel.net/
I use Apache
|
|
|
|
|
Do you have your server locally?
Is it on your LAN?
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Not in my LAN.
I uploaded to Server already.
but i have server locally too to test.
|
|
|
|
|
Is Your remote server is giving you the trouble?
Can you give me a link to it?
-- modified at 5:46 Monday 20th November, 2006
Brad
Australian
"The Probability of you doing that makes 0 look like a big number" - My Mate Oxley
|
|
|
|
|
Hi all,
[Linux/PHP/MySQL]
My webserver have a seriouse problem. Now i can't open my website i run so slow, it doesn't display the page at all.
I think mysqld in not start. So please tell me how to start service mysqld
by using Linux command.
Thanks you so much.
Waiting for your answers.
Bye
Yours,
Hy Chanhan
|
|
|
|
|
Have you tried the command:
service mysqld start
I haven't had to start mysql on my Linux boxes in a long time and IIRC, I've used this before and it works.
Last modified: 1min after originally posted -- Just did this on my linux box and it works
|
|
|
|