Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,
I have used dew player in my application. I inserted that object in my master page. In child form while loading the page the player is not detected and saying dewplay() is not a function.

Here is my code

JavaScript
<script type="text/javascript" >




        var dewp = document.getElementById("dejs");


        dewp.dewplay();

        v = document.getElementById("<%=txthpos.ClientID%>").value;// to play from current position when page is refreshed

        dewp.dewsetpos(v);


but if alert is given its working fine
Posted
Updated 1-Aug-13 21:28pm
v2
Comments
Vyacheslav Voronenko 2-Aug-13 3:25am    
From your code is not clear what is dewp. How variable de is used? Have you waited for player javascript initialization/loading prior to calling dewplay?
Member 9762654 2-Aug-13 3:28am    
i have updated my question pls check with that
Vyacheslav Voronenko 2-Aug-13 4:39am    
> Have you waited for player javascript initialization/loading prior to calling dewplay? If it works with alert - this exactly means that you haven't waited.
Member 9762654 2-Aug-13 6:39am    
yes you are correct i made it working thank you

1 solution

Tools->Options->Content->Enable JavaScript
 
Share this answer
 
Comments
Member 9762654 2-Aug-13 3:36am    
if my javascript is disabled then after alert also the code should not work know? If i give alert in first line of my code or before dewp.dewplay() its working fine

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900