Reply to Re: I give up!

Your name:

Reply:


Posted by Pascal Herczog on 10/28/55 11:31

"bernhard" <b.plugge@plugge-informatik.de> wrote in message
news:1131402127.086557.230320@g49g2000cwa.googlegroups.com...
>
> Pascal Herczog schrieb:
>
>> However, it seems to me that, given that it is possible to call this url
>> with some parameters attached, I must surely be able to create a generic
>> movieplayer.htm file that uses the ?name=Filename1.mpg parameter to
>> assign
>> it as the name of the file to be played.
>>
>> So, my table url would be <a
>> href="movieplayer.htm?name=Filename1.mpg">Filename1</a>
>
> This must be done using server side scripting. Check if you can use php
> on your server. it takes less than 10 lines of php code to solve your
> prob.
>

Unfortunately I've no idea whether my ISP, Plusnet, supports php. It might
well do, but I know even less than nothing about that! If you could post the
required code I'll have a go at it though...

I had found a javascript example for a querystring function, that looked
like it ought to do the job. It's code was:

<script type="text/javascript">
<!-- Begin

var qsParm = new Array();
function qs() {
var query = window.location.search.substring(1);
var parms = query.split('&');
for (var i=0; i<parms.length; i++) {
var pos = parms[i].indexOf('=');
if (pos > 0) {
var key = parms[i].substring(0,pos);
var val = parms[i].substring(pos+1);
qsParm[key] = val;
}
}
}
qsParm['name'] = null;
qs();
// End -->
</script>

But a) I don't know if this actually works, and b) I can only see how this
might get called from things like 'onclick' like actions, but not for
assigning in the

<param name='fileName' value="Filename1.mpg">

type of construct. Should that be possible?

Pascal.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация