Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
Ewout
New Member
New Member



Joined: Apr 24, 2004
Posts: 15

PostPosted: Mon Jan 03, 2005 11:38 am Reply with quote

Hi,

I have tried many things but I can't get it to work....
Just a simple line of javascript but it's loaded from a ASP page....
That could be the problem.


Code:
<sc ript language="JavaScript1.1" SRC="http://www.trendmicro.com/syndication/wtc/wtc_applet_js.asp"></s cript>


Thanks,

Ewout
 
View user's profile Send private message
Ewout







PostPosted: Mon Jan 03, 2005 12:28 pm Reply with quote

It's an ASP page......

Is it possible to load this in a php module ?

Thanks,
Ewout
 
Ewout







PostPosted: Mon Jan 03, 2005 3:08 pm Reply with quote

ok I got it working but it's appearing in the right blocks area.......??

Code:
$content .= "</s cript>\n";

$content .= "<s cript language=\"JavaScript1.1\"\n";
$content .= "SRC=\"http://www.trendmicro.com/syndication/wtc/wtc_applet_js.asp\"></S CRIPT>\n";


Anything I have to change to get it centered ?

Thanks<
Ewout
 
Ewout







PostPosted: Mon Jan 03, 2005 3:09 pm Reply with quote

Why can't I use the Word "S cript" ??
 
xfsunolesphp
Regular
Regular



Joined: Aug 23, 2003
Posts: 77

PostPosted: Mon Jan 03, 2005 4:20 pm Reply with quote

$content .= '<center><s cript language="JavaScript1.1" SRC ="http://www.trendmicro.com/syndication/wtc/wtc_applet_js.asp" type="tect/javascript"></s cript></center>';
 
View user's profile Send private message
Ewout







PostPosted: Tue Jan 04, 2005 12:56 pm Reply with quote

xfsunolesphp wrote:
$content .= '<center><s cript language="JavaScript1.1" SRC ="http://www.trendmicro.com/syndication/wtc/wtc_applet_js.asp" type="tect/javascript"></s cript></center>';


<center> will not help.........

this is the complete Module?

Code:
<?php

if (!eregi("modules.php", $PHP_SELF)) {
die ("You can't access this file directly...");
}
require_once("mainfile.php");
$index = 1;
$module_name = basename(dirname(__FILE__));
$pagetitle = " - Trend Antivirus Map";
include("header.php");
OpenTable();

$content .= "</s cript>\n";
$content .= "<s cript language=\"JavaScript1.1\"\n";
$content .= "SRC=\"http://www.trendmicro.com/syndication/wtc/wtc_applet_js.asp\"></S CRIPT>\n";

CloseTable();
include("footer.php");
?>
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Tue Jan 04, 2005 2:42 pm Reply with quote

Ewout wrote:
Why can't I use the Word "S cript" ??
phpNuke doesn't allow it and neither does NukeSentinel. You could inject javascript into your posts too easily.
 
View user's profile Send private message
Raven







PostPosted: Tue Jan 04, 2005 2:45 pm Reply with quote

If the center tags are not working then it's probably because the javascript you're trying to include is overriding it. Why don't you just save the javascript to a .js file? Or is this more than that - is it a real applet?
 
Ewout







PostPosted: Tue Jan 04, 2005 2:51 pm Reply with quote

It's an applet, and it's working but it looks like a block on the right side....
 
Raven







PostPosted: Tue Jan 04, 2005 3:23 pm Reply with quote

Add the <center> and </center> directly to the ASP code - before and after the <table> and </table> tags.
 
Ewout







PostPosted: Tue Jan 04, 2005 4:04 pm Reply with quote

I don't have any <table> tags ....?
 
Raven







PostPosted: Tue Jan 04, 2005 5:44 pm Reply with quote

Open up the ASP code.
 
Ewout







PostPosted: Wed Jan 05, 2005 2:05 pm Reply with quote

I don't have the ASP code....
It's loaded from this page: [ Only registered users can see links on this board! Get registered or login! ]

I can load it a HTML page if I put it in the <head> section.
 
Raven







PostPosted: Wed Jan 05, 2005 2:08 pm Reply with quote

I downloaded it, so can you. Then modify it.
 
Ewout







PostPosted: Wed Jan 05, 2005 2:44 pm Reply with quote

and then upload it again to the Trend site ?
 
Raven







PostPosted: Wed Jan 05, 2005 2:47 pm Reply with quote

Just put it on your box and point src to it.
 
Ewout







PostPosted: Thu Jan 06, 2005 12:46 pm Reply with quote

But then it's not updated automatically.....
Have you seen what it is ?
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©