|
Hi,
I have a problem in running .mpg file
When I want to play a video file, it is interrupted by Download Accelator. I want to avoid download accelator by some code in asp, javascript or vbscript.
How can i do? write plz.
anoop k goyal
|
|
|
|
|
try this :
string playerString="<object classid=\"clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" width=\"300\" height=\"320\" codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\" id=\"movie\">";
playerString+=String.Format("<param name=\"SRC\" value=\"{0}\">",movieUrl);
playerString+="<param name=\"AUTOPLAY\" value=\"true\">";
playerString+="<param name=\"CONTROLLER\" value=\"true\">";
playerString+="<param name=\"SCALE\" value=\"aspect\">";
playerString+="<param NAME=\"type\" VALUE=\"video/quicktime\">";
playerString+=String.Format("<embed src=\"{0}\" type=\"video/quicktime\" width=\"300\" height=\"320\" scale=\"aspect\" autoplay=\"true\" controller=\"true\" pluginspage=\"http://www.apple.com/quicktime/download/\"></embed>",mediaUrl);
playerString+="</object>";
|
|
|
|
|
I am using Session Object to track the user visit. After the Logout of user the asp pages he had visitied remains in the browser history. So how can I remove those pages from browser, so that the user to again login to view the pages again. Can anyone help me in this regard.
Raghu
|
|
|
|
|
Hi,
Use history.forward(1) in the script tag.
I think this will solve ur problem.
Thank u...
|
|
|
|
|
i've a little problem....
when i open a page on a popup window using hayberlink, it's working fine...
but the problem when i use the button....
when i click on submit the window wouldn't be a popup... it's appears as a _blank target...
????????
Militiaware
Faris Madi
|
|
|
|
|
You can't post a form to a popup window unless it is already open.
Here is an example on how to open a popup when the form is being posted:
Javascript : Post a form to a popup window[^]
---
b { font-weight: normal; }
|
|
|
|
|
Thanx for your help Guffa...
but there's still one problem... and it is the submiting.
you see i need to send some values with posting the form???
Militiaware
Faris Madi
|
|
|
|
|
If you want to send them as form data, add hidden fields to the form. If you want to send them in the querystring, add them to the url in the action property of the form.
---
b { font-weight: normal; }
|
|
|
|
|
Dear Friends,
I have an .asp page in which I would like to give a download option for the client to download some documets. Please can some one help me to write a simple code behind the button or behind the link to get dialog box to allow the client to download the file and save it where ever he need to save..
Your quick response will be highly appreciated.
Thanks
Murtuza Patel.
|
|
|
|
|
if u have file to be downloaded on your server just give hyperlink to that file and automatically a winodw will appear when user click on that link....
am i not right????
Sushant Mathur
Bangalore,
INDIA.
http://n.domaindlx.com/fun2ssh/HOME.htm
|
|
|
|
|
Dear Sushant Mathur
Thanks a lot for your quick response. The problem is that it is working fine for word power point or zip files. But it can not open the dialog box for .pdf or .swf files. it is trying to open these type of files directly in the browser itself.
Please help me out in this way. I need that regardless of type of file it is it must be downloaded by opening the dialog box.
Thanks
Murtuza Patel
|
|
|
|
|
|
IN HTML When we type lets say "a" in textbox of form then a list open under textbox which shows all entries which previously enterd in this field with start of a .How can we stop this so that it doesnot show previously entered entries
|
|
|
|
|
This is a browser setting and not something you can control from your webpage; individual users can control whether this happens or not via their browser's options/preferences.
cheers
P
|
|
|
|
|
Hi,
For Internet Explorer u can do following...
Open ie...Click on Tools->Internet Options ->Content -> AutoComplete->
Here, Click on "Clear Forms" and "Clear Passwords"
The next time u will not get the list of previously entered stuff..
I think this will solve ur problem...
Thank you..
|
|
|
|
|
Hi All,...
I am very new in javascript.
Can anyone tell me how to compare dates in javascript?
I have two textboxes and input date is of format DD-MMM-YYYY
i.e. like 14-APR-2006
I need to show alerts that which date is bigger???
If anyone provide me some tips it would be better.
Thanks in advance....
Ajay
|
|
|
|
|
You can either convert the strings to a string format that is comparable, e.g. yyyy-mm-dd, or convert them into Date objects. The Date object might fbe able to parse the strings, otherwise you either have to parse it yourself, or convert it to a format that it can parse.
---
b { font-weight: normal; }
|
|
|
|
|
|
Hello,
Does anyone know why IE stores cookies in two different directories, and what the differences between the two stores are?
One directory is "Documents And Settings\[UserName]\Cookies" , and the other one is "Documents And Settings\[UserName]\Local Settings\Temporary Internet Files" .
Thanks in advance,
Rich
ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
|
|
|
|
|
I found out it's because of the way Windows Explorer displays them. The cookies are really only kept in the Cookies folder, and Explorer just shows them in the TIF folder as a convenience.
ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸
|
|
|
|
|
I havn't been able to remove white space around my back ground graphics in the table.
I put the background in the tag, and now I've tried it in a div tag, but neither will remove the space around the image. I've tried a lot of things with padding and margins, but nothing has worked yet.
You can view the page here or below in the code box =)
http://patrickmcnally.serverpowered.net/pball/get.php?cat=Guns&page_num=1#
[code]
a:link { color: #00000; text-decoration: none;}
a:visted { color: #00000; text-decoration: none;}
a:hover, a:active { color: #00000; text-decoration: none;}
#pics1 a.picsClass {
margin: 0px 0px 0px 0px;
width: 125px;
height: 70px;
color: #00000;
text-decoration: none;
font: 2px;
line-height: 10%;
}
td
{
overflow: hidden;
}
table
{
padding: 0px 0px 0px 0px;
}
#mainTable td
{
margin: 0px 0px 0px 0px;
max-width: 125px;
max-height: 70px;
width:expression(
document.body.clientWidth > (500/12) *
parseInt(document.body.currentStyle.fontSize)?
"125px":
"auto" );
font: 2px;
line-height: 10%;
}
function populateBox2(title, desc, pic1_name, pic2_name, pic3_name, pic4_name, pic5_name, pic1, pic2, pic3, pic4, pic5)
{
title = title.replace(/!!!/g, "\'");
desc = desc.replace(/!!!/g, "\'");
title = title.replace(/&&&/g, "\"");
desc = desc.replace(/&&&/g, "\"");
text1 = "<h2>"+title+"</h2>"+desc+"<br><br><a href=\"#\" onClick=\'populateBox1(\""+pic1+"\"); return false\'>"+pic1_name+"</a> ";
if (pic2 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic2+"\"); return false\'>"+pic2_name+"</a> ";
}
if (pic3 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic3+"\"); return false\'>"+pic3_name+"</a> ";
}
if (pic4 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic4+"\"); return false\'>"+pic4_name+"</a> ";
}
if (pic5 != "")
{
text1 = text1 + "<a href=\"#\" onClick=\'populateBox1(\""+pic5+"\"); return false\'>"+pic5_name+"</a> ";
}
//alert(text1);
populateBox1(pic1);
document.getElementById("box2").innerHTML = text1;
}
function populateBox1(picName)
{
document.getElementById("box1div").innerHTML = "<img src=\"images/" + picName + "\" id=\"box1\">";
//alert(picName);
//document.getElementById("box1").src = "images/" + picName;
var h = document.getElementById("box1").height;
var w = document.getElementById("box1").width;
var nh = 150;
var nw = 300;
var nh2;
var nw2;
//alert(h + " " + w + " " + nh + " " + nw);
if (h > 150)
{
nh2=nh/h;
nw2 = w * nh2;
document.getElementById("box1").height = nh;
document.getElementById("box1").width = nw2;
//alert("Height - h-" + h + " w-" + w + " nh-" + nh + " nw-" + nw + " nh2-" + nh2 + " nw2-" + nw2);
}
w = document.getElementById("box1").width;
if (w > 300)
{
nw2=nw/w;
nh2 = h * nw2;
document.getElementById("box1").height = nh2;
document.getElementById("box1").width = nw;
//alert("Width - h-" + h + " w-" + w + " nh-" + nh + " nw-" + nw + " nh2-" + nh2 + " nw2-" + nw2);
}
}
[/code]
Thank you.
Light and Love to you all
-Patrick Arden McNally
|
|
|
|
|
Please only post the relevant code.
---
b { font-weight: normal; }
|
|
|
|
|
Its all relevant minus the html and body tags =)
Light and Love to you all
-Patrick Arden McNally
|
|
|
|
|
You got to be kidding. What does all that code have to do with the problem? Half of the code is even inside html comments, I can hardly see how that code could be relevant to anything at all.
---
b { font-weight: normal; }
|
|
|
|
|
Hi ,
You write the following code in body tag
topmargine="0"
rightmargin="0"
leftmargin="0"
bottom margin="0"
and also write cellspacing="0" and cellpadding="0" in every table tag
Chetan Visodiya
|
|
|
|