SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Hybrid View

  1. #1
    SitePoint Member bakri's Avatar
    Join Date
    Apr 2006
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation please any who know right javascript please help me with this

    i have javascript code posted it in this forum before but I get a help with out full understanding...

    Code:
    <script type="text/javascript">
    <!--
    function CK() {
    var str = new String();
    str = "man mr how me";
    var arrResult = new Array();
    var op = new Array('man','HOW','ME');
      for(var i=0; i< op.length; i++) {
      var pattern = ""+op[i]+"";
      arrResult = str.match( pattern );
      }
     alert( "Found: " + arrResult.length + ' And Patter: ' + pattern );
    }
    //-->
    </script>
    
    <body onload="CK()">
    </body>

    i want to use:
    var pattern = /+op[i]/gi;
    or something like that... i means i want show to me how=How, man=man, Me=me

    how i can get it

  2. #2
    SitePoint Enthusiast jester_original's Avatar
    Join Date
    Aug 2004
    Location
    devon
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i cant help with that, but i can point you in the right direction of sensible subject titles
    Its one of those days!

  3. #3
    SitePoint Member bakri's Avatar
    Join Date
    Apr 2006
    Posts
    23
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    what did you mean ?

    thanx for replying

    but i did not get what you said ?
    what did you mean by the right way ??!

  4. #4
    SitePoint Enthusiast jester_original's Avatar
    Join Date
    Aug 2004
    Location
    devon
    Posts
    72
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, it would be a lot easier for the subject title to have info about your problem

    e.g if i had a problem with my elbow hurting, i would title it "my elbow hurts" and not "does anybody know anything about bodily functions"

    This way people that know about elbows can view the post and the people that know about feet can go and help the feet people.

    Hope this is as clear as mud.
    Its one of those days!


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •