Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Why this security warning?

Reply
Thread Tools

Why this security warning?

 
 
Sonnich
Guest
Posts: n/a
 
      07-18-2006
Hi all!

I have a PHP file, which creates an <iframe> for showing status. First
it created the Iframe, then it enters the loop and starts creating the
file file, which has a meta in order to reload every 2 seconds.

THE PROBLEM is that is pops up a window, whether I'd like to continue.
Why this?
It works, but I'd like to have it run smoothly.

I wonder whether the problem might be that the file for the iframe in
not ready at the moment the where the iframe is created, but it does
load (and go on reloading) as is should. The functionality is present.
Any ideas?

BR
Sonnich

The Iframe:

echo "<iframe name=\"status\" src=\"$scriptReport\" width=\"200\"
height=\"40\" scrolling=\"no\" frameborder=0></IFRAME><br>";

The scriptReport will reload using a Meta as this

$ff3=fopen($scriptReport, "w");
// 4 lines add for testing - they did not do the trick
fwrite($ff3, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01
Transitional//EN\"> ");
fwrite($ff3, "<META http-equiv=\"Content-Type\" content=\"text/html;
charset=windows-1251\"> ");
fwrite($ff3, "<META name=\"resource-type\" content=\"document\"> ");
fwrite($ff3, "<META content=\"text/html; charset=windows-1251\"
http-equiv=Content-Type> ");

// main and original part
// tal = current step, tot = total amount of steps

if(($tal/$tot) == 1.0)
fwrite($ff3, "<HTML>"); // when done then do not reload
else
fwrite($ff3, "<HTML><META HTTP-EQUIV=\"refresh\" CONTENT=\"2;
URL=$scriptReport\">");
fwrite($ff3, "<head><title>none</title></head><BODY>Status: ");
fwrite($ff3, $tal."/".$tot." (". intval($tal/$tot*100) ."%)");
fwrite($ff3, "</BODY></HTML>");
fclose($ff3);

 
Reply With Quote
 
 
 
 
Sonnich
Guest
Posts: n/a
 
      07-18-2006

Sonnich wrote:
> Hi all!
>
> I have a PHP file, which creates an <iframe> for showing status. First
> it created the Iframe, then it enters the loop and starts creating the
> file file, which has a meta in order to reload every 2 seconds.
>
> THE PROBLEM is that is pops up a window, whether I'd like to continue.
> Why this?
> It works, but I'd like to have it run smoothly.
>
> I wonder whether the problem might be that the file for the iframe in
> not ready at the moment the where the iframe is created, but it does
> load (and go on reloading) as is should. The functionality is present.
> Any ideas?


I found that the problem was, that the temporary files was on another
server. This caused the warning and that the file never opened in
Firefox.

Firefox will still not reload the file, but cannot find it (pops up and
tells that it cannot find the file)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why why why why why Mr. SweatyFinger ASP .Net 4 12-21-2006 01:15 PM
findcontrol("PlaceHolderPrice") why why why why why why why why why why why Mr. SweatyFinger ASP .Net 2 12-02-2006 03:46 PM
Cisco 2611 and Cisco 1721 : Why , why , why ????? sam@nospam.org Cisco 10 05-01-2005 08:49 AM
Why Why Why You HAVE NO IDEA MCSE 31 04-24-2004 06:40 PM
IT-Security, Security, e-security COMSOLIT Messmer Computer Support 0 09-05-2003 08:34 AM



Advertisments