Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Valentin Schmidt

  -- start to load XML from the web
  xmlFile = http//www.bulldogbroadband.com/xml/dataset.xml


hi ross,

propably this just happened when pasting into the email, but just in 
case, in both urls in your sample scripts the : were missing (after 
http).


valentin 


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Valentin Schmidt

propably this just happened when pasting into the email, but just in
case, in both urls in your sample scripts the : were missing (after
http).


when opening those (fixed) URLs with MU Xtra and my little HTTP Sniffer 
(http://dasdeck.de/staff/valentin/lingo/http_class/http_class_v1.1.zip; 
really a handy tool :-), I can see in the response headers that this web 
server uses some tool called Redline Networks Web I/O Processor 
(http://www.juniper.net/company/presscenter/pr/2003/rl/pr-030918.html).


Maybe there is some incompatibility between this tool and lingo's 
built-in network comands? I have no problems opening those URLs with MU 
Xtra, though.


Valentin 


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


RE: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Laurent Brigaut
Hi,

Did you try to access the txt file from IE. If it works, you should try
INM's SecureNet Xtra (If IE works, you have 99% chances SecureNet will
work).

Kind regard,

-- Laurent Brigaut
-- Director of Operations

-- Integration New Media, Inc. (INM)
-- www.INM.com
-- +1 514 871 1333 ext. 236

-- LEADERS IN INTERACTIVE MEDIA


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ross
Clutterbuck
Sent: 28 avril 2006 07:19
To: Lingo programming discussion list
Subject: lingo-l getNetText() not working, but it is, but it isn't any
more

Hi List

I'm having a bit of a problem with getNetText(). Sometimes it works, 
sometimes it doesn't and now it's not working at all.

I have a project already built that uses getNetText() to retrieve an XML

file from the web to update internal data. This routine runs inside an 
exitFrame handler that loops until everything's downloaded and parsed,
and 
then advances to another frame. Additionally, I use getNetText to
retrieve a 
dummy text file from the web purely to test if there is an active
internet 
connection. This routine runs inside a stepFrame handler after the
script 
has been added to the actorList.

The problem I'm having is that the XML downloader works perfectly well
and 
does its thing, but the dummy file check will _always_ claim there is no

internet connection. Now this phenomenon has only started happening
recently 
and only in my office - I've been using the same script since the first 
version of this last September and only now does it now work, yet it
works 
perfectly well on other internet connections.

My initial thought was it's some kind of proxy problem or something
because 
we've upgraded our connectivity recently to run a few in-house web
servers.

Attached is the code for both, but I've removed some stuff that isn't 
relevant.


XML DOWNLOADER

-- Properties
property pXML
property pState, pNetID

-- Events
on beginSprite me
   me.Initialise()
end

on exitFrame me
   case pState of
  #loading:
 if netDone(pNetID) then
case netError(pNetID) of
   0, OK: -- everything is fine
  xmlData = netTextResult(pNetID)
  pXML.parseString(xmlData)
  pState = #parsing

   4146: -- no connection
  pState = #failed
  go(NoConn)

   otherwise -- anything else
  go(NoFile)
end case
 end if
   end case

   -- loop
   go to the frame
end

-- Handlers
on Initialise me
   -- create XML Parser
 pXML = new (xtra XMLParser)
   pXML.ignoreWhiteSpace(TRUE)

   -- start to load XML from the web
   xmlFile = http//www.bulldogbroadband.com/xml/dataset.xml
   pNetID = getNetText(xmlFile)

   -- initialise
   pState = #loading
end


CONNECTIVITY CHECK

-- Properties
property pURL, pLoadMarker, pOKMarker, pFailMarker
property pState, pResult

-- Events
on mouseUp me
   me.Initialise()
end

on stepFrame me
   case pState of
  #checking:
 if netDone(pResult) then
case netError(pResult) of
   4146: -- no connection
  go(pFailMarker)
  me.Destroy()

   otherwise -- active connection, ignore error
  go(pOKMarker)
  gotoNetPage(pURL)
  me.Destroy()

end case
 end if
   end case
end

