|
no actually i am reading the data from DB.
is it not possible through html?
else i have to introduce spaces or in the middle in my session bean while setting the data.
this is a common issue i am having. this is present in multiple places. and not all the fields take this much size.
thats y i was in confusion. if there is no way in html, then i will introduce spaces or br tag in the middle
|
|
|
|
|
Hey
There is an html tag: <TEXTAREA WRAP=OFF|HARD|SOFT></TEXTAREA>
Not sure if this is what u lookin for??
Anyway Later
|
|
|
|
|
yes, its working fine.
thank u.
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
I am unable to send the http request using JavaScript in Opera browser. I could not find the IE equivalent of ActiveXObject("Microsoft.XmlHttp") or XMLHttpRequest() in Netscape to create an object for sending http request in Opera browser.
I appreciate any help in this regard.
MurthyPL
|
|
|
|
|
This is from the Opera website:
ActiveX is a Windows component technique used to run arbitrary code in other programs (such as a browser). While this is a very powerful programming technique, it is also a potential security nightmare as access is given to the operating system as well as the browser itself. Even with Microsoft's security model, a large number of Internet Explorer's security holes have been related to ActiveX. Opera does not support ActiveX and consequently avoids these problems. It does support Netscape type plug-ins (NP4). This is a much smaller, but not entirely negligible security risk. While the data a Netscape plug-in can access from Opera is strictly limited, it is still a full-fledged program and can as such interact with your system. Any restrictions you may have for downloading or installing other programs should therefore apply to plug-ins as well.
Also, XMLHttpRequest is a Netscape/Mozilla specific extension to JavaScript. It seems that Opera only supports ECMA standard.
What a piece of work is man, how noble in reason, how infinite in faculties, in form and moving how express and admirable . . . and yet to me, what is this quintessence of dust? -- Hamlet, Act II, Scene ii.
|
|
|
|
|
Using C#.NET I pick the access time of a user from an SQL database when he logs in. If the user uses up his access time the database needs to be updated without clicking any button, but I'm not able to call the fucntion done with C# in the codebehind from JavaScript used to implement count-down timer. Can someone help me? If it's not possible to call the function in the codebehind how can I write the same function in JavaScript or VBScript? Many thanks.
Ebi
|
|
|
|
|
I would like to post data into an Access DB from a form that is in an Email message...
Is it possible to do this? If so what would the connection string be?
I use connection strings like this for most of connections that are done locally on the server itself...
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data source=C:\inetpub\wwwroot\store.mdb;"
so for a remote post into the db would this work?
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=http://www.SomeDomainName.com/images/store.mdb;"
Any help would be greatly appreciated.
Seth
|
|
|
|
|
Hi, just wanting to try n put together a little script for dealing with temporary internet files. My question is, is there a way to modify the index.dat file via vbscript?
|
|
|
|
|
Sounds strange, but I don't think you can access to the index.dat file from the user, without alert the system. The unique access via vbscript, it's with FileSystem Object, and it's denied from a Internet page.
----
hxxbin
|
|
|
|
|
Hi, all
here is a case which is hurting me for the last couple of days..
the following html code is a part of my project.
there are some buttons in the form.
when i click "addproduct" it will pop up a child window
but the problem is.
when we close the window using X (close) button of the browser window,
after that clicking on other button "update status" is again poping up one more window.
actually i am not writing any code to pop up window for this button.
y it is happening..
i dont want this behavior.
how to get rid of this?
any suggestions?
the code is here
code:--------------------------------------------------------------------------------
<title>
function fnSubmit(actionCode)
{
if(actionCode==1)
{
if(validateLoyaltyAdminForm(document.loyaltyAdminForm))
{
document.loyaltyAdminForm.actionCode.value="1";
document.loyaltyAdminForm.submit();
return;
}
else
{
return;
}
}
}
function openViewWindow(jobId)
{
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '5';
document.forms['loyaltyAdminForm'].JobDescriptionId.value = jobId;
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnEditProduct(productId)
{
document.loyaltyAdminForm.productId.value=productId;
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addProduct.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '2';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnEditAward(awardId)
{
document.loyaltyAdminForm.awardId.value=awardId;
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addAward.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '3';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function fnDeleteProduct(productId)
{
document.loyaltyAdminForm.productId.value=productId;
document.loyaltyAdminForm.actionCode.value="2";
document.loyaltyAdminForm.submit();
}
function fnDeleteAward(awardId)
{
document.loyaltyAdminForm.awardId.value=awardId;
document.loyaltyAdminForm.actionCode.value="3";
document.loyaltyAdminForm.submit();
}
function ParentReload()
{
self.location.href = self.location.href;
return;
}
function openAddProductWindow()
{
// var d;
// d =window.open(" request.getContextPath()/addProduct.do","Product"," width=500,height=300,scrollbars=yes,status=yes,res
izable");
// d.moveBy(10,20);
// document.forms['loyaltyAdminForm'].actionCode.value = '1';
// alert(document.forms['loyaltyAdminForm'].actionCode.value);
// d.focus();
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addProduct.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '1';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function openAddAwardWindow()
{
// var d;
// d =window.open(" request.getContextPath()/addAward.do","Award"," width=500,height=300,scrollbars=yes,status=yes,res
izable");
// d.moveBy(10,20);
// document.forms['loyaltyAdminForm'].actionCode.value = '1';
// alert(document.forms['loyaltyAdminForm'].actionCode.value);
// d.focus();
var str = 'child';
var d;
d =window. open('',str,'width=800,height=300,scrollbars=yes,s
tatus=yes,resizable');
d.moveBy(10,20);
document.forms['loyaltyAdminForm'].action="addAward.do";
document.forms['loyaltyAdminForm'].target = str;
document.forms['loyaltyAdminForm'].actionCode.value = '1';
document.forms['loyaltyAdminForm'].submit();
d.focus();
}
function logout(obj){
document.location.href="/internaladmin/iaLogin.do";
}
function updateStatus()
{
document.forms['loyaltyAdminForm'].action="loyaltyAdmin.do";
document.forms['loyaltyAdminForm'].actionCode.value = '4';
document.forms['loyaltyAdminForm'].submit();
}
function disableProperty()
{
if(document.loyaltyAdminForm.onOff[0].checked)
{
document.loyaltyAdminForm.loyaltyPercentage.value="";
document.loyaltyAdminForm.loyaltyPercentage.disabled=false;
}
else
{
document.loyaltyAdminForm.loyaltyPercentage.value="";
document.loyaltyAdminForm.loyaltyPercentage.disabled=true;
}
}
function disableConversionProperty()
{
if(document.loyaltyAdminForm.conOnOff[0].checked)
{
document.loyaltyAdminForm.loyaltyPoints.value="";
document.loyaltyAdminForm.loyaltyPoints.disabled=false;
}
else
{
document.loyaltyAdminForm.loyaltyPoints.value="";
document.loyaltyAdminForm.loyaltyPoints.disabled=true;
}
}
function back(obj){
history.go(-1);
}
<
Harinath
Cybernet software systems pvt. ltd.
3, Bishop wallers avenue east,
mylapore
chennai
India-600004
|
|
|
|
|
Hello,
In my ASP site i want to implement the security that when the user clicks on logout then when he clicks on back button he should not be able to access the previous page again. I have used the session variable "User", it's vale is true if the user is logged in and make it false when the user logsout. I every page i am checking that if the value is false then the user should be redirected to login page. But when user clicks on back button of browser, it does not work. Can anybody help out for the solution of this.
Kuldeep
|
|
|
|
|
Hello,
Is it possible to request a variable from an HTML page URL using JavaScript or VBScript. The URL is: http://mmedia.glos.ac.uk/students/mu305/soe/Andalucia/insert.htm?imageFile=Image15
I know it is possible with ASP but need to keep the HTML page.
Any thoughts?
Regards
Rob
|
|
|
|
|
Yeah, with JScript, first you must read the URL, then make a substring with reference to '?', something like this.
<br />
var URL = document.location.href;<br />
var imageFile = URL.substring(URL.indexOf('=')+1, URL.Length);<br />
Obviuos if you wanna get more vars, you must make some changes to the script. But the idea is the same.
----
hxxbin
|
|
|
|
|
In a Web application where users will only need to query(selct..) the database for commands..., what way of connection is better knowing that we are looking to monimize the connections and optimize the performance?
Is it using WebServices, a DataAdapter and a Dataset, a query and a RecorSet..or something else??
|
|
|
|
|
DataAdapter provides a fast forward only read only cursor and can give you the required performance.
|
|
|
|
|
Hello,
I have found some code that uploads a file from a users hard drive, to a folder on a web server.
If, and how is it possible to rename the file that has been uploaded to image1.jpg so it can later be referred to by another application?
Also, is it possible to rescale the image when it is being uploaded?
Following are the links and source code:
http://mmedia.glos.ac.uk/students/mu305/soe/insert.rar
http://mmedia.glos.ac.uk/students/mu305/soe/andalucia/insert.htm
http://mmedia.glos.ac.uk/students/mu305/soe/andalucia/loader.asp
http://mmedia.glos.ac.uk/students/mu305/soe/andalucia/insert.asp
Many thanks,
Robert
|
|
|
|
|
I sent you a email with the info, check it.
----
hxxbin
|
|
|
|
|
Hi all,
How can i modify the request object that is coming from a servlet and pass on in the servlet filter.
Thanx,
Vivek
|
|
|
|
|
Hi,
How can i run a javascript function by appending the url of any site.
Regards,
Vivek
|
|
|
|
|
huh
explain a little clearer...
How do I print my voice mail?
|
|
|
|
|
Hi all
I'm using the following code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
Dim rsDivision
Dim rsDivision_numRows
Set rsDivision = Server.CreateObject("ADODB.Recordset")
rsDivision.ActiveConnection = MM_connOperations_STRING
rsDivision.Source = "Select * from tblDivision"
rsDivision.CursorType = 0
rsDivision.CursorLocation = 2
rsDivision.LockType = 1
rsDivision.Open()
rsDivision_numRows = 0
%>
<%
Dim rsBranch
Dim rsBranch_numRows
Set rsBranch = Server.CreateObject("ADODB.Recordset")
rsBranch.ActiveConnection = MM_connOperations_STRING
rsBranch.Source = "SELECT * FROM tblBranch order by DivisionID"
rsBranch.CursorType = 0
rsBranch.CursorLocation = 2
rsBranch.LockType = 1
rsBranch.Open()
rsBranch_numRows = 0
%>
<%
Dim rsSection
Dim rsSection_numRows
Set rsSection = Server.CreateObject("ADODB.Recordset")
rsSection.ActiveConnection = MM_connOperations_STRING
rsSection.Source = "SELECT BranchID, Section FROM tblSection"
rsSection.CursorType = 0
rsSection.CursorLocation = 2
rsSection.LockType = 1
rsSection.Open()
rsSection_numRows = 0
%>
<title>Untitled Document
<%
While (NOT rsDivision.EOF)
%>
"><%=(rsDivision.Fields.Item("Division").Value)%>
<%
rsDivision.MoveNext()
Wend
If (rsDivision.CursorType > 0) Then
rsDivision.MoveFirst
Else
rsDivision.Requery
End If
%>
<%
While (NOT rsBranch.EOF)
%>
"><%=(rsBranch.Fields.Item("Branch").Value)%>
<%
rsBranch.MoveNext()
Wend
If (rsBranch.CursorType > 0) Then
rsBranch.MoveFirst
Else
rsBranch.Requery
End If
%>
-----------------------------------------------------
This original code came from http://www.macromedia.com/support/ultradev/ts/documents/client_dynamic_listbox.htm but it doesn't really show an example past two dependent list boxes. After choosing the secod box, I get an error:
Line: 160
char: 6
Error: 'options' is null or not an object
the line in question seems to be for FOR loop part
-------------------------------------------------
function clearDynaList(oList){
for (var i = oList.options.length; i >= 0; i--){
oList.options[i] = null;
}
-------------------------------------------------
I need some help
thanks
James (e-mail me at James.Caravan@gems4.gov.bc.ca)
|
|
|
|
|
Hi,
I have an ASPX page where I am loading a custom web usercontrol I wrote. Now, have a placeholder on the ASPX, which I call the method placeholder.addcontrols("usercontrol1.ascx"). In the usercontrol I have a method which is being called in the the onload event. The problem right now is that if that method fails, I can't throw an exception or anything. I always get object instance not created. If I am loading the control, and it fails on the load event and I throw the exception shoudln't it go back to my aspx and I can handle it there or should I not put the method on the page load and have it somewhere else. Hope I didn't confuse anyone. Thanks in advance.
|
|
|
|
|
Hi,
I'm working on an intranet site where users can bring up their excel spreadsheet (accounting template) and complete their quarterly numbers. It was easy to create this page by taking the xls file in Windows Explorer and dropping it on a FrontPage web page. Really neat stuff, it looks and acts just like excel but with many limitations. I want the users to enter their info in and then save the spreadsheet - not to their computer (which they can by clicking on the export button which goes to excel) but back to the web server. Does anyone have any suggestions on how to do this with an existing spreadsheet/workbook? Any example code?
Thanks,
Mike
Thanks,
Mike
|
|
|
|
|
Hi,
is there by chance a possibility to obtain the users IP-Adresse. I'm writing an application which is going to store the IP adress in a database? Javascript or ASP? Where shall I look?
thanks in advance,
Matthias
If eell I ,nust draw to your atenttion to het fakt that I can splel perfrectly well - i;ts my typeying that sukcs.
(Lounge/David Wulff)
www.emvoid.de
|
|
|
|
|
what you need to use is something like this:
<%= Request.ServerVariables("remote_addr") %>
The above line in your asp code will give you the clients IP address
void signature(){
cout<<"Sobbayi Interactive"<
|
|
|
|
|