Click to See Complete Forum and Search --> : hitting the counter
ihajjahi
12-23-2003, 06:39 PM
hi,
I want to hit the counter, when someone clicks the hyperlikn to an audio file, ram file. Can someone please give me the code, within the html that calls the cgi program.
regards,
PeOfEo
12-23-2003, 06:40 PM
Make the link open a page with the counter code on it and the music in the background.
ihajjahi
12-23-2003, 06:56 PM
I was hoping for a code example, that was the only point of me putting the thread. Maybe someone out there has enough knowledge, of html, to be able to give me an example. thanks.
<a href="example.ram";src='http://example.com/counter.pl>PLAY
PeOfEo
12-23-2003, 09:11 PM
I have the knowledge but I will not post code because it is simple, and I am not going to write out 2 html files for you to look at. You take the code the counter place gave you and put it on another page and make the hyperlink open the other page and then have the mp3 set as background music. What is hard about that. If you want to make your own counter you can't even do it in html, you need a server side language and a data base...
ihajjahi
12-24-2003, 02:35 PM
can someone please give me a simple line, that calls both an audio ram file, as well as calling a counter, on the server.
Sorry, PeOfEo, you misunderstood, I didn't ask for 2 html files, neither do I want to play mp3 as background music. I really don't want to waste more time repeating myself. All I want, from this forum, is for someone to show me, in code, how to call both an audio ram file, as well as, call a cgi counter script.
Please if anyone knows, can they show me code.
ihajjahi
12-24-2003, 02:37 PM
Also, was my initial attempt incorrect?
<a href="example.ram";src='http://example.com/counter.pl>PLAY
Paul Jr
12-24-2003, 02:42 PM
I believe you would have to use the second window, as PeO suggested.
In the second window, you would have your audio file playing in the background, and you'd have your counter script, or link to the external file, placed in the second window as well, and I'm not really sure about the other thing ya wanted...
ihajjahi
12-24-2003, 06:36 PM
ok, but I don't want another window opening up.
The ram file opens the real audio player.
I was hoping that I could somehow hit the counter, without having to open another window with an audio file in the background.
Maybe its not possible, I don't know, neither have I investigated it.
PeOfEo
12-25-2003, 01:55 AM
make another html page and use the object tag or an embed to embed the ram. You are going to need another page unless you want to customise a hit counter, because if you want to run it all from one you are going to need to call up a script onclick of that link and log in the data base which song was clicked etc. It means you will need access to the server side scripts to run this thing onclick of the link, unless you make another page and embed it like I previously suggested.
ihajjahi
12-25-2003, 05:36 AM
i was hoping to have pass a parameter to the server side cgi script. Passing info of what is being clicked.
Yes, from the start I wanted to use the onclick event handler, but it seems, so far, that all the examples of onclick only have one src, I need to call both the counter,cgi as well as the example.ram file. maybe call a function on user click, which will then call both the counter cgi file, as well as the ram file.
again, really appreciate people's help.
if anyone could just give me that one line, onClick, and what it would look like, incorporating both the call to the cgi script as well as the ram file.
thanks
PeOfEo
12-25-2003, 01:42 PM
Do you have access to the cgi script? Because you are going to have to redo the first page if you want to do it onclick. What is wrong with just using separate html files like I suggested and embedding a ram?