|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#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:
Then, you can tell people to use the following code: Code:
<script src="http://www.mysite.com/javascript.php" type="text/javascript"></script> |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > providing javascript code to enable a PHP function in my domain output to another website |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|