Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old December 15th, 2003, 12:43 PM
flyingchair flyingchair is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Hong Kong
Posts: 108 flyingchair User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
providing javascript code to enable a PHP function in my domain output to another website

If there is an answer to this somewhere else on the forum I apologise, I could not find it.

I have a PHP page which outputs a little table with some info on it which is defined by some information.

www.mysite.com/file.php?info1=xxx&info2=yyy

When you run that file it echos some information.

I want to give someone a <script></script> tag which they put on their menu bars and my site does the work and spews out a little piece of information. I have looked at other sites and I duplicated what I saw but it does not work.

Can someone give me the formula to do this please?

Reply With Quote
  #2  
Old December 15th, 2003, 04:12 PM
zackcoburn zackcoburn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 184 zackcoburn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: providing javascript code to enable a PHP function in my domain output to another website

Make a PHP file that outputs javascript code. For example:
php Code:
Original - php Code
  1.  
  2. <?php
  3. //this file is called javascript.php
  4. $code="This is some text...";
  5. echo "document.write('".$code."');n";
  6. ?>


Then, you can tell people to use the following code:
Code:
<script src="http://www.mysite.com/javascript.php" type="text/javascript"></script>

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > providing javascript code to enable a PHP function in my domain output to another website


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT