Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Mpdreamz

  1. Mpdreamz

    Unexpected call to method or property

    DOM related calls shouldnt take valid tags into account. Since XML can define its own.
  2. Mpdreamz

    Unexpected call to method or property

    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 ?
  3. Mpdreamz

    Unexpected call to method or property

    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...
  4. Mpdreamz

    Another Regex questions

    any thoughts are welcome :)
  5. Mpdreamz

    Another Regex questions

    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...
  6. Mpdreamz

    Another Regex questions

    Yes thats ace :D if i assume convert is a function where i replace the first parameter passed to it with the propper rgb() that be right ?
  7. Mpdreamz

    Another Regex questions

    anyone ?
  8. Mpdreamz

    Another Regex questions

    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>")...
  9. Mpdreamz

    Another Regex questions

    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...
  10. Mpdreamz

    Another Regex questions

    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...
  11. Mpdreamz

    Regex question

    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...
  12. Mpdreamz

    Regex question

    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...
  13. Mpdreamz

    Regex question

    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.
  14. Mpdreamz

    Regex question

    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...

Part and Inventory Search

Back
Top