-- Handlers
on Initialise me
   pResult = getNetText(http//www.theMmen.co.uk/test.txt)
   pState = #checking
   (the actorList).add(me)
   go(pLoadMarker)
end

on Destroy me
   pResult = void
   pState = #destroy
   (the actorList).deleteOne(me)
end


As you can see I'm pretty much doing the same thing in both to check for
the 
existence of the online file, but the actorList version will always
report 
there's no connection i.e. netError always returns 4146.

Now to compound the problem, I've tried writing both exitFrame and
stepFrame 
scripts in a new project to see what's going on and now nothing works! 
getNetText() is always returning 4146, even through the Message window.

Does anybody have a clue what's going on here?

Sorry for the long message, thanks in advance.

Ross 



___ 
24 FIFA World Cup tickets to be won with Yahoo! Mail
http://uk.mail.yahoo.com
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]).
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Ross Clutterbuck

Hi Valentin

I've just noticed that all the colons were missing - thought I'd replaced 
them after the various case statements but I guess I missed a few.


Thanks for the info on the Redline I/O Processor and it's certainly a point 
of interest, but how would that explain everything only breaking in my 
office when it works perfectly well in the computer shop over the road?


Also it's the getNetText call to http://www.themmen.co.uk/test.txt that's 
always returning 4146 and unless Windows 2000 Advanced Server has this I/O 
Processor on it I know I aint got it as the server's next to me!


Thanks for the info so far - any further ideas?

Ross 




___ 
Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets. http://uk.mail.yahoo.com

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Valentin Schmidt

of interest, but how would that explain everything only breaking in my
office when it works perfectly well in the computer shop over the
road?


sorry, I missed that part about happening only on a certain computer. 
so, does it work on that machine if you use MU xtra instead (e.g. by 
opening the URLs with that mentioned sniffer)?

does it work in all browser (IE and non-IE)?
do you have any personal firewall installed (win xp's own or third 
party), or is there an intranet firewall?


valentin 


