FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » passing values into javascript
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
passing values into javascript [message #179870] Sat, 15 December 2012 01:03 Go to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
<script type="text/javascript">AudioPlayer.embed("audioplayer_1",
{soundFile: "http://mroldies.net/mp3/[value1]-[value2].mp3"})</script>

Given this line of script which is from the wordpress standalone
audioplayer, how could I pass a value from page one to page two so that the
two values in brackets are replaced with the proper information?


http://mroldies.net/1960/all60.html

What I am looking at doing is, linking each song name to one php page.

So that I only have to have one line of code per artist.
Rather than having a single script per song.

I don't care to read your flames on the page showing an under construction
page for most of the links. I have it that way for a reason. Or any of your
other trite little flames that you do just to harass me with.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: HP syntax error, unexpected T_variable
Next Topic: Using echo to run separate PHP script from HTML
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 10:32:57 GMT 2024

Total time taken to generate the page: 0.03948 seconds