jQuery: The Write Less, Do More JavaScript Library

jQuery XML to JSON Plugin v1.0 and file size problem

View: New views
5 Messages — Rating Filter:   Alert me  

jQuery XML to JSON Plugin v1.0 and file size problem

by deepsnow-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Gang,
Im using the xmltoJSON plugin. It works fine for an xml file of 300kb
or so. Im loading the file from an ajax call to a local file. Im going
to have some big xml files, so I tried making some big file tests. I
tried to load a 7.5MB xml file and it 404s on me. Is there a file size
limit setting somewhere or a way to know what the max file size I can
use is?

Thanks for the help.

DE

Re: jQuery XML to JSON Plugin v1.0 and file size problem

by Ariel Flesler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


7.5 mb ?!

I'd try another approach for transfer.. maybe JSON or plain text with
separators.

--
Ariel Flesler
http://flesler.blogspot.com/

On 23 jul, 18:31, deepsnow <daneens...@...> wrote:

> Hi Gang,
> Im using the xmltoJSON plugin. It works fine for an xml file of 300kb
> or so. Im loading the file from an ajax call to a local file. Im going
> to have some big xml files, so I tried making some big file tests. I
> tried to load a 7.5MB xml file and it 404s on me. Is there a file size
> limit setting somewhere or a way to know what the max file size I can
> use is?
>
> Thanks for the help.
>
> DE

Re: jQuery XML to JSON Plugin v1.0 and file size problem

by S P Arif Sahari Wibowo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Wed, 23 Jul 2008, deepsnow wrote:
> I tried to load a 7.5MB xml file and it 404s on me. Is there a
> file size limit setting somewhere or a way to know what the
> max file size I can use is?

I am a bit new here, but I believe 404 errors are from server,
not from client-side JavaScript. So, I believe the plugin have
no direct limitation in this case, maybe the server have problem
provide those 7.5 MB in the particular setup and manner you
download it. One thing to check is whether you can download that
XML without script at all. There can be timeout built to server
and/or browser causing big download to fail. It can be tricky if
the download size fall into grey area, when if everything good
it still fall under timeout, but if moon is in certain position
in the sky the download got slowed enough to timeout.

--
                              (stephan paul) Arif Sahari Wibowo
    _____  _____  _____  _____
   /____  /____/ /____/ /____
  _____/ /      /    / _____/      http://www.arifsaha.com/

Re: jQuery XML to JSON Plugin v1.0 and file size problem

by chris thatcher-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yeah, I'd also suggest even at anything nearing 1 mb you might see more efficiency with jquery.xslt,js and an xml2js xsl.  Most Restful XML databases like eXist will also let you request the resoruce as json, and break the processing into smaller request/response bodies by providing an xpath in the url.  For some thing that big, it really is better to push the xml2json off to the server because otherwise your browser is building a huge DOM it's going to throw away anyway.

Thatcher

On Wed, Jul 23, 2008 at 10:00 PM, Ariel Flesler <aflesler@...> wrote:

7.5 mb ?!

I'd try another approach for transfer.. maybe JSON or plain text with
separators.

--
Ariel Flesler
http://flesler.blogspot.com/

On 23 jul, 18:31, deepsnow <daneens...@...> wrote:
> Hi Gang,
> Im using the xmltoJSON plugin. It works fine for an xml file of 300kb
> or so. Im loading the file from an ajax call to a local file. Im going
> to have some big xml files, so I tried making some big file tests. I
> tried to load a 7.5MB xml file and it 404s on me. Is there a file size
> limit setting somewhere or a way to know what the max file size I can
> use is?
>
> Thanks for the help.
>
> DE



--
Christopher Thatcher

Re: jQuery XML to JSON Plugin v1.0 and file size problem

by chris thatcher-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

oops, I actually read the first message incorrectly, I thought deepsnow was saying it took over 400 seconds to go from xml to js.  sorry.  Can you make sure that you can point the browser directly at the large xml file url and that it loads successfully there first?

On Thu, Jul 24, 2008 at 9:13 AM, S P Arif Sahari Wibowo <arifsaha@...> wrote:

On Wed, 23 Jul 2008, deepsnow wrote:
> I tried to load a 7.5MB xml file and it 404s on me. Is there a
> file size limit setting somewhere or a way to know what the
> max file size I can use is?

I am a bit new here, but I believe 404 errors are from server,
not from client-side JavaScript. So, I believe the plugin have
no direct limitation in this case, maybe the server have problem
provide those 7.5 MB in the particular setup and manner you
download it. One thing to check is whether you can download that
XML without script at all. There can be timeout built to server
and/or browser causing big download to fail. It can be tricky if
the download size fall into grey area, when if everything good
it still fall under timeout, but if moon is in certain position
in the sky the download got slowed enough to timeout.

--
                             (stephan paul) Arif Sahari Wibowo
   _____  _____  _____  _____
  /____  /____/ /____/ /____
 _____/ /      /    / _____/      http://www.arifsaha.com/



--
Christopher Thatcher
LightInTheBox - Buy quality products at wholesale price