Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 03-23-2008, 12:18 AM   PM User | #1
erikh06
New to the CF scene

 
Join Date: Mar 2008
Posts: 2
Thanks: 0
Thanked 1 Time in 1 Post
erikh06 is an unknown quantity at this point
A little java help

Hello,

I'm trying to get a scoreboard from my site setup so others can "embed" it on their page. I don't want an iframe because the scoreboard is transparent.

I have the .php file setup to get the information from the database and display the board. At the top of the .php file I have this:
Code:
<?php
header('Content-type: application/x-javascript');
^When I load the file in my browser, it displays the .html code. So I figure it's alright?

On another site I try to test out the code and it displays the script code in the source, but the board doesn't display?
Code:
<script type="text/javascript" src="http://www.mysite.com/scoreboard/boxscore.php"></script>
Have I missed something in the scoreboard code, script code or maybe my server permissions aren't letting the code run on another site?

Any help you be appreciated
erikh06 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 01:46 PM.


Advertisement
Log in to turn off these ads.