|
That is how I solved the problem. It is working very well.
// Catch window closings and logout
window.onbeforeunload = function(){
if((window.event.clientX<0) || (window.event.clientY<0)) logout();
}
function logout()
{
location.href ="adm_logout.asp";
}
|
|
|
|
|
We are developing (trying at least) a processes where we want to call another form and pass some variables from the calling form to the called form. We are trying to figure out how to make sure that the fields ( one field is static, and the other could be one of 4 different fields) we are passing and the form we are calling match up. We want to get current information from one system (the system we are going to) and then retrieve back the updated information and have it display? How can I find out what the ? and & in the href mean? if we want to pass an id to form update do we do a
http://www.xxxxxxxx/update.jsp?id=12738"
once we have the informatin how can we refresh to display the new information?
marsha
|
|
|
|
|
Does anyone know where I might find a script that creates a rotating image sphere? I found a site that utilizes a java applet to do so, but I'd prefer javacript instead. I'd like to point it at images and have it create a rotating sphere composed of the images.
I might have to make my own, but my math isn't that good!
|
|
|
|
|
Javascript isn't suited for doing something like that. Even if you manage to get the image data, and even display the image data, it would take minutes to calculate each frame, so it wouldn't really be rotating as much as moving ocassionally...
---
b { font-weight: normal; }
|
|
|
|
|
I think it could be done without being that resource intensive, with the right knowledge. I've got a fairly simple script on my homepage that scrolls images.
|
|
|
|
|
Scrolling images is extremely trivial in comparison. There is no processing of the image data required for that. For a spherical distorsion of an image, on the other hand, you would have to calculate every pixel of the image.
---
b { font-weight: normal; }
|
|
|
|
|
I need guidence regarding creation of PERT/CPM chart using technology ASP/PHP/VB script.
can anyone please help me on this
Any help would be appreciated.
Thanks in advance
Himanshu Sharma
|
|
|
|
|
Hi,
I have an activex which is just a report list control. Whenever I resize the IE the page gets scroll bars. If I scroll the IE page scrolllbars the Activex does not get repainted & it shows some other pages contents.
So what should I do to avoid it & ask activex to get repainted. Plz help
Thanx & Regards,
Vinod.
|
|
|
|
|
:-OSample coding for add a password to save button using asp.
NI
|
|
|
|
|
What?
--------------------------------------------------------
My portfolio & development blog
Q:What does the derived class in C# tell to it's parent?
A:All your base are belong to us!
|
|
|
|
|
Hi Folks,
Any help for this issue would be appreciated.
Am trying to move a file from a soruce to destination folder in the following steps :
1)Check if destination directory exists [Directory.Exists(path)].. Else, create one.
2)DiretoryInfo di=new DirectoryInfo(sourcePath);
3)FileInfo[] fi= di.getFiles("TAX");
4)Foreach FileInfo
{
FileInfo.move(source, destination);
}
So, am getting an error right after the first step and error is "Second path fragment must not be a drive or UNC name. ".
Any ideas please?
Thanks,
RB
|
|
|
|
|
You have posted your question in the wrong message board. This has nothing to do with web development. You should post it in a programming language specific board.
---
b { font-weight: normal; }
|
|
|
|
|
Try this
DirectoryInfo di=new DirectoryInfo(sourcePath);
FileInfo[] fi = di.GetFiles();
foreach(FileInfo f in fi)
{
f.MoveTo(destination);
}
Hope this solves your problem.
Luck is Opportunity with hardwork
|
|
|
|
|
Hi there
code below is working fine at my local server (PC) but when i m uploading this code to live server then recordcount property return -1... any solutions????
dim rsRandom,sqlRandom<br />
set rsRandom = Server.CreateObject("ADODB.Recordset")<br />
sqlRandom = "Some query" <br />
rsRandom.open sqlRandom,conn,3,3<br />
response.write(rsRandom.recordCount)<br />
<br />
thanks in advance
|
|
|
|
|
That means that the recordset doesn't support random access to the rows but only sequential access. The RecordCount property doesn't work as the recordset doesn't know how many records there are. It's probably because you use a different database driver on the live server.
---
b { font-weight: normal; }
|
|
|
|
|
Hello Guffa
thanks for your reply. Yes You are right. I m using MYSQL at live server. so wat a solution for this.. I mean how can i get recordcount when i use MYSQL..
thanks once again
|
|
|
|
|
Thanks Guffa
i got solution
Function RecCount(rsdef)<br />
if rsdef.eof then<br />
RecCount = 0<br />
else<br />
intRows = rsdef.GetRows<br />
rsdef.MoveFirst<br />
RecCount = UBound(intRows,2) + 1<br />
end if<br />
End Function
bye for now
|
|
|
|
|
So you only want to count the records? Then you shouldn't even fetch all the records, but count them in the database query and only return the number of records.
Example:
strSQL = "select count(*) from Users"
objRS = objConnection.Execute(strSQL)
lngCount = objRS(0)
objRS.Close()
Set objRS = Nothing
---
b { font-weight: normal; }
|
|
|
|
|
and if can... how to do it?
|
|
|
|
|
No, it can't.
You can specify a mailto: url as action of the form, that will use the default mail program of the client computer to send a mail containing the data from the form.
---
b { font-weight: normal; }
|
|
|
|
|
i use a iframe with style='filter:alpha(opacity=60)'.
iframe shows some jpeg image in it.
some image is shown well, but some image is shown with broken pixels.
if i remove filter option, all images have no problem.
how can i fix this? is it possible?
thanks.
|
|
|
|
|
In what way are the pixels broken?
Does this occur in a specific browser?
---
b { font-weight: normal; }
|
|
|
|
|
|
How to get number of rows affected while inserting?
in stored procedure
Jesuraj
|
|
|
|
|
@@rowcount
You have better chances of getting an answer if you ask SQL questions in the SQL message board.
---
b { font-weight: normal; }
|
|
|
|