|
iam developing a website in ASP and iam totally new to asp.iam having two frames in my first frame which is my default page iam having four listboxes which is dynamicaly related to each other .now i want to pass the selected value from the fourth list box to another combobox which is in another frame now can you just help me?how to go about it?
|
|
|
|
|
Hi,
you can access this in javascript as follows:
top.frames[0].form1.combo_name.selectedIndex
Om Prakash
|
|
|
|
|
iam using save dialog box to save files when i click cancel button of the save dialog box i should cancel the fucyionality of save how to do it.
iam working in asp.
help me out
|
|
|
|
|
If u are using javascript, then here is the code:
function Submit()
{
if(confirm('continue?'))
alert('ok') //submit form here..
else
alert('cancel') //do nothing
}
Om Prakash
|
|
|
|
|
iam using save dialog box to save files when i click cancel button of the save dialog box i should cancel the fucyionality of save how to do it.
iam working in asp.
help me out
Dear On Prakash
i think he to go to cancle saving process (while saving), and he can't do it
I.N.M(InterNetMouse)
|
|
|
|
|
I am having a difficully with implementing my own ping funciton.
I am using sockets, and First I would like for someone to clarify this sentance from the help file for me.
Any public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.
Does that mean that sockets are not Thread safe.
Could cross-talk occur? In my testing, I am finding that when I ping a lan computer 80% of the time I am getting a 0ms reply time, however 20% of the time It is like 15ms (by itself this is not unreasonable - however read on). Then I ping yahoo. and 40% of the time it about 31ms, and 40% of the time it is about 15ms the remain 20% it is 0ms. This evidance suggests to me, there is cross-talk happing. A message from the lan instance is being recived by the yahoo instance, and vice-versa. Is this possible?
do you need to investigate an online backup[^] company
|
|
|
|
|
Jason McBurney wrote:
Does that mean that sockets are not Thread safe
That means that if you want to access the same socket from multiple threads you need to make sure that the critical sections of code are properly managed with locks, mutexes, semaphores or what ever your implementation calls for.
I tend to be warey about multi-threaded solutions to problems, simply because often the maintenance of the additional complexity isn't worth the benefits at the other end. So far in 8 years I've only ever implemented multi-threading where I could see that it was the best case for maintability and user experience.
What are you using to measure the time for the ping to respond? the, IIRC, GetTicks() method only returns a resolution of about 15/16ms which would match with your results. If you need anything more accurate than that then you need performance counters. The resolution depends on your PC/processor, but on my 650MHz PIII laptop they produce one tick per third of a microsecond. A faster processor should bring more resolution.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
The Second EuroCPian Event will be in Brussels on the 4th of September
Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!
|
|
|
|
|
Humm, never even thought of the resolution issue, but as long as it is consistant I don't think it will be an issue.
do you need to investigate an online backup[^] company
|
|
|
|
|
Hi everybody.
I have a little issue and was hoping that somebody here could help out.
I’m trying to write a frames HTML page that will open another URL in one of the frames. The buggers seem to have added a little script that forces my frames to close and the URL that I’m trying to load into one frame becomes the main (and only) window.
Here is the script:
<!-- END ERROR HANDLER --><!-- START FRAME BUSTER --><br />
<SCRIPT language=JavaScript><br />
<!-- <br />
if (top != self) {<br />
top.location = location<br />
}<br />
</SCRIPT><br />
<!-- END FRAME BUSTER --><!-- START IMG_CHANGE -->
Does anybody know if there is a way that I can write code that will disable this script?
Thanks
Brad
|
|
|
|
|
I don't think so. I was first thinking you might be able to get the if statement to return an error instead of true. Although I could not get it to work, if you could set top or self to an error then it may not run the true branch... but like I said I don't think it will work
do you need to investigate an online backup[^] company
|
|
|
|
|
Thanks Jason.
That is kind of what I was thinking but just couldn't seem to see how to make it happen.
Brad
|
|
|
|
|
in HTML,i can give following :
This will popup a file selection popup dialog box. This dialog box,
does not allow me to select directory. It only allows me to select a file.
I want to allow the user to select a directory.
How can i do this ? Any immediate help would be much appreciated.
jessica123
|
|
|
|
|
There is no built in functionality with this control to do that. I sorta circumvented the problem once by setting the size of textbox part of the control to 0 so it is invisiible and then setting another textbox next to it. Whenever a user chooses a file, the directory of where that file is in would appear in the textbox. There is some coding involved, but it is rather trivial.
This is the best quick fix I can offer.
sivilian
|
|
|
|
|
We are developping active x for web use. we found a litttle bit of problem with File -> new window in explorer. whenever we do this and call some member functions in those active x explorere fails. however if you just go and open explorer with http://localhost/myasp.asp and open another one with http://localhost/myasp.asp and call some active x members we have no problem.
Since i am new to web development, I am not sure wherer to start debugging.
Any help is appreciated.
Shin
|
|
|
|
|
I just recently began exploring WMI since you can't do everything with ADSI. My current project is to compile a list of domain users in my company with Local Administrator privileges on our numerous servers so that we may clean out any users who ought not have these powers.
The problem is I can't seem to get the records I want from my query. Take a look at the following code:
strComputer = "."<br />
Set objSWbemServices = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")<br />
Set colSWbemObjectSet = objSWbemServices.ExecQuery("SELECT FullName," & _<br />
"Domain, LocalAccount FROM Win32_UserAccount WHERE LocalAccount = false")<br />
For Each objSWbemObject In colSWbemObjectSet<br />
WScript.Echo " Domain: " & objSWbemObject.Domain & vbCrLf & _<br />
"Full Name: " & objSWbemObject.FullName & vbCrLf<br />
Next
This query returns what appears to be all of the user accounts in my domain. I assume this is because our general domain users group is a member of the local "Users" group. How can I make the query only collect domain users who are also members of the local "Administrators" group?
Thanks,
Seth Kelly
|
|
|
|
|
Allright, well I've made some progress here. I have a script that runs almost perfectly, but has a habit of getting stuck. Here's the essential code:
Set fso = CreateObject("Scripting.FileSystemObject")<br />
Set scribe = fso.CreateTextFile("c:\LocalAdminList.txt")<br />
Set boxes = fso.OpenTextFile("c:\servers.txt",1,false)<br />
<br />
DO<br />
Set CompConn = GetObject("winmgmts:\\" & box & "\root\cimv2")<br />
Set ColUsers = CompConn.ExecQuery("SELECT * FROM Win32_GroupUser WHERE" &_ "GroupComponent='Win32_Group.Domain=\'BUILTIN\',Name=\'Administrators\'' ")<br />
<br />
FOR EACH User IN ColUsers<br />
Username = User.PartComponent<br />
scribe.writeline Username<br />
(*script gets stuck here*)<br />
NEXT<br />
<br />
LOOP WHILE(boxes.atendofstream = false)<br />
Simple enough. Yet when I run the script against a list of a few hundred servers it gets stuck somewhere between the second and third server. Specifically, it never gets out of the FOR loop after it processes the last user in the second server's collection. When I remove this server from the list the script makes it through 5 more servers and then same deal. No errors, it just sits and doesn't do anything. Does anybody have any idea why this script won't drop out of the FOR loop when it ought to? Alternatively, is there any code to make it drop out after a certain period of innactiviy?
|
|
|
|
|
Well, I might as well continue answering my own questions. A bit of searching and I found this problem with WMI queries. Essentially, that report tells me that even though I ran my query looking for local users it still queries my entire domain to find them. My very large network isn't exactly standardized software-wise, so I assume the servers that this script hangs on don't have the proper hotfixes to handle my query.
"EXIT FOR" is of course the equivalent to "break" that I was looking for, but I'm still curious about a condition that would break off the loop after a certain amount of inactivity. The query in my code runs server-side, so my end is indeed inactive while it queries endlessly. Another more useful tip would be one that explains how to improve my query.
My problem is...essentially...solved, but not nearly to my satisfaction. Any help would still be much appreciated.
|
|
|
|
|
Is there any compelling reason I would want to learn PHP if I already know perl?
Outside of maintaining somebody elses PHP script, or curiosity.
Are there substantial differences that would warrant picking it up? I've sort of figured I can do anything in perl that someone can do in PHP, if not more, so why bother, but maybe I'm way off.
BW
The Biggest Loser
"People look so snooty, take pills make them moody Automatic bazootie, zero to tutti frutti" -Hollywood Freaks
|
|
|
|
|
not really if you're comfortable with perl
the new php5 has a whole bunch of object oriented features coming and has some very neat stuff to interface with all sorts of db's etc BUT... like i said in the lounge just now ... doesnt it all come down to spitting out html over a stateless protocol anyways?
"there is no spoon" biz stuff about me
|
|
|
|
|
l a u r e n wrote:
doesnt it all come down to spitting out html over a stateless protocol anyways?
True, as long as you shuffle your characters the way you want to, what difference does it make.
BW
The Biggest Loser
"People look so snooty, take pills make them moody Automatic bazootie, zero to tutti frutti" -Hollywood Freaks
|
|
|
|
|
Hi,
Is it somehow possible to force the width of a table column be fixed (in HTML) no matter how huge the cell content might be?
For example in the example below, the width of the table increases if I insert a very long string with no spaces to it. So is it possible to force the text to be wrapped eventhough there's no spaces in it?
<html>
<head>
<title>page</title>
</head>
<body>
<table border="1" bordercolor="black" width="300" >
<tr>
<td width="150"> </td>
<td width="150"> </td>
</tr>
</table>
</body>
</html>
-Jussi
|
|
|
|
|
Hi there,
Try the following:
JussiL wrote:
STYLE="word-wrap:break-word;"> | |
Hope this helps,
Andy
|
|
|
|
|
Yeah, this is exactly what I needed. Thanks
-Jussi
|
|
|
|
|
hi, i really need someone to help.
i have to fax from an asp application but i dont want to use a fax server or the option of far using e-mail.
i need a code or an interface in which i can enter a number and choose a file and send fax.plz do help me. i'm in great trouble. my application is incomplete without this .
|
|
|
|
|
afaik u need a backend module to take care of the actual fax layer of the transport ... writing this in asp would not be a good idea me thinks
"there is no spoon" biz stuff about me
|
|
|
|