|
I dont think that you can do such thing without writting some kind of ActiveX control.
HTML, ASP and JavaScript will not allow you to do anything like that.
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
guys
i have a web page that has the mediaplayer embedded into it ... all is fine and it works great if u pass the movie url as a PARAM tag in the code of the page
what im trying to do is to set the url and start the movie playing when someone clicks a button (high | med | low for example) but it isnt working
does anybody have any clues?
"there is no spoon" biz stuff about me
|
|
|
|
|
>> but it isnt working
could you post some of the relevant code that isn't working?
|
|
|
|
|
<script language='javascript'>
function wmp_play(url)
{
wmp.URL=url;
wmp.controls.play();
}
</script>
<a class='vid' title='play high bandwidth video (200k/s)' href='javascript:wmp_play($highurl)'> HIGH </a>
<a class='vid' title='play medium bandwidth video (100k/s)' href='javascript:wmp_play($medurl)'> MED </a>
<a class='vid' title='play low bandwidth video (56k/s)' href='javascript:wmp_play($lowurl)'> LOW </a>
for some reason the colon between javascript and wmp_play isnt showing up but it is there
|
|
|
|
|
When i set the URL or FileName property from javascript I don't need to issue any command to start playing it just starts playing. Now that might be because of some of the other settings. But anyway that works for me. What version of WMP are you using? I am using 9
|
|
|
|
|
im using wmp9 too
when i set the url nada happens
its very irritating
:/
"there is no spoon" biz stuff about me
|
|
|
|
|
Since you are having so much trouble i thought i would post this just in case it helps
<SCRIPT LANGUAGE=javascript>
<!--
function changeit(){
document.all("MediaPlayer").FileName = "http://rnv-palbano/research/work/Ice_Man[1].wmv";
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<OBJECT ID="MediaPlayer" WIDTH=132 HEIGHT=99 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
standby="Loading Microsoft Windows Media Player components..."
type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="http://rnv-palbano/research/work/funnyrunner.wmv">
<PARAM NAME="AutoStart" VALUE="true">
<param name="ShowControls" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowStatusBar" value="0">
<PARAM NAME="AutoSize" VALUE="1">
<EMBED type="application/x-mplayer2"
</EMBED> </OBJECT>
<INPUT type="button" value="Button" id=button1 name=button1 onclick="changeit()">
|
|
|
|
|
thats great
thnx a lot i really appreciate ur help
but it doesnt work
:/
"there is no spoon" biz stuff about me
|
|
|
|
|
|
i see that u are setting a default movie address in the param tag
im not doing that
i have a blank param tag and 3 buttons for high, medium and low url's
i wonder if that is the problem?
"there is no spoon" biz stuff about me
|
|
|
|
|
I changed my param tag to
<PARAM NAME="FileName" VALUE="">
and added another button... everything still working here at my place!
-pete
|
|
|
|
|
this is driving me slightly round the bend here
i know it should be a no-brainer but it isnt working
no matter what variation i try
"there is no spoon" biz stuff about me
|
|
|
|
|
Decided to back up a bit and was just wondering... have you tried this?
document.all("MediaPlayer").FileName = ...
and
< PARAM NAME="FileName" VALUE="">
"No matter where you go, there your are." - Buckaroo Banzai
-pete
|
|
|
|
|
I've put together some HTCs using FrontPage (only for the site nav - which is actually a local directory - since I hate WYSIWYG) and thought I'd just hit the Browser Compatibility tool for the hell of it. It said that the <public:component> root element is not supported in Internet Explorer 5.0. The HTC reference docs say otherwise (just saying that minimum availability is "Internet Explorer 5".
Unfortunately, all our machines in this building - including the OS images we use for testing - all have IE 6 (I know, not a very good myriad of test images). I tried using FireFox with the user agent switcher and went to the MSDN Library (that uses HTCs for IE) but it delivers the same hard-to-navigate tree for IE 5.0 (using that user agent string) as FireFox / Netscape / etc. HTCs I know are supported by IE 5.0, but I just can't determine if the root <public:component> is (since I want to avoid conflicts by using the behavior name to distinguish exposed HTC members). Can anyone tell me for sure? TIA
Microsoft MVP, Visual C#
My Articles
|
|
|
|
|
Hi,
the development team i work in consists of myself and a designer (massive work force i know). anyway, we have come to the conclussion that we need some versioning/source control measures to prevent overwritting each others work which happens often as one or the other may need to make changes while the other is out or whatever. We are trialing Visual SourceSafe. the designer is a hardliner and insists that there 'can be only one' copy of the project and we develop on that one copy (friggin nightmare). i am twisting his arm and he is fighting me but now has agreed that yes, we need to prevent some catastrophy where we loose that one copy or cannot roll it back to a previous version etc etc. We both use Dreamweaver for general web development however i use vs.net for the programming side (and any wysiwyg matters on pages as dreamweaver kicks vs.net's back-side in that area) and dreamweaver (sometimes concurrently). is there any one else out there that follows this same development plan, what are the problems they have may encountered. considering we're not experts with sourcesafe and some initial problems we're having is that dreamweaver ends up with duplicate copies of folders. if this is down to the way the vss database is setup with each website as a project we don't know yet.
|
|
|
|
|
I've ran a few test cases with Microsoft Application Center Test, but someone told me that requests are issued "Synchronously" (single thread) -- Is this true?
|
|
|
|
|
Forgot to login before I posted the message
Norman Fung
|
|
|
|
|
I want to dynamicaly update the details from admin, so that i can data from database into javascript code to display.
K.Surendranath,
919885058998,
India
|
|
|
|
|
hmmmmm
to get database data into javascript (without exposing usernames / passwords on the client) requires u corss the server - client barrier ... get the data server side and render the pages with it in javascript arrays on the client side
this of course is a static snapshot of the data as of when the page was rendered and not true dynamic data
hth
"there is no spoon" biz stuff about me
|
|
|
|
|
Is there a way to redirect the top frame from within an iFrame on the Server side code?
I know that I can Response.Write some javascript that sets the top.document.location.href property but I would be more than happy to do it on the server.
Any tricks?
Any ideas?
Any tips?
Thanking you in advance!
theJazzyBrain
Excellence is not an act, but a habit Aristotle
|
|
|
|
|
Hi there,
I'm afraid not, your server-side code is in response to a request from the IFrame, thus the server has no knowledge of the outer frame - only the client does.
The only way you can do this is whatever action in the iframe HTML document that caused the request (e.g. form submission) was done via the outer frame. That is, the iframe document uses javascript to call the outer frame to initiate the request.
But in reality we are just moving the goal posts - bottom line is, to achieve what you want will require client-side scripting.
Perhaps what I should ask is why use an iframe? can you not achieve what you want to do with nested tables ??
Hope this helps,
Andy
|
|
|
|
|
Thank you for your reply,
Yes, I could use nested tables.
The reason I am using IFrame is to avoid sending same HTML code to the client multiple times as this tool will be used alot.
I need to check if the user is logged and if the user has permission to view each page. So I guess that I will have to use client-side script to redirect to the SignIn Page if the user isn't logged.
I have been writting ASP for 5 years and this is my first project on ASP.NET.
I am impressed by the ASP.NET architecture as it makes it so easy to build proper 3-Tier architecture applications.
So far all Administration pages I have done in Classic ASP, I have used the IFrame.
ASP.NET differs so much from classic ASP that I even thought that Microsoft might have provided some way to tackle such problems.
Thank you for your reply though.;P
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Hiya,
Yeah I've done a couple of ASP.NET projects now and totally love it compared to the ASP projects I've done in the past.
The only issue I have with it is the event modelling creates far too much client-server traffic for my liking. In ASP I used to create an XMLHTTP component at the client-side and refresh parts of the screen using XML data and a server command page that accepted events (XML) and returned the results. It made for a nice, clean updating architecture.
Have you got round to reading the overview of ASP.NET 2.0 yet? At last, proper page templating + skinning , Client Callback Manager which reduces post-backs and Membership Service which maybe something of interest for you. All in all I can't wait for 2.0 - at last ASP will be the definitive development platform
Andy
|
|
|
|
|
Well, at work we installed the VS.NET Widbey beta on an old PC.
I saw that there are a lot of changes. The Master pages with placeholders etc...
Seems exciting. We shall see, in 2005 it will be released. Until then, happy programming with .NET 1.1 ;P
theJazzyBrain
Excellence is not an act, but a habit! Aristotle
|
|
|
|
|
Just 2 questions which I need to have answered plase.
1. Did you have a chance to think about my question of yesterday? Basically, there is an agency and agent table. There is a 1-to-many relationship between the agency and agent tables. One agency can have many agents, and each agent can belong to only one agency. Now, a principal (owner of the agency) can also be regarded as an agent, but can also have admin properties. The GUI for the normal agent and the principal will be different, because the principal can also add, delete, and modify properties, and can also have additional properties like add, delete or modify agent info. How do I specify permissions? I want use one login in screen, and from there it should be determined if it is a normal agent, or the principal that is logging in.
2. I came to you with this problem a while ago, and I don’t think you could help me back then. Maybe you know the answer now. How do you store login details in your db? I have a user table that contains a username and password. Only the password should be case-sensitive. For example, if the password is stored as myPassword in the db, then if the user types in MyPassword it should bring back no result. I can’t seem to figure out this case-sensitive issue with SQL server and Access. Both bring back a positive result and it doesn’t matter what case was used. I only want it to bring back a positive result if myPassword was entered.
Thanks guys!!!
|
|
|
|