Hello.
I use IE 6
I have the following code:
var flag = false;
var str = "aaaa\na <B>italico</B> e mais\n algo ee e e eee e e e e e a a a a a a a a a a a a a a a a a a a a ";
if(str.match(/<B>((.)*[\r\n]*(.)*)*<\/B>/i) != null) flag = true;
alert(flag)...
Hi.
I found the following function to retrieve the caret of a textarea:
function doGetCaretPosition (ctrl) {
var CaretPos = 0;
// IE Support
if (document.selection) {
ctrl.focus ();
var Sel = document.selection.createRange ();
Sel.moveStart ('character', -ctrl.value.length)...
Hi.
I work with IE 6
I have a text area with several words, when i double click to select one of those words, it selects the word with a blank space that is just next to the word.
How can i prevent this?
Cheers.
Hi.
I have two problems with javascript.
One it's that if i have var x = "aaaa ";
it will show "aaaa"
How do i prevent this from happening in jS?
The other problem is with a textarea
var textarea = document.getElementById("myTextArea");
var begin = "a begining<b>";
var end = "</b>some other...
Hi.
I have the following string "aaaaaa££aaaaa£aaaaa££"
and i want to replace £ for € and ££ for £.
(the string may change, but the rules are the same)
i've tried doing the following :
stringvar.replace(/[£]/g,"\u20AC")).replace(/[££]/g,"£")
It's obvious that the first replace replaces all £...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.