Mail from ILUG-BOM list (Non-Digest Mode)

I've managed to run the mtnl telephone directory search on lynx (without
javascript support).

You've got to edit the html source, and change one field (named hd) from
hidden to text.

Then, enter a query into that field like this:

$T_$N1 WHERE NAME LIKE '$NAME%' AND INITIALS LIKE '$INITIALS%' AND AREA
LIKE '$AREA%' ...

Only include fields that you have selected.  This is the case if you have
chosen to match starting characters.

$T is the type of phone
R == Residential
B == Business

$N1 == In most cases, the first character of the string.
The rules for this are:
If first character in (a, e, i, y) then $N1 = 'aeiy'
If first character in (j, z, x)    then $N1 = 'jzx'
If first character in (k, q)       then $N1 = 'kq'
If first character in (o, u)       then $N1 = 'ou'
If first character in (v, w)       then $N1 = 'vw'

If first character == 's' and second character == 'h' then $N1 = 'sh'

Now, for $NAME,

If there is an apostrophe in the name (D'Souza), then preceed it with
another apostrophe (D''Souza)

The query string must be in all caps.

There are other rules, but are generally common sense.

These are the settings for a Starting With match.
If you use an Exact match, then replace LIKE with = and remove the %, if
you use an Advanced match, then just remove the %.

So, if you have:

Match: Starting With
Phone is: Residential
Initials: D
Surname: J'oshi
Area: Vile Parle

Query string == 

R_JZX WHERE NAME LIKE 'J''OSHI%' AND INITIALS LIKE 'D%' AND AREA LIKE
'VILE PARLE%'

Submit and get your number.

Now, what I don't understand is why mtnl can't do at least this part of
the processing in the back-end.  Then they no longer have to block out
lynx users.

Then again, I figure, if anyone /was/ using lynx, he'd come up with a mini
hack.

Philip

-- 
Emotions are alien to me.  I'm a scientist.
                -- Spock, "This Side of Paradise", stardate 3417.3

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Yeah Spock.  My kind of guy.


_______________________________________________
Linuxers mailing list
[EMAIL PROTECTED]
http://ilug-bom.org.in/mailman/listinfo/linuxers

Reply via email to