Re: [Flashcoders] LOADVARS not working IE

2006-03-21 Thread Johnny Zen
capturephp = new LoadVars();



nr = nr + 0;
ticker = null;

setInterval (refresh_loadvars_timer,5000);

//rotate timer//
var crt_comp = 0;
function rotate_timer() {
i = current_comp;
comp_name = eval(comp_name+i);
comp_date = eval(date_from_php+i);
reg_players = eval(reg_players+i);
comp_status = eval(comp_status+i);
//rotate fields
current_comp = (current_comp + 1) % nr;
};


refresh loadvars
function refresh_loadvars_timer() {
rotate_timer();
capturephp.load(https://secure.*.co.uk/***/infoflash.php;);
test.text = (output + capturephp);
registered_comp.text = comp_name;
date_time_starting.text = comp_date;
players_registered.text = reg_players;
current_status.text = status;

};

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] LOADVARS not working IE

2006-03-21 Thread Adrian Lynch
Got any code to see?

Adrian

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Johnny
Zen
Sent: 21 March 2006 12:28
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] LOADVARS not working IE


HI all

My flash using Loadvars within a secure webpage works in FIREFOX but not in
IE.

I've tried to find the reasons why, and have got lost in headers, web
server configs, dummy variables and IE settings.

Can someone please explain, if possible, a simple answer (so I can
understand) the reason or reasons why there is a problem with flash
using Loadvars in IE on a secure webpage(if it makes a diference)


Many thanks



Johnny

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] LOADVARS not working IE

2006-03-21 Thread Robert Leisle
I had this same issue last month. Here's the advice I got (Thanks to 
Mark Llobrera) on this board. It was right on target for me. Hope it 
helps you too.


You may want to check this posting: http://www.blog.lessrain.com/?p=276. As I 
understand it, if the server is returning no-cache headers for the data you're 
trying to load it may fail in IE. I say may because I've only run into this 
problem when loading XML data over SSL in IE, not a plain .txt file. Something 
tells me your problem may be related, however.

Good luck


Johnny Zen wrote:


capturephp = new LoadVars();



nr = nr + 0;
ticker = null;

setInterval (refresh_loadvars_timer,5000);

//rotate timer//
var crt_comp = 0;
function rotate_timer() {
i = current_comp;
comp_name = eval(comp_name+i);
comp_date = eval(date_from_php+i);
reg_players = eval(reg_players+i);
comp_status = eval(comp_status+i);
//rotate fields
current_comp = (current_comp + 1) % nr;
};


refresh loadvars
function refresh_loadvars_timer() {
rotate_timer();
capturephp.load(https://secure.*.co.uk/***/infoflash.php;);
test.text = (output + capturephp);
registered_comp.text = comp_name;
date_time_starting.text = comp_date;
players_registered.text = reg_players;
current_status.text = status;

};

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

 



--
~
Bob Leisle 
Headsprout Software  Engineering

http://www.headsprout.com
Where kids learn to read!


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] LOADVARS not working IE

2006-03-21 Thread Johnny Zen
Success at last !!!

Thanks all for info. I came across cache issues, but was so confused
by it all, I lost the plot.

Robert, you reply made me look again at this cache issue, and after
reading a comment at the main php website, the answer was so simple...
just typical.

Again for info that might help someone: ( I hope it makes sense, as
still a novice)

I used charles - very usual (although seemed buggy to me) web
development tool that monitors http requests and such live in your
browser window (firefox extension available)
I noticed that the pragma: no cache header with other headers were
being sent from the phpfile to the flash. This caused internet
explorer to not get the data, although works fine in Firefox.

So, it seems that these headers (sent auto. from apache server) were
causing the problem.
(as roberts link he provided)

so, by adding this line at the start of the php file i'm calling from flash:

session_cache_limiter(must-revalidate);

immediately stopped the headers and solved the problem.

Here below is the headers sent before and after I added the line above:

/BEFORE//

HTTP/1.1 200 OK
Date: Wed, 22 Mar 2006 01:02:36 GMT
Server: Apache/2.0.49 (Fedora)
X-Powered-By: PHP/4.3.10
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Length: 124
Connection: close
Content-Type: text/html; charset=UTF-8

///AFTER

HTTP/1.1 200 OK
Date: Wed, 22 Mar 2006 01:03:56 GMT
Server: Apache/2.0.49 (Fedora)
X-Powered-By: PHP/4.3.10
Content-Length: 124
Connection: close
Content-Type: text/html; charset=UTF-8

//

As you can see, the Pragma: no-cache, Expires: Thu, 19 Nov 1981
08:52:00 GMT and
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0 are removed thus fixing the problem.


You can find the tool Charles the tool at http://www.xk72.com/charles/


Its been an emotional journey finding the answer, full of hopes and
failures. I dont really understand it, just hope this is the end of
the problem.

Also I hope this is handy info for someone in a similar situation.

Oh the credit goes to the person who added the first comment at :

http://de3.php.net/manual/en/function.session-cache-limiter.php



Thanks all for help :)


Regards


Johnny-needs-a-big-cup-of-tea-now
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com