Forums

This topic is locked

Could someone help me out with this script ?

Posted 28 Oct 2001 20:37:17
1
has voted
28 Oct 2001 20:37:17 Adam Cronin posted:
I worked out a way of scanning a text file for a certain number which will do for now - but theres a minor problem with it, that I definately dont know how to get around - but im sure one of you lot will know

So anyway, the script below scans a page much like using the "ctrl-F" function in IE, its looking for the number "74". Trouble is what I really need is for it to look up 74 and above. So 74,75,76,77 etc. Anyone have any idea on how to do this ?

Thx in advance <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

EDIT-please click www.btinternet.com/~leech_uk_2000/script.txt and just view the source to see the script.

Thx again.

Replies

Replied 29 Oct 2001 15:01:12
29 Oct 2001 15:01:12 Joel Martinez replied:
well, I don't know if you've noticed this or not, but the include files are not getting parsed. But I'm sure that's only because it's a txt file. anyways.

the problem with what you're looking to do, is that what you're searching against is text, so you can't use math operator like "&gt;".

the only answer I can come up with at the time, is if you can search through a range...
then that way, you can just call the function several times like so<pre id=code><font face=courier size=2 id=code>findInPage(74);
findInPage(75);
findInPage(76);
findInPage(77);
findInPage(78);
//....</font id=code></pre id=code>

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/
Replied 29 Oct 2001 15:02:38
29 Oct 2001 15:02:38 Joel Martinez replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>, but the include files are not getting parsed.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>HAHA ... P a r s e d got censored.

Joel Martinez [ ]
----------
E-Commerce Concepts with Ultradev...pre-order yours at
www.basic-ultradev.com/ecomm_concepts/

Reply to this topic