That didn't work despite my bitter hope it was such a simple mistake on my part. I still get the error in IE while in FF it works totally as expected.
Setting properties of the elements in the array control bugs where as returning properties works.
How odd is that ?
I get this whenever i try to alter an object in IE. The weird thing is that any function that only gets information works (such as alerting nodeValue) but whenever i try to alter the object (such as appendchild) to the object i get IE saying "Unexpected call to method or property" whilst it...
Ok im getting so close now tnxs to your help but ran a bit into trouble namely 2 problems
1.the kRe regexp didnt like the usage of \003 in its declaration so i used String.fromCharCode(3) it does match that character still but now the backreference the the digits dont work. which causes the...
JontyMC im not sure on this but, doesnt that only work on page load ? the whole point in me using execscript is so that i dont have to refresh the window when something gets said.
This is the code in my htm
function showmn(txt) {
var txt = txt.replace(/\x02(.*?)(?:\x02|$)/gi,"<b>$1</b>")...
tsdragon once again thank you for your reply :).
the thing is the style is for a <font> tag and one can contain multiple colour data. Let me explain what im doing more precisely. Im replacing mIRCs normal chat window with a html page with the help of a dll that docks it to that window and...
ok heres a question the answer to which i didnt find out the net .
\003(\d{0,2}),?(\d{0,2})
i us this regex to detect an mirc colour code (control+K) followed by a first digit and an optional second one tokened by a "," this works. however i need the digits to represent a colour that works in...
function showmn(txt) {
var txt = txt.replace(/\x02(.*?)(?:\x02|$)/gi,"<b>$1</b>")
var txt = txt.replace(/txt.fromCharCode(31)(.*?)(?:txt.fromCharCode(31)|$)/gx,"<u>$1</u>")
this.document.body.innerHTML=this.document.body.innerHTML+txt;
}
Ok i think i need some serious help lol tnxs so much...
for some odd reason in the Regex Coach
(.*?)(?:|$)/xx
with replacement <u>\1</u>
it makes this line <b>HEHEHE</b> ok so whats the dealio ? hmmm
turn into <u><b>HEHEHE</b> </u> ok so whats the dealio ? <u> hmmm</u>
which is exactly what i wanted lol
BUT yes javascript doesnt like me...
OMFG i cant believe i completely forgot the /gi :O :O tnxs for the $1 pointer :D :D about referbacks as replacement strings in many scripting languages you can it works in The regex coach and according to the javascript regular expresion tutorial ive been reading you can as well.
function showmn(txt) {
var txt = txt.replace(\x02(.*?)(?:\x02|$),'<b>\1</b>')
this.document.body.innerHTML=this.document.body.innerHTML+txt;
}
its a valid regex that does what i want in several languages and regex tools but in javascript i get an error saying an object is expected and sign 25...
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.