Marc Jansen
a34e627b75
Remove dangling space in license header.
2013-02-07 10:33:20 +01:00
Tim Schaub
bbc73a21d8
Update copyright date
2013-01-07 22:01:16 -05:00
Bart van den Eijnden
3265b0e73f
Make sure config.headers does not overwrite DEFAULT_CONFIG.headers in OpenLayers.Request.issue
2012-11-13 16:12:14 +01:00
Peter Robins
99906c8b98
CORS support in Request: remove console warning if not same origin
2012-11-05 09:32:20 +00:00
Éric Lemoine
f7d4657c14
fix typo in Request.js (refs #462 )
2012-05-12 08:56:21 +02:00
Tim Schaub
cb7cf5e18e
Allow for circular dependency in XMLHttpRequest.js
...
To make custom builds easier, it's convenient to have a OpenLayers.Request depend on OpenLayers.Request.XMLHttpRequest (see 18b4d6808d ). This makes it so we don't know which is going to be included first. To get around this, we can be careful about when we define OpenLayers.Request.
2012-05-11 17:41:24 -06:00
ahocevar
18b4d6808d
Adding missing dependency. Non-functional change.
2012-05-09 11:03:57 +02:00
Éric Lemoine
e0b93c2e45
The OpenLayers code is published under the 2-clause BSD license
2012-03-30 08:33:55 +02:00
Éric Lemoine
650df2a8f1
change copyright header in every OpenLayers js file
2012-03-29 22:14:56 +02:00
Frederic Junod
5557693df1
Confusing use of '!'.
2012-03-19 09:13:01 +01:00
ahocevar
bd262fce41
Addressing @elemoine's review comments.
...
Now the application no longer needs to care about the tile origin, because the CacheWrite control modifies the url if the CORS image loading is disabled and it is from a different origin. This only requires OpenLayers.ProxyHost to be properly configured. Also local storage keys use the original url instead of the proxied url, to make the CacheRead control work without proxy settings.
No deferred exceptions are thrown any more. Instead, OpenLayers.Console is used to show an error message for security exceptions.
We now check for OpenLayers.Tile.Image, because other tile types (e.g. UTFGrid) are not supported (yet).
To make the same origin handling in the CacheWrite control easier, OpenLayers.Request now exposes the same origin logic from request.issue as a separate function, so it can also be used by other components.
2012-03-11 22:15:34 +01:00
Éric Lemoine
9a116b21b9
Revert "protect for in loops with hasOwnProperty"
...
This reverts commit e3cc96dbfb .
2012-03-03 22:35:39 +01:00
Bart van den Eijnden
e3cc96dbfb
protect for in loops with hasOwnProperty
2012-02-29 18:43:55 +01:00
tschaub
b844a3b11b
Happy New Year!
...
Updating copyright to 2012.
2012-01-03 09:01:10 -07:00
tschaub
368ad02bdb
Deprecated methods from Ajax.js.
2011-11-08 16:11:43 -07:00
Marc Jansen
8bcbb069b5
Remove global variable 'headerKey', no functional change.
2011-09-22 04:52:35 +02:00
Marc Jansen
6b30856a07
Give our requests the popular but non-standard X-Requested-With
...
header (r=crschmidt, closes #3491 ).
2011-09-22 02:57:39 +02:00
Frédéric Junod
501b42228a
remove event type list from Events (lazy listener initialization) p=tschaub,me r=erilem ( closes #2555 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@12384 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-09-17 19:09:40 +00:00
ahocevar
2e00e2e442
better support for file:// resources. r=bartvde ( closes #3174 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11711 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-03-17 13:01:37 +00:00
bartvde
3db27d7832
add missing part for #3055
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11134 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 15:08:18 +00:00
bartvde
04acbeeb0e
OpenLayers.Request issue method creates URLs such as http://service?&key=value , p=fvanderbiest, r=me ( closes #3055 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11133 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-02-17 15:04:53 +00:00
ahocevar
fcdd918170
check if using a proxy is required, and if so, issue a warning if none is configured. p=fvanderbiest,me r=me ( closes #3015 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11038 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-18 00:13:35 +00:00
Tim Schaub
ad54169479
Happy New Year.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10995 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2011-01-03 15:39:40 +00:00
Éric Lemoine
4c3d4c77c0
make Request rely on standard XMLHttpRequest interfaces, p=jorix, r=me (References #2913 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10966 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-12-15 07:52:00 +00:00
crschmidt
f0d474e50b
Change license text to point to "OpenLayers contributors", referencing
...
authors.txt file. In reality, MetaCarta does not own copyright to these files,
they merely have a right to distribute them under the license terms agreed to
by the contributors. At this point, there is no longer any reference to
MetaCarta as a copyright holder in the OpenLayers project, only to its
individual contributors via the authors.txt file.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10706 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-09-01 03:06:31 +00:00
Éric Lemoine
0b9e0f50ab
revert [10347] which causes double requests in certain conditions, discussed in #2065 , r=ahocevar
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10426 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-06-28 07:16:37 +00:00
ahocevar
e4085bbdc6
Using the IE cache fix from XMLHttpRequest.js allows us to send asynchronous requests without a setTimeout handler. r=bartvde ( closes #2065 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10347 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-20 18:11:30 +00:00
Éric Lemoine
ef87d15cfe
fix indent, no functional change
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10342 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-19 15:39:25 +00:00
bartvde
0f648dedf4
do not send request if abort has been called, r=elemoine ( closes #2065 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10341 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2010-05-19 12:51:09 +00:00
Éric Lemoine
f587b05d35
in OpenLayers.Request call the "complete", "success" and "failure" callbacks from within a separate method, this allows executing the callbacks from outside and at the time it lmakes the most sense to the application, p=fvanderbiest, r=me ( closes #2218 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9621 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-08-13 19:47:08 +00:00
Éric Lemoine
1faae2a2a2
allow proxy host function, r=tschaub ( closes #2128 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9586 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-07-24 12:44:33 +00:00
Frédéric Junod
3c863c8c2f
mergejs: Remove white space around filename. No functional change. ( closes #2026 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9170 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-04-02 10:35:21 +00:00
Tim Schaub
a6e84ae192
Adding an events instance to the OpenLayers.Request object. Register listeners for complete, success, or failure events. These events are triggered after every request is issued. Original patch from tcoulter. Changes from ahocevar, elemoine, and me. r=me ( closes #1933 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9151 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-03-31 21:41:16 +00:00
ahocevar
85a59b21ac
fixed a caching issue with asynchronous requests in IE. r=igrcic, tschaub ( closes #1896 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8816 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2009-02-03 23:09:39 +00:00
Tim Schaub
f4f5414800
Updated request docs.
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8254 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-11-04 01:10:17 +00:00
Éric Lemoine
4cf8b53027
Fix for "extra '?' is added to the URL by the LoadURL method", review and final patch from tschaub ( closes #1616 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7984 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-09 06:55:19 +00:00
Paul Spencer
8114c092b7
apply missing semicolons from r7975 (in 2.7 branch) to trunk
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7979 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-09-08 17:43:34 +00:00
Tim Schaub
36d5f49f0d
The Request functions now consider a request with null status as a sucessful request. This is relevant for the file 'protocol' where xhr status is never set. r=crschmidt ( closes #1638 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7609 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-07-30 16:33:03 +00:00
Tim Schaub
3c70e78e47
Adding cross-browser XMLHttpRequest functionality and convenience methods around it in the OpenLayers.Request namespace. Deprecating OpenLayers.Ajax.Request. Full support sync/async requests using all HTTP verbs now. r=elemoine ( closes #1565 )
...
git-svn-id: http://svn.openlayers.org/trunk/openlayers@7335 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2008-06-09 19:51:38 +00:00