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 Mike Lewis 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: *

  1. edfimasa

    Need help with a Regular Expression to use in the Match

    Ok, Thank you. Cheers.
  2. edfimasa

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

    Using Javascript . Or is this obtained using CSS alone? And i use IE 6 Cheers.
  3. 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.
  4. edfimasa

    Need help with a Regular Expression to use in the Match

    I see. Thanks. Just a question. What is doing the question mark symbol in var flag=/<B>[\s\S]*?<\/B>/i.test(str); Cheers.
  5. 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)...
  6. edfimasa

    Javascript eats right spaces

    Well i can't use replace because i can have alot of same html tags in the text. The point is to format text in a textarea with html tags. (kinda of a text editor) I can add a tag or remove the tag, and the problem is when i remove the tag. I think the problem is here...
  7. edfimasa

    Double click selects words plus a white space

    That was funny, the things you can understand without punctuation. Thanks.
  8. edfimasa

    get html element reference/object without using getElementById

    Tiago, you can run another script that will tag every div in the document with a id tag, that is a solution. Another solution is using events, but i think for that you need to place the events inside the div thag. When the event happens, it will pass the event argument, for example ev, and...
  9. edfimasa

    Double click selects words plus a white space

    What is wrong with my question? Like i said, i work with IE 6 I'm using javascript to work with a textarea. My question, is if there is a way by using javascript, of correcting the double click, that selects the text like i said in the previous post. Did the question bother you? Is the answer...
  10. 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)...
  11. edfimasa

    Javascript eats right spaces

    this is to remove <br>some text</br> from the textarea for example I don't see any problem with my code, althow i don't doubt you are right when saying its on my code. so ie. : ... var begin ="<br>"; var end = "</br> other stuff"; var selection = "some text"; textarea.value =...
  12. 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.
  13. edfimasa

    Javascript eats right spaces

    Well, i use IE 6 And if you understood i was saying the problem was with JS,then I'm sorry maybe i expressed myself poorly. In the substring i was going to the wrong position, and therefore not retrieving the space. That is solved i guess. What about the textarea problem? Cheers.
  14. 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...
  15. edfimasa

    Need help on replace using regular expression

    \+euro+\ does the trick. Thanks again.
  16. edfimasa

    Need help on replace using regular expression

    Just another question. What about if i want to replace +euro+ by € like in the following string : "I have 1000+euro+ in my account and 10+euro+ in my wallet" replace by "I have 1000€ in my account and 10€ in my wallet" Cheers.
  17. edfimasa

    Need help on replace using regular expression

    Hmmm cool, it going on the right track.. still if i have this bbbbba£aaaa£££aaa it just goes nuts... but i guess it can't be helped. anyways, my solution thanks to tsuji is replace(/([^£])£([^£])/g,"$1€$2").replace(/£{2}/g,"£") Thank you.
  18. edfimasa

    Need help on replace using regular expression

    Hi. I can't use an intermediate step (or shouldn't), because in the text it can have that char.And that would mean more trouble. Thank you anyway.

Part and Inventory Search

Back
Top