Thanks for that.

 

Ok so it gets even more confusing.

 

When refreshing or making a request with IE, sometimes it’s sending 2 GET requests in the same header. EG:

 

GET /Symph/Symphony.mxml HTTP/1.1

Accept: */*

Accept-Language: en-gb

Accept-Encoding: gzip, deflate

If-Modified-Since: Tue, 15 Nov 2005 15:38:53 GMT

User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Host: dev

Connection: Keep-Alive

 

 

GET /Symph/flex-internal?action=history_js HTTP/1.1

Accept: */*

Referer: http://localhost:9000/Symph/Symphony.mxml

Accept-Language: en-gb

Accept-Encoding: gzip, deflate

User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.1; SV1; .NET CLR 1.1.4322)

Host: localhost:9000

Connection: Keep-Alive

IIS/ JRUN is then only sending back the result for the first request. There-on-in it does nothing else. Now at frist I suspected some dodgy IE bug, but connecting directly to Jrun’s app port it runs 100% every time.

 

Any ideas?

 

 

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Matt Horn
Sent:
15 November 2005 15:06
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex / Jrun Instability?

 

You can use the sniffer tool to find out if the history code is being returned properly. (It's in the bin directory.)

 

That request (/flex/flex-internal?action="" should return something that looks like this:

 

 

------begin--------

HTTP/1.0 200 OK

 

Date: Tue, 15 Nov 2005 15:03:36 GMT

 

Expires: Thu, 01 Jan 1970 00:00:01 GMT

 

Content-Type: application/x-_javascript_

 

Content-Length: 1244

 

Server: JRun Web Server

 

 

 

// $Revision: 1.49 $
// Vars
Vars = function(qStr) {
 this.numVars = 0;
 if(qStr != null) {
  var nameValue, name;
  var pairs = qStr.split('&');
  var pairLen = pairs.length;
  for(var i = 0; i < pairLen; i++) {
   var pair = pairs[i];
   if( (pair.indexOf('=')!= -1) && (pair.length > 3) ) {
    var nameValue = pair.split('=');
    var name = nameValue[0];
    var value = nameValue[1];
    if(this[name] == null && name.length > 0 && value.length > 0) {
     this[name] = value;
     this.numVars++;
    }
   }
  }
 }
}
Vars.prototype.toString = function(pre) {
 var result = '';
 if(pre == null) { pre = ''; }
 for(var i in this) {
  if(this[i] != null && typeof(this[i]) != 'object' && typeof(this[i]) != 'function' && i != 'numVars') {
   result += pre + i + '=' + this[i] + '&';
  }
 }
 if(result.length > 0) result = result.substr(0, result.length-1);
 return result;
}
function getSearch(wRef) {
 var searchStr = '';
 if(wRef.location.search.length > 1) {
  searchStr = new String(wRef.location.search);
  searchStr = searchStr.substring(1, searchStr.length);
 }
 return searchStr;
}
var lc_id = Math.floor(Math.random() * 100000).toString(16);
if (this != top)
{
 top.Vars = Vars;
 top.getSearch = getSearch;
 top.lc_id = lc_id;
}

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Steve Cox
Sent:
Tuesday, November 15, 2005 7:37 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex / Jrun Instability?

Guys & Girls,

Seem to be having an odd problem with getting and keeping a Jrun server stable.

The Jrun server is installed, flex installed on it and IIS is connected. Now this works fine (took a while to get it working, but it’s now working right). However when uploading changes to the app, sometimes the page will hang. What’s strange is we also get a _javascript_ error when this happens. The html source is published to the page but no swf is then viewable. The _javascript_ error says the following variable is underfined: lc_id .
 
Looking at the source code the following line is obviously pulling in some _javascript_:
<script language='_javascript_' charset='utf-8' src='/Symph/flex-internal?action="">></script>
 
Now the _javascript_ error I’m getting suggests this file is not loaded.
 
Has anyone come across the situation where jrun stops serving pages? Restarting it twice seems to wake it back up.
 
Ta
 
Steve

 

 



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to