• substring

    From Fidde@VERT/WESTLINE to All on Saturday, March 01, 2008 18:44:11
    I am not good on javascript, but try to write little.

    This works fine:

    if(http_request.query.adress != undefined)
    adress = http_request.query.adress;
    writeln (adress);

    ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ

    but this give me error:
    (TypeError: adress.substring is not a function)
    I need to have a substring from a string, it works
    on other places, but not here. what is I doing wrong?

    if(http_request.query.adress != undefined)
    adress = http_request.query.adress;
    adress = adress.substring(0,12);
    writeln (adress);


    /Fidde


    ---
    þ Synchronet þ Pepzi - Pepzi.se
  • From Deuce@VERT/SYNCNIX to Fidde on Saturday, March 01, 2008 11:02:33
    Re: substring
    By: Fidde to All on Sat Mar 01 2008 06:44 pm

    (TypeError: adress.substring is not a function)
    on other places, but not here. what is I doing wrong?

    address has two 'd's

    ---
    Synchronet - Jump on the Web 0.2 bandwagon!

    ---
    þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Fidde@VERT/WESTLINE to Deuce on Saturday, March 01, 2008 21:26:15
    2008-03-01 11.02, Deuce wrote to Fidde:

    (TypeError: adress.substring is not a function)
    on other places, but not here. what is I doing wrong?

    address has two 'd's

    No itïs not that. adress is only a variabel i use, same
    error if i use other variabel :(

    ---

    /Fidde


    ---
    þ Synchronet þ Pepzi - Pepzi.se