|
The backbutton check is one of the most infamous problems faced by developers worldwide.
Perhaps you can workaround this problem with PageExpiry etc or having a history.forward() as the first line of the pages to push the page always to the forwward.
Deepak Kumar Vasudevan
Personal Web: http://vdeepakkumar.netfirms.com/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
|
hello , i wana play film and sound in vbscript and i dont know how , help with a little sample , thanks!
Have good day and time
|
|
|
|
|
Hi there,
Can you be more specific about what you want to do? You want to host a player in the web page to play the media file and use vbscript to control it? Where do you place the media files (server or client machine) ?
|
|
|
|
|
thank you for reply me , i used them on SERVER , and its no difference to do this with vbscript or javascript , i found some sample here on web , but they dont work !!!
Have good day and time
|
|
|
|
|
You need to host a player such as windows media player on the web page with the object tag, then specify the url of the media file in the filename (or URL depending on the version of the player) property of the player. You can use the client side script (either javascript or vbscript) to control the player.
|
|
|
|
|
Hi,
We have developed a windows application.
I want to run the windows application in web not by using href or shell command. ie i don’t want to run as separate window i want to embedded the EXE(windows application ) in web page Is it possible ,please give me some suggestion.
My email id asprabahar@gmail.com
Regards
Prabakar
|
|
|
|
|
Hi there,
AFAIK, you cannot embed a windows-based application in a web page. Instead, you can host a window form control with the object tag. So you need to port your code into a window control.
|
|
|
|
|
Hi,
Ya i had hosted the windows control in web by using <object tag="">.Actualy i am using EXE2HTML.EXE tool that will convert the exe to binary code and we can embedded it in Html or that tool itself create a HTA page.
But when i use this tool it is not working fine.
Samiyappan prabakar
|
|
|
|
|
this is my current Site.
http://www.ntcofbvi.org/faith_truth.html
I created this dropdown list box where users can select which Video file to play
Select a message
Dedication Service
Video 2
Video 3
I have the Windows media Play plugin embedded in the HTML Page but I what the player to play only the video that the viewer selected.
this is a sample script that I found online that I tried but it is not working can you please help me.
|
|
|
|
|
Hi there,
In the event handler PlayVideo of the onchange event, you basically need to do two things:
+ Get the url of the media file.
+ Assign the media file to the filename property or URL depending on the version you are using:
function PlayVideo () {
'Get the url of the media file.
var choose =eval(document.movielist.movie_selection.selectedIndex);
if( (choose > 0) && (choose < 7) ) {
var section=new doArray( '', 'video/dedi_highlights.wmv',
'The_Word_of_God.wmv',
'Thank_God.wmv');
location=section[document.movielist.movie_selection.selectedIndex];
'Set the filename property.
'objWMP' is the id of the media player.
var player = window.document.getElementById("objWMP");
player.FileName = filename;
}
|
|
|
|
|
Hi,
Thanks I will try this and let you know the result.
Do you know where I can see similar script like this one so I can better understand this code.
Thanks
|
|
|
|
|
|
This is my complete script.
I want to select which video to play using the dropdownlist.
at the moment I can only play one video which I have to add to the script. but I want the views to select which video they want to watch.
Please HELP!!!!!!!!!!!!!!!!
Player.uiMode = "none";
//btnPause.enable = true;
//btnStop.disabled = true;
Player.URL = "video/jul162005.wmv";
var g_bPaused = false; // To track pause button state;
// Check for JScript errors.
onerror = ShowError;
// Display JScript errors.
function ShowError (msg,url,linenumber)
{
alert(msg + " at line " + linenumber);
}
// Initialized states.
function Init()
{
Player.uiMode = "none";
//btnPause.enable = true;
//btnStop.disabled = true;
}
// Play a known video file from Media Library.
function PlayVideo ()
{
Player.URL = "video/jul162005.wmv";
}
// Pause the Player.
function PauseMe ()
{
if( g_bPaused == true )
{
Player.controls.play();
g_bPaused = false;
//btnPause.value = " Pause ";
}
else
{
Player.controls.pause();
g_bPaused = true;
//btnPause.value = "Resume";
}
}
// Stop the Player.
function StopMe ()
{
Player.controls.stop();
}
|
|
|
|
|
You basically need a dropdownlist to store the list of the video files:
<select name="movie_selection" id="select1" onchange="PlayVideo();">
<option value="video/1.wmv" selected>Video 1</option>
<option value="video/2.wmv">Video 2</option>
<option value="video/3.wmv">Video 3</option>
</select> In the event handler of the onchange event, you code looks something like:
function PlayVideo()
{
var selectedIndex = document.Form1.movie_selection.selectedIndex;
var filename = document.Form1.movie_selection.options[selectedIndex].value;
var player = window.document.getElementById("objWMP");
player.FileName = filename;
}
|
|
|
|
|
Hi,
I have a asp:checkbox in DataGrid. I attached an event OnCheckedChanged on the checkbox say..
<asp:CheckBox ID="chkSelect" OnCheckedChanged="dgProjects_CheckedChanged" Runat=server></asp:CheckBox>
And the event is scripted as :
<script language=C# runat=server>
public void dgProjects_CheckedChanged(Object sender ,System.EventArgs e)
{
CheckBox chkTemp = (CheckBox)sender;
DataGridItem dgi;
dgi = (DataGridItem)chkTemp.Parent.Parent;
if (chkTemp.Checked==true)
{
dgi.BackColor = dgProjects.SelectedItemStyle.BackColor;
dgi.ForeColor = dgProjects.SelectedItemStyle.ForeColor;
}
else
{
dgi.BackColor = dgProjects.ItemStyle.BackColor;
dgi.ForeColor = dgProjects.ItemStyle.ForeColor ;
}
}
But the event doesnt fire...
what do I need to do? Is there anything to add up???
Thanks
|
|
|
|
|
|
HI,
can anybody tell how to encrypt asp file or asp code,
I dont want to give all the application logic & codeing to my client, I just want to deliver him a functional project.
Regards
|
|
|
|
|
Can't be done. The best you can do is hide as much of it in a COM object as possible ( your app surely is not ALL vbscript ? )
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
|
Is there a web service where I could get current mortgage rate information. The numbers are what I'm after, not the links or scripts.
|
|
|
|
|
|
|
Hi,
I've an ActiveX control (.OCX) written in VC++ 6.0.
I am trying to use this control in C# Web Service - but everytime I invoke any of ActiveX method the service fails.
I wrote another small Windows-Application in C# to test if I can access ActiveX in C#...
Now the only problem is when I try to access ActiveX from C# Web Service.
Any help?
Thanks!
|
|
|
|
|
Hi
Try to create Introp for the OCx by using the C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Bin\Aximp.exe.Then try with the new dll created by this tool.
|
|
|
|