473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

GET is not working for large amout of data.

110 100+
i had used get method in ajax but since get has limitations it has stopped working so shifted to post emthod evrythng working fie now bt
is there issue of IE caching when post method is used the way it has for GET method
Jul 6 '08 #1
10 1026
hsriat
1,654 Expert 1GB
Use a random get parameter with the url. The will make sure different request is sent every time.

Expand|Select|Wrap|Line Numbers
  1. var uri = url + '&rand=' + Math.random();
Jul 6 '08 #2
rnd me
427 Expert 256MB
you might try looking into other things, because POSTs are not supposed to be cached.
Jul 7 '08 #3
SSG001
110 100+
you might try looking into other things, because POSTs are not supposed to be cached.
I can't get method ehere since there is lot of data so i used post and and it is working perfectly only i wanted to know if there will be caching issues with post method too
Jul 7 '08 #4
rnd me
427 Expert 256MB
switching from get to post, along with the answer in post #2, are ways to defeat the caching of ajax requests.
Jul 7 '08 #5
SSG001
110 100+
but i'm using apache server will post create any problem for this
i'm getting error on line document.formname.submit();
invalid syntax
i tried putting window too but no use
Jul 7 '08 #6
hsriat
1,654 Expert 1GB
but i'm using apache server will post create any problem for this
i'm getting error on line document.formname.submit();
invalid syntax
i tried putting window too but no use
That's got nothing to do with Apache or Windows.
What error is it giving?
Jul 7 '08 #7
SSG001
110 100+
i tried putting
WINDOW.DOCUMENT.FORMNAME.SUBMIT();
and also
DOCUMENT.FORMNAME.SUBMIT();

but it gives me error of javascript invalid syntax
for the above line
i was using get method and it was working perfectly but only since late there were around 8 rows dyanamically created by ajax and so data exceed the limit for get method so i shifted for POST method now when i use this program locally it works fine but it doesnt work on live server i read somewhere apache does not work with post.
Jul 7 '08 #8
rnd me
427 Expert 256MB
try document.forms['formName'].submit()

post will work fine for large data sets.
get is limited to 2-4kb, post is unlimited.
Jul 7 '08 #9
SSG001
110 100+
there is no error but it doesnt submit the form
Jul 7 '08 #10
acoder
16,027 Expert Mod 8TB
Post your code then. It'd be difficult to say what the problem might be without seeing the code.
Jul 7 '08 #11

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Pavel | last post by:
I have SQL 2000 and need to retrieve fairly large amout of data (~ 50.000 characters) in XML format and then insert it into the field of the text type. As 'FOR XML' can't be used with either local...
24
by: Salad | last post by:
Every now and then I see ads that state something like "Experience with Large Databases ...multi-gig...blah-de-blah" And I have to laugh. What's the difference between a large or small database? ...
2
by: RAJ | last post by:
Hi, Need some advice with regards to XML files. Here is what I am trying to achieve: I have an SQL Server 7.0 database and a Web service running on a Windows 2003 enterprise machine (for...
4
by: Jim Michaels | last post by:
after a file upload, $_FILES is not populated but $_POST is. what's going on here? $_POST=C $_POST=C $_POST=C $_POST=C:\\www\\jimm\\images\\bg1.jpg $_FILES= $_FILES= $_FILES=
9
by: Jordan Pittman | last post by:
ok i want to wait an x amout of seconds before my ajax script writes the results to a div, but i want it to still display the loading bar, i do have a variable http_rste that holds the readyState...
26
by: myeates | last post by:
Hi Anyone ever done this? It looks like Python2.4 won't take a length arg Mathew
4
by: thisis | last post by:
Hi All, i'm trying to display the amout in percentage for the loading sub event value, for the <img .../> example: the browser should display something like this:
1
by: Jesper, Denmark | last post by:
Hi, I've written a somewhat large program over the years (70.000 lines of code). When compiling the program I get a 2MB exe file. When running this program I get an corresponding image in the...
2
by: =?Utf-8?B?c2lwcHl1Y29ubg==?= | last post by:
Have a complex process where I need to Import a large amount of data then run some transformations on this data then import into DataBase. The transformation involves multiple fields and multiple...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.