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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: edfimasa
  • Content: Threads
  • Order by date
  1. edfimasa

    Div are of the size of a A4 Page, independent of resolution

    Hi. How can i create a small div area, to represent a A4 page in width, independent of screen resolution? Cheers.
  2. edfimasa

    Need help with a Regular Expression to use in the Match

    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)...
  3. edfimasa

    Textarea It doesnt retrieve the caret position when new line

    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)...
  4. edfimasa

    Double click selects words plus a white space

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

    Javascript eats right spaces

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

    Need help on replace using regular expression

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

Part and Inventory Search

Back
Top