|
vasudevan,
Thanks for your response and i appreciate it. The technology i am using is JSP->Struts->Bean. The environment is Unix. There is a seperate server for files from appserver. This is a report where the jsp is loaded with recordset results and allows user to download the same in excel form. The files that user downloads has to be stored in the fileserver aswell. There is one Link created on the appserver to a file server. The link is outside the web folders on App server. Is it possible to allow user downloads when the file resides outside web folder (link especially).
Thanks and hope to get some help from you.
Regards,
Balu
|
|
|
|
|
A user can not download a file outside the web folder, unless the user has direct access to the file server.
Make a proxy page, that gets the file from the file server, and sends it as response to the user.
Make sure that the page can only be used to fetch the files that the user should have acess to, otherwise you will open up a huge security hole...
---
b { font-weight: normal; }
|
|
|
|
|
this site is done in php format, and he combined it with flash
this is good if you have good internet connection rinformp3.com[^]
|
|
|
|
|
|
How in the world did this guy make a flash code to work on a site like this, can i make something like this in vb, and then convert it to falsh??
www.ringformp3.com[^]
|
|
|
|
|
Is there any web server that raises server side events. For Example, I want to show account balance to my customers via emails at the start of month based on the records stored at server side Database.
Is there any event which raises at the first of every month?
Shoaib Nawaz
|
|
|
|
|
Shoaib,
There would'nt anything from the server as such other than the possibility of the following:
(*)Your ability of accessing the server console and having privileges to create and run scheduled tasks.
(*)Sql also would enable you to do this.
Is this what you are looking for?
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
I have a function which I have To used on many pages.i want such a solution that i write function one time but it can be called from many pages .solution should be in ASP(vb script)
|
|
|
|
|
Put it in a class, and use the class from the pages.
---
b { font-weight: normal; }
|
|
|
|
|
Put it in a file and include the file on each page where you need it.
---
b { font-weight: normal; }
|
|
|
|
|
i am having a problem in execComand.When i run this command to insert a insertInputButton in a SPAN the caret moves to the start of the span area after inserting the input button.I want the caret to be at end of the line right after the inserted input button.Please come up with a good solution?
|
|
|
|
|
In Classic ASP, how do two applications make use of the same Virtual
Directory?
Specifically, if a file in the Virtual Directory referenced the ASP
Application Object, how would the Server know which Application Object
to return?
Or is it the case that a Virtual Directory can only belong to one ASP application at a time?
I guess what I am asking is this -- if two distinct ASP Applications both want to use the same physical directory, would they each need a distinctly incarnated Virtual Directory to do it?
|
|
|
|
|
Hi... I have never used javascript before, so i think it's a bit difficult for me. But i promissed to help a friend who has created a web shop in java. With some kind of software, that has created his code. So the source is a mess.
My problem is when you have to type your customer adress, i want to open it in a new window, not in the iframe (That how it works know, i think..!)
I want customerdtl.html to open in it's own window
orderContentFrame.location="../customerdtl.html";
Hope someone can help af javascript newbie
|
|
|
|
|
Use the window.open method:
widow.open('../customerdtl.html', '_blank');
You can also use a thirt parameter, specifying the size of the window that is opened, and some other stuff.
Be aware that the form might rely on being opened in the iframe. You might have to change some of the code there also to make it work.
---
b { font-weight: normal; }
|
|
|
|
|
This method is used to open a new browser window
window.open('../customerdtl.html','name','height=200,width=150')
name is a string containing the name of the new window.
Kaushik Baruah is presently working as a Programmer Analyst in Cognizant Technology Solutions,Kolkata,India
-- modified at 7:03 Friday 30th September, 2005
|
|
|
|
|
I am having problems with the submit validation. I am returning a false however the page is still being submitted when I click on the okay button in the alert box.
I copied the code below.
Any help will be greatly appreciated!!!
-Sonia
function fnValidate(thisform)
{
with (thisform)
{
if (fnValidateText(sText,"Text ")==false)
{
sText.focus();
return false
}
}
function fnValidateText(field,alerttxt)
{
with (field)
{
if (value==null||value=="")
{
// concentanate alert name with name
alerttxt = alerttxt + "must be filled out!";
alert(alerttxt);
return false
}
else
{
// check if it is alphanumeric
alerttxt = alerttxt + "must contain one alphabet!");
alert(alerttxt);
return false
}
}
}
}
|
|
|
|
|
try -
onsubmit="return fnValidate(this);"
|
|
|
|
|
Hi,
I have a small HTML with a button and a handler object which is likely to catch the button's onclick event. When I try to click the button it says "this.button.id is null or not an object". If I do onclick="objHelper.buttonClick" in the "input type=button" tag instead it works fine. What is the right solution?
Here is my code:
<title>
function helper()
{
var button;
this.setButton = function(tobjButton)
{
this.button = tobjButton;
this.button.onclick = this.buttonClick;
};
this.buttonClick = function()
{
alert(this.button.id);
};
}
var objHelper = new helper();
function init()
{
objHelper.setButton(document.all("btnButton"));
}
Thanks:
(K)
|
|
|
|
|
Hi there,
When I try to click the button it says "this.button.id is null or not an object"
At the time the buttonclick function executes, the this keyword refers to the button object, not the objHelper . And the button object certainly does not contain any button member, so the this.button is undefined, then it should raise the error when you are accessing the this.button.id .
If I do onclick="objHelper.buttonclick" in the "input type=button" tag instead it works fine
Now you invoke the function buttonclick of the objHelper object, so the this keyword in the function should refer to the objHelper , and as a result it should be working as you expected.
To work around, you can simply change a bit your sample code:
this.buttonclick = function()
{
alert(this.id);
};
|
|
|
|
|
Hi everyone,
I have a problem on validation the controls in the datagrid. When I entered a control and enter an invalid value, the control will fire OnBlur event after I lost the focus of the control. It show me the alert message but the focus is not set back to the control that has the invalid value.
Anyone, please help me on how to set back the focus on the control with the invalid value after the alert message is showed, so that the user will immediately know he had entered an invalid value. Below is my javascript
function vldValue(args)
{
var IsValid;
var validFormatRegExp = /^((\-)\d)?\d*(\.\d{3})?$/;
IsValid = validFormatRegExp.test(args);
alert("Invalid Value!");
return IsValid;
}
thanks a lot in advance.
Chiari
|
|
|
|
|
Hi there,
Basically, to set the focus on an element, you can simply call the object.focus() method, so to set the focus back to the control that has an invalid value, you need to get reference to the control, then invoke the focus() method.
|
|
|
|
|
Hi,
I have tried to set the focus by using object.focus() method, it doesn't work on controls in datagrid. Simply, I can't found any reference of the control. It prompt an error as null.
By the way, do you know the code of using SendKeys in javascript?
Thanks a lot,
Chiari
|
|
|
|
|
How do you get the value of the input control to validate? IMO, if you can access the value of the control to validate, then you probably have an idea how to access the control via its id, name ..., the sample code looks something like:
...
var txtBox = document.getElementById("datagrid1_ctl1_txtUserName");
txtBox.focus();
... AFAIK, there is no method in javascript that behaves like the SendKeys method in the window-based application. However, you can catch up the events when the user presses the keys and determine which keys are pressed.
|
|
|
|
|
Hi,
I tried using it but it return null value. Ok... My datagrid id is 'dgStkcode' and the id/name of the control inside this datagrid is 'EditAsCast'. So is it rite for me to write the code as
...
var txtbox = document.getElementById("dgStkcode_ctl1_EditAsCast");
txtbox.focus();
...
Please correct me.
I tested out something.
When the code is
...
var txtbox = document.getElementById("dgStkcode");
...
It return [object] to me. Does this means it got the id of the datagrid?
Thanks a lot
Chiari
|
|
|
|
|
Chiari wrote:
My datagrid id is 'dgStkcode' and the id/name of the control inside this datagrid is 'EditAsCast'...
Basically, you can use the getElementById method to get reference to an html element at the client side based on its id. To know exactly what the id of the input textbox is, you simply view source the web page in the browser. In fact, this value is the value of the ClientID property of the control.
Chiari wrote:
It return [object] to me. Does this means it got the id of the datagrid?
It means the method found an object whose id is the dgStkcode .
How do you get the value of the input textbox to validate btw?
|
|
|
|