View Full Version : [CLOSED] [1.1.0] ScriptTagProxy adds <script> two times to head on some android devices.

15 Feb 2012, 3:35 AM
I have got a scripttag proxy that reads json data from a remote https url.

Tested on

Emulator Android 2.2 [OK]
Emulator Android 2.3.3 [OK]
iOS 5 [OK]
Samsung Galaxy S Android 4 [OK]
HTC Desire Android 2.2.2 [FAILS]
Motorola Milestime Android 2.2.? [FAILS]
In the emulator, on iPhones and on some android devices it works. But there are some Androids (HTC Desire and a Motrola Milestone I don't know) that doesn't work.

Problem that occours

App.stores.kunden = new Ext.data.Store({

model: 'Kunde',
autoLoad: false,

proxy: {
type: 'scripttag',
url: API_URL + 'getKundenListe',
reader: {
type: 'json',
root: 'kunden'
timeout: 10000,
listeners: {
exception: function(proxy, request, operation) {
alert('exception during scripttag proxy operation');

The exception displays all the time on that android devices.Via debug.phonegap.com I figured out that the remote device added this script tag two times to the head section (with the same Id and Callback values):

<script src="https://apps.kdo.de/wuakz/json/getKundenListe?_dc=1329298561166&limit=25&callback=stcCallback1001" async="true" type="text/javascript" id="stcScript1001"></script>

This is how I run the load method:

onrender: function(el) {
scope: this,

callback: function(records, operation, success) {

if(success) {
var options = [{
value: 'null',
text: 'Bitte auswählen'

for(var i=0, len=records.length; i<len; i++) {

if(records[i].data.kdnr != 8002) {
this.kuerzelList[records[i].data.kdnr] = records[i].data.kuerzel;

value: records[i].data.kdnr,
text: records[i].data.bezeichnung


if(typeof KDNR != 'undefined') {
Ext.get('kuerzel').dom.innerText = this.kuerzelList[KDNR];
} else {

I have to note that this only happens when this app is shipped-out with phonegap. It works as a standalone webapp.

Any ideas on how to figure out the problem?

15 Feb 2012, 6:25 AM
We will have to take a look at this. I don't see any reason why it would at all.