[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Mathieu Sénidre
Hey Ross,

I just did a very quick test and I don't get an error here
Here is the (quick and dirty) code I used in case it helps

--
property netID
property pDone

on beginSprite me
  pDone = FALSE
end


on exitFrame me
  if not pDone then
netID = getNetText(http://www.themmen.co.uk/test.txt;)
pDone = TRUE
  else

if netDone(netID) then
  if netError(netID) = OK then
put netTextResult(netID)
  end if
end if

  end if
  
  go to the frame
  
end
--

It returns me Internet connectivity test as expected

hth

Selon Ross Clutterbuck [EMAIL PROTECTED]:

 Hi Valentin
 
 I've just noticed that all the colons were missing - thought I'd replaced 
 them after the various case statements but I guess I missed a few.
 
 Thanks for the info on the Redline I/O Processor and it's certainly a point 
 of interest, but how would that explain everything only breaking in my 
 office when it works perfectly well in the computer shop over the road?
 
 Also it's the getNetText call to http://www.themmen.co.uk/test.txt that's 
 always returning 4146 and unless Windows 2000 Advanced Server has this I/O 
 Processor on it I know I aint got it as the server's next to me!
 
 Thanks for the info so far - any further ideas?
 
 Ross 
 
 
   
 ___ 
 Switch an email account to Yahoo! Mail, you could win FIFA World Cup tickets.
 http://uk.mail.yahoo.com
 [To remove yourself from this list, or to change to digest mode, go to
 http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
 lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is
 for learning and helping with programming Lingo.  Thanks!]
 


-- 
Mathieu Sénidre
MatseMedia
Développement multimédia online/offline
tel 06 79 52 19 77

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Mathieu Sénidre
Sorry, forget that one : my french brain missed the main point of your
problem...

Selon Mathieu Sénidre [EMAIL PROTECTED]:

 Hey Ross,
 
 I just did a very quick test and I don't get an error here
 Here is the (quick and dirty) code I used in case it helps
 


-- 
Mathieu Sénidre
MatseMedia
Développement multimédia online/offline
tel 06 79 52 19 77

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Alex da Franca
there is nothing wrong with using getnettext and nettextresult to  
load an xml file, but just to be sure:

you know about the parseURL method of the xml parser xtra ?
[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Ross Clutterbuck

Mathieu:

Your French brain is working perfectly well, dear sir! What you've done is 
indeed part of the problem.


Thanks all for your input. So far I have determined the followinf because 
everything as of now is OK again.


These problems have arrisen only since we moved all of our web hosting, 
e-mail servers, etc. to an in-house solution. We have had a number of 
teething troubles and it seems that it's had a coincidental knock-on effect 
to this project (which actually went live last month - hence me stressing!).


The XML download routine checks for a file on bulldogbroadband.com and 
functions fine, however the connectivity check accesses themmen.co.uk which 
is now on the server next door. These teething troubles have been causing 
gateway timeout errors and god knows what else over the past few months and 
it's just been unfortunate that people have been using the CD while our 
server's been playing up.


Trying to access the test file today as per Laurent's suggestion has 
illustrated this problem as I couldn't access the file from inside or 
outside the office - whatever response the server was giving was 
interpretted as 4146 by netError().


I have since modified the code to use the same XML file for the connectivity 
check and everything fires off beautifully.


So, in conclusion at this point, the problem's been with my server 
configuration, not any code or Director problems!


Hopefully I can now calm the client down and actually get paid for the 
140,000 CDs they're claiming don't work!


Thanks all.

Ross
- Original Message - 
From: Mathieu Sénidre [EMAIL PROTECTED]

To: Lingo programming discussion list lingo-l@lists.fcgnetworks.net
Sent: Friday, April 28, 2006 2:16 PM
Subject: Re: lingo-l getNetText() not working, but it is,but it isn't any 
more




Hey Ross,

I just did a very quick test and I don't get an error here
Here is the (quick and dirty) code I used in case it helps

--
property netID
property pDone

on beginSprite me
 pDone = FALSE
end


on exitFrame me
 if not pDone then
   netID = getNetText(http://www.themmen.co.uk/test.txt;)
   pDone = TRUE
 else

   if netDone(netID) then
 if netError(netID) = OK then
   put netTextResult(netID)
 end if
   end if

 end if

 go to the frame

end
--

It returns me Internet connectivity test as expected

hth

Selon Ross Clutterbuck [EMAIL PROTECTED]:


Hi Valentin

I've just noticed that all the colons were missing - thought I'd replaced
them after the various case statements but I guess I missed a few.

Thanks for the info on the Redline I/O Processor and it's certainly a 
point

of interest, but how would that explain everything only breaking in my
office when it works perfectly well in the computer shop over the road?

Also it's the getNetText call to http://www.themmen.co.uk/test.txt that's
always returning 4146 and unless Windows 2000 Advanced Server has this 
I/O

Processor on it I know I aint got it as the server's next to me!

Thanks for the info so far - any further ideas?

Ross



___
Switch an email account to Yahoo! Mail, you could win FIFA World Cup 
tickets.

http://uk.mail.yahoo.com
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is

for learning and helping with programming Lingo.  Thanks!]




--
Mathieu Sénidre
MatseMedia
Développement multimédia online/offline
tel 06 79 52 19 77

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L 
is for learning and helping with programming Lingo.  Thanks!] 


Send instant messages to your online friends http://uk.messenger.yahoo.com 
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi  To post messages to the list, email lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Cole Tierney

At 2:24 PM +0200 4/28/06, Valentin Schmidt wrote:
when opening those (fixed) URLs with MU Xtra and my little HTTP 
Sniffer 
(http://dasdeck.de/staff/valentin/lingo/http_class/http_class_v1.1.zip; 
really a handy tool :-)...


Yes it is! Nice work Valentin.

--
Cole

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]


Re: lingo-l getNetText() not working, but it is, but it isn't any more

2006-04-28 Thread Ross Clutterbuck

Hi Alex

I do know about parseURL with the XML Parser - to be honest I forget now why 
I went with getNetText() but there was a reason ;)


Thanks to all for the input.

Ross



___ 
24 FIFA World Cup tickets to be won with Yahoo! Mail http://uk.mail.yahoo.com

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
lingo-l@penworks.com  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]