www.webdeveloper.com

Search:

Type: Posts; User: whatsInaName

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. capture each item in comma seperated list with reg ex?

    I have a comma separated list, the curve ball is, some of the items are strings with commas inside them (so I cant just exploid the string using a comma as a separator). How can I write a reg to...
  2. Replies
    2
    Views
    235

    You usually aren't supposed to use eval(), but...

    You usually aren't supposed to use eval(), but here is one way:


    var xyz = "test";
    eval("var " + xyz + " = 'abc';");
    alert (test);
  3. javascript replace with remembering the match?

    Lets say this is my code


    var aa = "aaa111bbb22222";
    var result = (aa.match(/aaa(\d+)bbb(\d+)/));

    Using result variable I can access the data and get either '111' or '22222'.

    Is it...
  4. trying to upload site, three small issues

    I am trying to upload a working site to netfirms, but im having 3 issues....

    1# Its not displaying any PHP errors (for security reasons). But I cant seem to have a way to disable this temporary...
  5. well at the very least id need to alter the...

    well at the very least id need to alter the function calls that used copy/paste data duplication ones to implement this array thing correctly.

    And to be honest, id much rather implement another...
  6. Like I said, this code works very well. I got...

    Like I said, this code works very well. I got over 10000 lines of code in this project, and this class is one of the better ones I wrote. It makes managing all the tables VERY easy. There is only...
  7. yeah that is looking like my best option... ...

    yeah that is looking like my best option...

    But I wanted to avoid it because ill need to rewrite all my functions that use this method, and need to change all the pages that call these...
  8. note: I am on my home account. ZD is my work...

    note: I am on my home account. ZD is my work webdev account.



    I know that. I was asking if there was anyway to bypass this. Lets say I did not know what was in opt1 and opt2, but wanted to use...
  9. Replies
    7
    Views
    1,943

    As a company worker, who owns my code?

    I work for a company as part of there IT staff as a web dev. I never signed any "we own everything you do" type of papers. Ive designed a few CMS, about 90% of the work on company hours and 10% (or...
  10. A1ien51: Tnx, that was my option 2. It works...

    A1ien51: Tnx, that was my option 2. It works good. Im curious at how much more efficient this is then my first loop, either way, this method looks "cleaner".


    Since the conversion went both ways...
  11. the string wont convert to RegEXP.... if you take...

    the string wont convert to RegEXP.... if you take ";)" and convert it into a regExp it throws an error.

    All "new regexp" does it creates a regEXP, it doesn't convert a string into a regExp :(
  12. Yeah like I said earlier, I do the conversion...

    Yeah like I said earlier, I do the conversion both ways :( So I cant escape the brackets.

    The code I shown you was turning it into "HTML" for my AJAX submit. I also have code that runs before that...
  13. The code gives me this error: How would...

    The code gives me this error:


    How would turning the second parameter into a regexp work? replace doesnt take regexp as the second parameter. If it did, my code would work without this loop....
    ...
  14. Because replace function only takes a regular...

    Because replace function only takes a regular string as a second parameter. So earlier in my code where I have the location as my first parameter and the representation as my second, it would not...
  15. Im done working on this today (going to sleep...

    Im done working on this today (going to sleep soon), but this is my code:



    function mySmileyObj(location, representation)
    {
    this.location = location;
    this.representation = representation;...
  16. I dont think I can... I am using an array of...

    I dont think I can... I am using an array of instances of my object that holds strings. So unless there is a way to change it to regexp string and back, I cant use regexp for this loop because my obj...
  17. multiple line match with replace without regexp?

    As the title says, how can I do a multiple replaces without using regexp? Right now I just have a while that keeps checking if it exist, then if it does, replacing it. Not very efficient.
  18. Greasemonkey: Possible to run JS code BEFORE images loads?

    I have some JavaScript (greasemonkey) that delete's post in a forum so I dont have to load its contents (saving bandwidth and time). Problem is the javascript only runs after all the images are...
  19. Replies
    6
    Views
    599

    well that is kind of over kill for what I want......

    well that is kind of over kill for what I want... in my script there are about 100 rows while all rows have many cells. Then based on certain data I want to change the color (and its not based on a...
  20. Replies
    6
    Views
    599

    well I was aware about that... but I was not...

    well I was aware about that...

    but I was not aware that the TR background that came from "css-on-the-fly" was not taking priority over a css class because it was effecting the TD (the child of the...
  21. Replies
    6
    Views
    599

    oops, I found my mistake and I just learned...

    oops, I found my mistake and I just learned something...

    I was setting the background to the TR, and nothing was happening until I removed the external CSS file. It was resolving my issue because...
  22. Replies
    6
    Views
    599

    [RESOLVED] overrid style

    What is the proper way of override a CSS style?

    One of my greasemonkey scripts simple deletes the class name then applies a "style" element directly. Buts its obviously not proper method....
    ...
  23. Getting error on match unless match (if needed?)

    alert(Scripts[i].innerHTML.match(/window\.location\=\"([\w\W]+)\"/)[1]);
    That will work if it exist, but if not I get a error and my script ends.

    Solution:


    if...
  24. Javascript issues with navigation (HTML DOM)

    EDIT: NEVER MIND. I forgot my s on childNodes when I first tryed to skip the <tbody> part.

    old question:
  25. Replies
    2
    Views
    851

    http://jsbeautifier.org/ does the format, but it...

    http://jsbeautifier.org/ does the format, but it also does that messed up { on the same line BS... I am thinking of coding one myself... Shouldn't take 2 long (espeiclly if I burow his code)... maybe...
Results 1 to 25 of 94
Page 1 of 4 1 2 3 4
HTML5 Development Center



Recent Articles