|
TofuBug24 wrote: so just to let anyone out there who happens by know that apparently google only supports the outdate Microsoft.XMLHttp object
I suspect there's a difference between the two in the headers sent by default. Google is likely interpreting certain headers as indication that the requesting app supports / does not support javascript.
----
Bots don't know when people die.
--Paul Watson, RIP
|
|
|
|
|
I am using the following code to force download files from a Classic ASP webpage:
<br />
<%@ Language=VBScript %><br />
<%Response.buffer = True<br />
filePath = request("fpath")<br />
fileName = request("fname")<br />
'Response.Write(Server.MapPath(filePath & "/" & filename))<br />
'Response.End<br />
Response.ContentType = "application/asp-unknown"<br />
Response.AddHeader "content-disposition","attachment; filename=" & fileName<br />
Set FStream = Server.CreateObject("ADODB.Stream")<br />
FStream.Open()<br />
FStream.Type = 1<br />
FStream.LoadFromFile(Server.MapPath(filePath & "/" & filename))<br />
Response.Clear<br />
Response.BinaryWrite FStream.Read()<br />
Response.Flush<br />
Response.End<br />
FStream.Close<br />
Set FStream = Nothing<br />
%>
Everything works fine except that when it tries to download a file size over 5 MB I get an error. Can someone tell me, how to not restrict the file size, or set the file size really high. Thanks.
-- modified at 16:53 Tuesday 28th February, 2006
|
|
|
|
|
Standard question #2:
What error message do you get?
---
b { font-weight: normal; }
|
|
|
|
|
It tells that "Internet Explorer cannot download movie1.mpg from mydomain.com.
Internet Explorer was not able to open this Internet site. The requested site is either unavailable or cannot be found. Please try again later."
I checked the server that holds the file and the file is there.
|
|
|
|
|
Disable the "Show friendly http error messages" setting in the advanced internet options, so that you see the real error message that the server sends.
---
b { font-weight: normal; }
|
|
|
|
|
The "Show friendly Http error messages" setting is off. Also when I click on the link for downloading, the File Download Dialog box starts to open and then a message box pops up with the message from before.
|
|
|
|
|
|
The problem was that in IIS 6.0 the aspBufferingLimit is defaulted to 4 MB. To correct the problem I had to open the IIS metabase.xml file and change the aspBuffingLimit to a higher size.
|
|
|
|
|
I've placed a question on the ASP.NET forum regarding streaming using a local SHOUTcast server and Windows Media Services websever. If you have any experience with streaming media please give me a hand. See my complete post on the ASP.NET forum[^]
regards,
Mircea
Many people spend their life going to sleep when they’re not sleepy and waking up while they still are.
|
|
|
|
|
Hi,
Can anyone tell me how to upload an image and then set this image as the background of a whiteboard in flash.
Thanx & Regards,
thefrenzybug
frenzybug
|
|
|
|
|
Hello Dear
How to use ASP Objects (Response, Request, Session, etc,) in VB Component
I was done this by using objectcontext but it showing error. Is there any alternative?
Give me brief explanation or refer any article related to this issue.
My working environment is Windows 2000 Professional, VB6
N.Rajakumar B.E.,
Application Developer,
www.newdreamz.tk
|
|
|
|
|
|
Hi all
I am working on a HTML page. On this the user enters a plain text in the textbox provided. After typing as soon as he presses "send" button on that page that plain text should be emailed to aa email address.
Deepak Anish
Computer Programmer
Maxumise Fiji Ltd
Suva, Fiji
|
|
|
|
|
|
|
I was thinking of sending using php. You have any idea of how to do this.
Deepak Anish
Computer Programmer
Maxumise Fiji Ltd
Suva, Fiji
|
|
|
|
|
Hey!!! if you know PHP then it is very easy because PHP have a built-in
mail() function.
So code for this should be like this:
______________________________________
______________________________________
Sushant Mathur
Bangalore,
INDIA.
http://n.domaindlx.com/fun2ssh/HOME.htm
-- modified at 7:54 Wednesday 1st March, 2006
|
|
|
|
|
Hi sushant
I dont know php. But I am using php.
Do you have any idea about this.
cheers....
Deepak Anish
Computer Programmer
Maxumise Fiji Ltd
Suva, Fiji
|
|
|
|
|
|
|
how do i use my javascript to stop postback in the input is not correct i don't want it to post back to the server
here is the code:
private void Page_Load(object sender, System.EventArgs e)
{
// Form the script that is to be registered at client side.
String scriptString = "<script language=JavaScript> \n";
scriptString += "function DoClick()\n {\n";
scriptString += "\t myForm.show.value='Welcome to Microsoft .NET'; \n ";
scriptString += "return true;\n}";
scriptString += "</script>";
if(!this.IsClientScriptBlockRegistered("clientScript"))
this.RegisterClientScriptBlock("clientScript", scriptString);
button.Attributes["onclick"]="DoClick()";
}
here is the html:
<form id="myForm" runat="server">
<asp:TextBox id="show" runat="server" Width="196px"></asp:TextBox>
<asp:Button id="button" runat="server" Text="Button"></asp:Button>
</form>
Thanks
chad
-- modified at 22:40 Monday 27th February, 2006
|
|
|
|
|
If the input is not correct, return false from the javascript function.
---
b { font-weight: normal; }
|
|
|
|
|
i returned false and a postback stilled happeded i have server side code on this asp.net button which writes "server" in that textbox and i want to be able to stop that from happening
thanks
chad
|
|
|
|
|
Right. You have to return the value in the event also:
button.Attributes["onclick"] = "return DoClick()";
---
b { font-weight: normal; }
|
|
|
|
|
Use
if(!Page.IsPostBack)
button.Attributes["onclick"]="DoClick()";
Senior Software Engineer
|
|
|
|