Search found 10 matches

by jeffmatthews
Sat Oct 24, 2009 2:00 pm
Forum: Javascript
Topic: Referencing an empty node
Replies: 1
Views: 237

Re: Referencing an empty node

Matt's a busy guy! :roll:

I found the answer. Must test: if (name[0].firstChild)...

What a joke! Who wrote the program to require such extraneous evaluations? It should just return null or an empty string, or whatever.
by jeffmatthews
Sat Oct 24, 2009 1:45 pm
Forum: Javascript
Topic: Referencing an empty node
Replies: 1
Views: 237

Referencing an empty node

How to access? 1. This works: <name>Joe</name> nameElement[0].firstChild.nodeValue returns "Joe" 2. This does not work: <name></name> nameElement[0].firstChild.nodeValue creates an error. I have tried using a boolean operator to evaluate it (if nameElement....), but that does not work, eit...
by jeffmatthews
Sat Oct 24, 2009 12:50 pm
Forum: PHP - Code
Topic: PHP echoing xml bck to ajax
Replies: 2
Views: 201

Re: PHP echoing xml bck to ajax

I found the issue, but still need some help dealing with it. When, I open my xml file in Excel and edit it, and then save it back, Excel puts encoding tags in it as follows: <?xml version="1.0" encoding="UTF-8" standalone="yes"?><state xmlns:xsi="http://www.w3.org/...
by jeffmatthews
Sat Oct 24, 2009 12:31 pm
Forum: PHP - Code
Topic: PHP echoing xml bck to ajax
Replies: 2
Views: 201

PHP echoing xml bck to ajax

:banghead: This is killing me. It worked for so long, and now, it doesn't. This is an xml file. I found file_get_contents to be more reliable, so I went that route. It worked for days, up until last night. I have no clue what I changed, and what it used to be before I broke it. Whatever it was, it h...
by jeffmatthews
Thu Oct 22, 2009 9:59 pm
Forum: Javascript
Topic: ResponseXML size limit
Replies: 6
Views: 535

Re: ResponseXML size limit

Well, it turns out is not a size issue (as far as I can tell). It was finding "junk after document element," but for the life of me, there was none (or if there was, it was invisible). I changed the file load type as follows from simplexml to just plain-old contents, and it's okay. Sorry f...
by jeffmatthews
Thu Oct 22, 2009 4:56 pm
Forum: Javascript
Topic: ResponseXML size limit
Replies: 6
Views: 535

Re: ResponseXML size limit

Incidentally, I modified the code to only allow for pulling the first 4 of 150+ polygons. It still works, so there is nothing wring with the polygon coding. This clearly has to be a problem with the size of the ResponseXML.

Nobody has encountered this before? :?: :?: :?:
by jeffmatthews
Thu Oct 22, 2009 10:48 am
Forum: Javascript
Topic: ResponseXML issue
Replies: 0
Views: 218

ResponseXML issue

httpRequest calls php and gets ResponseXML. Php dynamically builds return variable to echo back to js. If return is small, it works fine, and js receives it, and all is good. If the return is large (2.5 megs), readystate=4 does not occur, and js reports my RespnseXML as null. Of course, this causes ...
by jeffmatthews
Thu Oct 22, 2009 9:40 am
Forum: Javascript
Topic: ResponseXML size limit
Replies: 6
Views: 535

Re: ResponseXML size limit

No. That didn't work.

Also, I forgot to add, this php file is called from javascript. If I go to my browser's address bar and call it directly (supllying the parameter), it echos back everything.

So, the more I think about it, logic tells me this error is on the clinet side in javascript.
by jeffmatthews
Thu Oct 22, 2009 9:24 am
Forum: Javascript
Topic: ResponseXML size limit
Replies: 6
Views: 535

Re: ResponseXML size limit

Thanks. I already had the timeout set higher. I'll set the memory limit and post back.
by jeffmatthews
Wed Oct 21, 2009 10:25 pm
Forum: Javascript
Topic: ResponseXML size limit
Replies: 6
Views: 535

ResponseXML size limit

Don't know if this is a client or server side issue, but responseXML is not retrieved/sent if it is large. In my case, it dies when trying to send an xml of about 2.5 megs back to client.

Is there some setting for this?

Thanks.