POST
|
I had this problem for a very long time, but it looks that managed to find the solutions. It is only if you use proxy page. Just add response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); to your proxy.jsp and all the requests will not be cached. I am using JSAPI 2.8 and server 10.0 Hope this helps
... View more
04-03-2013
12:58 AM
|
0
|
0
|
2065
|
POST
|
I had this problem for a very long time, but it looks that managed to find the solutions. It is only if you use proxy page. Just add response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); to your proxy.jsp and all the requests will not be cached. I am using JSAPI 2.8 and server 10.0 Hope this helps
... View more
04-03-2013
12:57 AM
|
0
|
0
|
389
|
POST
|
I had this problem for a very long time, but it looks that managed to find the solutions. It is only if you use proxy page. Just add response.setHeader("Cache-Control","no-cache"); response.setHeader("Pragma","no-cache"); response.setDateHeader ("Expires", 0); to your proxy.jsp and all the requests will not be cached. I am using JSAPI 2.8 and server 10.0 Hope this helps
... View more
04-03-2013
12:56 AM
|
0
|
0
|
1361
|
POST
|
Yes, jus add somwhere in you text dojo.cldr.nls.gregorian.lt= {"dateFormatItem-yM":"M/y","field-dayperiod":"AM/PM","dateFormatItem-yQ":"Q y","dayPeriods-format-wide-pm":"PM","field-minute":"Minute","eraNames":["Before Christ","Anno Domini"],"dateFormatItem-MMMEd":"E, MMM d","dateTimeFormat-full":"{1} {0}","field-day-relative+-1":"Yesterday","field-weekday":"Day of the Week","dateFormatItem-hms":"h:mm:ss a","dateFormatItem-yQQQ":"QQQ y","days-standAlone-wide":["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"],"dateFormatItem-MMM":"LLL","months-standAlone-narrow":["S","V","K","B","G","B","L","R","R","S","L","G"],"dateTimeFormat-short":"{1} {0}","field-era":"Era","field-hour":"Hour","dayPeriods-format-wide-am":"AM","dateTimeFormat-medium":"{1} {0}","dateFormatItem-y":"y","timeFormat-full":"h:mm:ss a zzzz","months-standAlone-abbr":["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],"dateFormatItem-yMMM":"MMM y","field-day-relative+0":"Today","field-day-relative+1":"Tomorrow","days-standAlone-narrow":["Sk","Pr","A","T","K","P","Š"],"eraAbbr":["BC","AD"],"dateFormat-long":"MMMM d, y","timeFormat-medium":"h:mm:ss a","dateFormatItem-EEEd":"d EEE","field-zone":"Zone","dateFormatItem-Hm":"HH:mm","dateFormat-medium":"MMM d, y","dateFormatItem-Hms":"HH:mm:ss","quarters-standAlone-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"dateFormatItem-ms":"mm:ss","field-year":"Year","quarters-standAlone-narrow":["1","2","3","4"],"dateTimeFormat-long":"{1} {0}","field-week":"Week","months-standAlone-wide":["Sausis","Vasaris","Kovas","Balandis","Geguž�?","Birželis","Liepa","Rugpjūtis","Rugs�?jis","Spalis","Lapkritis","Gruodis"],"dateFormatItem-MMMd":"MMM d","timeFormat-long":"h:mm:ss a z","months-format-abbr":["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gru"],"dayPeriods-format-wide-noon":"noon","timeFormat-short":"h:mm a","field-month":"Month","quarters-format-abbr":["Q1","Q2","Q3","Q4"],"days-format-abbr":["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],"dateFormatItem-M":"L","days-format-narrow":["Sk","Pr","A","T","K","P","Š"],"field-second":"Second","field-day":"Day","dateFormatItem-MEd":"E, M/d","months-format-narrow":["J","F","M","A","M","J","J","A","S","O","N","D"],"dateFormatItem-hm":"h:mm a","days-standAlone-abbr":["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],"dateFormat-short":"yy-MM-dd","dateFormatItem-yMMMEd":"EEE, MMM d, y","dateFormat-full":"EEEE, MMMM d, y","dateFormatItem-Md":"M/d","dateFormatItem-yMEd":"EEE, M/d/y","months-format-wide":["Sausis","Vasaris","Kovas","Balandis","Geguž�?","Birželis","Liepa","Rugpjūtis","Rugs�?jis","Spalis","Lapkritis","Gruodis"],"dateFormatItem-d":"d","quarters-format-wide":["1st quarter","2nd quarter","3rd quarter","4th quarter"],"days-format-wide":["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"],"eraNarrow":["B","A"],"dateTimeFormats-appendItem-Day-Of-Week":"{0} {1}","dayPeriods-format-abbr-am":"AM","dateTimeFormats-appendItem-Second":"{0} ({2}: {1})","dateTimeFormats-appendItem-Era":"{0} {1}","dateTimeFormats-appendItem-Week":"{0} ({2}: {1})","dateFormatItem-H":"HH","quarters-standAlone-abbr":["Q1","Q2","Q3","Q4"],"quarters-format-narrow":["1","2","3","4"],"dateFormatItem-h":"h a","dayPeriods-format-narrow-am":"AM","dateTimeFormats-appendItem-Day":"{0} ({2}: {1})","dateTimeFormats-appendItem-Year":"{0} {1}","dateTimeFormats-appendItem-Hour":"{0} ({2}: {1})","dayPeriods-format-abbr-pm":"PM","dateTimeFormats-appendItem-Quarter":"{0} ({2}: {1})","dateTimeFormats-appendItem-Month":"{0} ({2}: {1})","dateTimeFormats-appendItem-Minute":"{0} ({2}: {1})","dateTimeFormats-appendItem-Timezone":"{0} {1}","dayPeriods-format-narrow-pm":"PM"} This bit dojo.cldr.nls.gregorian.lt change to your language symbol and set language for you project. In this place you can change date and months names and lots of other stuff. Worked on 2.8version with all browsers
... View more
11-15-2012
02:40 AM
|
0
|
0
|
148
|
POST
|
Not really The only work around is to create separate .jsp file for every layer (this solution was given to my by our local representitive) But because I have around 60 layers it is not good for me. Mindaugas
... View more
10-29-2012
06:33 AM
|
0
|
0
|
154
|
POST
|
I would not suggest to use localization bundle as I had some with measurement widget. the only way out was just set string values in javascript (Lithuanian): esri.bundle.widgets.measurement.NLS_area = "Plotas"; esri.bundle.widgets.measurement.NLS_area_acres = "Akrai"; esri.bundle.widgets.measurement.NLS_area_sq_feet = "Kv. p�?da"; esri.bundle.widgets.measurement.NLS_area_sq_kilometers = "Kv. kilometrų"; esri.bundle.widgets.measurement.NLS_area_hectares = "Hektarai"; esri.bundle.widgets.measurement.NLS_area_sq_meters = "m²"; esri.bundle.widgets.measurement.NLS_area_sq_miles = "Kv. mylių"; esri.bundle.widgets.measurement.NLS_area_sq_yards = "Kv. Jardai"; esri.bundle.widgets.measurement.NLS_decimal_degrees = "laipsniai"; esri.bundle.widgets.measurement.NLS_length_kilometers = "kilometrai"; esri.bundle.widgets.measurement.NLS_distance = "Atstumas"; esri.bundle.widgets.measurement.NLS_latitude = "Platuma"; esri.bundle.widgets.measurement.NLS_length_feet = "p�?dos"; esri.bundle.widgets.measurement.NLS_length_meters = "m."; esri.bundle.widgets.measurement.NLS_length_miles = "mylios"; esri.bundle.widgets.measurement.NLS_length_yards = "jardai"; esri.bundle.widgets.measurement.NLS_location = "Pad�?tis"; esri.bundle.widgets.measurement.NLS_longitude = "Ilguma"; esri.bundle.widgets.measurement.NLS_resultLabel = "Rezultatas:";
... View more
10-24-2012
06:07 AM
|
0
|
0
|
451
|
POST
|
What I did when I needed resize was this: Put the content in the DIv and then check its height and width. and then apply it to infowindow (adding some extra pixels for title and so on) This way you get exact size for example if one line is very long and goes for two lines. I also would suggest to set maximum height and width so it would not go on all screen 🙂 Hope that helps
... View more
06-19-2012
11:22 PM
|
0
|
0
|
443
|
POST
|
It has something to do with .refresh() function I had same errors when i added new element to the Layer and then refreshed it. I solved it by adding timeout of at least 10ms before refreshing the Layer. Not sure if it helps to you. I also had this function on each layer: dojo.connect(municipalityApp[name], "onEditsComplete", function() { municipalityApp[name].refresh(); } which coused me a lot of errors with new js API version (2,8)
... View more
06-13-2012
01:37 AM
|
0
|
0
|
804
|
POST
|
I have a problem when Attribute inspector loads table of previously viewed object. I am passing two feature layers with same number at the end: xxx/FeatureLayer/0 yyy/FeatureLayer/0 When I first click on Element from xxx layer it loads its attributes OK. But if I choose element from yyy layer field names and name of table in attInspector are wrong. Did anyone have same problem and maby know how to solve this problem?
... View more
01-12-2012
04:36 AM
|
0
|
0
|
525
|
POST
|
try xMin = addressPoint.x - 1000; yMin = addressPoint.y - 1000; xMax = addressPoint.x -- 1000; yMax = addressPoint.y -- 1000; I found this solution somwhere in forums and it looks that it works
... View more
05-25-2011
10:30 PM
|
0
|
0
|
483
|
POST
|
Hello Is it possible to use proxy only on some layers, not on all? Thank you
... View more
04-06-2011
05:33 AM
|
0
|
2
|
502
|
POST
|
I had same problem, this is what I have made: Basicaly the IE gets wrong url without proxy, you have to add it manually. dojo.forEach(layers, function(layer) { if (dojo.isIE) { if(layer.renderer.infos){ for (var i=0; i<layer.renderer.infos.length; i++){ var url1=layer.renderer.infos.symbol.url; // alert(url1); var url2="http://"+server+"/proxy.jsp?"; // alert(url2); var url3=url2+url1; layer.renderer.infos.symbol.url=url3; } } } worked for me
... View more
04-06-2011
05:27 AM
|
0
|
0
|
610
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|