|
I've never used PHP, but if PHP can call an executable and then get a result from it ( perhaps via a file on disk ? ) then I'm sure it can do what you want.
Personally, I'd use ASP.NET, but that's because I have, and I would never go back to asp, or any other pure scripting environment that doesn't give me native code and object orientated design.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I have created one menu using javascript, after that I have put a dropdown combo of html but when menu drop down then dropdown combo will overlap to menu so how to put combo back side & menu upward side, give me a solution
anita
zzzzz
|
|
|
|
|
I already answered this question when you posted it two days ago.
---
b { font-weight: normal; }
|
|
|
|
|
Hi,
I want to download a .csv file whenever user clicks on a button.
Can u help me.
Regards
Manikant Kasumwal
Software Engineer
R Systems International Ltd.
|
|
|
|
|
You can use the WebRequest class to download files from the web.
---
b { font-weight: normal; }
|
|
|
|
|
Hi Guffa,
i have gone through the WebRequest class but didn't find any method
to download a file.My requirment is when user click on a button it
should display a file download dialog box where user can choose the
location , just like we download any file from internet.
Thanks & Regards
Manikant
|
|
|
|
|
Aha, it's not you who will download the file, but the end user. That is something completely different.
Just link to the file, or use a button that redirects to the file:
<input type="button" value="Please don't click me." onclick="window.location='url to the file';">
---
b { font-weight: normal; }
|
|
|
|
|
I can authenticate my users using WSE and passing a security token in, but once I've done that, how does the executing function access those user credentials so it can run with the correct DB privalages?
Thanks
Ric.
|
|
|
|
|
I managed to get an answer from another board.
I need to create a CustomPrincipal from a GenericPrincipal which contains my user credentials and attach it to Thread.CurrentPrincipal in my authentication code.
Ric
|
|
|
|
|
can someone tell me if theres a way to notify another php page when a page unloads without opening a new window or stopping the user from goin to the site he wants to?
im asking this because i need to make a php script that logs people out when the close the window or leave a page.
if seen automatic logout things on other websites but i can't figure out how they work?
i cant just have cookies that expire when they close the window, because i want to have it so it echo's what users or how many users are currently viewing the page. not just if they have viewed the page.
ive seen forums tell u what users are currently logged in.....
P.S. if i need to use SQL or sumthing i have access to that on my server also
|
|
|
|
|
When the page unloads...???
I don't think thats possible...I think by the time onbeforeunload() fires it prevents you from doing anything but maybe sending an alert() to the end user..
If memory serves correct I've tried this before, but saving cookies instead of sending HTTP requests...same thing...I got no where...
I can tell you that how most systems accomplish this who's logged in/logged out is by actually using a temp session table with records that expire every 15, 20 mins or so.
The display of whose online and who isn't...isn't really real time...even if you set the session expiration time to 1 minute...if the session record is created a split second before the person leaves the page/site...that person will apear logged in for another 59 seconds...which is only an illusion
So to sum it up...you can't do real time, but you can do it so that it gives a good idea as to who is online.
HTH
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
thanks again hockey
|
|
|
|
|
ok now i cant figure this out:
how do u make a temporary table in an SQL db that expires automatically
|
|
|
|
|
The only way to notify the server is to catch the onunload event and open a new window that logs the person out. The event fires when the page unloads for any reason, so you have to keep track of where you are going.
This of course only works if javascript is enabled, and no popup blocker stops the code from opening the window.
---
b { font-weight: normal; }
|
|
|
|
|
what is the lines <script language='javascript' src='http://127.0.0.1:2342/js.cgi?pca&r=9040'></script> and the <script language=javascript>postamble()</script> tags mean... ive wearched the web but no explanation...
|
|
|
|
|
The first line includes a javascript file from the url specified. As the file is a cgi script, the script will be run on the server to return the contents to be included. As javascript files are cached in the browsers, the script might only run the first time if you load the page again, though.
The second line contains javascript code to call the postamble function, that has been defined in another script block.
The lines use HTML 3 syntax. For a more up to date (HTML 4) syntax, use:
<script type="text/javascript" src="http://127.0.0.1:2342/js.cgi?pca&r=9040"></script>
and
<script type="text/javascript">postamble()</script>
---
b { font-weight: normal; }
|
|
|
|
|
There is no way that you can put an element on top of a dropdown, so the solution is to hide the dropdown when you open the menu.
---
b { font-weight: normal; }
|
|
|
|
|
I have created one menu using javascript, after that I have put a dropdown combo of html but when menu drop down then dropdown combo will overlap to menu so how to put combo back side & menu upward side, give me a solution
Email: anitamistry84@yahoo.co.in
anita
|
|
|
|
|
Anita,
This is a known IE issue. Certain widely used workarounds being
(*) In mouseOver, when you show the menu, you can temporarily hide the dropdowns and in MouseOut, when you hide the menu, you can restore the dropdowns.
(*) Have an Iframe to contain the menu. Iframe has a zIndex which can supersede the visibility to dropdown.
Did this attend to your query?
Vasudevan Deepak Kumar
Personal Web: http://www.lavanyadeepak.tk/
I Blog At: http://deepak.blogdrive.com/
|
|
|
|
|
|
:-DTo play Flash .i need to use the control--"Shockwave Flash Object",could you
please tell me something about this control,amply.Thank you !
Bye the way ,do you have some ebooks about using Contorl ? Send them to me,
yinhui_zhou@yahoo.com.cn, Thanks.
yin_hui_zhou
|
|
|
|
|
Straigt From the Source[^]
I'll help you if I can. I've done a tiny bit of this for a major company and survived it well enough to get their business again this year. I'm no expert but a few are probably here. If you could ask more specific details you'd get more specific answers.
I'm also not sure you are asking this in the right place at all. The Web Development Forum might be a better place to pursue this. Again, I'm not at all sure.
- Rex
My name is Maximus Decimus Meridius, commander of the Armies of the North, General of the Felix Legions, loyal servant to the true emperor, Marcus Aurelius. Father to a murdered son, husband to a murdered wife. And I will finish this project, in this life or the next. Slightly modified " from Gladiator.
Code-frog System Architects, Inc.
|
|
|
|
|
Hi Guys.
I think my question would of been answered a million times but can you help me as I cannot seem to find the answer to it.
Programming Language: ASP
I want to encrypt a variable then decrypt it at the recieving page. The variable is a single text word which is no more than 10 characters long.
Any Help is most appreciated
Regards
GeordieWebProgrammer
|
|
|
|
|
Encryption would perhaps be a bit over the top. It should probably be sufficient with some scrambling.
You could seed the random generator with a specific number, so that you get a predictable sequence of random number, then pick a random number between 0 and 255 for each character in your text, and do an xor between the character code and the random number. Output the value as a (two digit) hexadecimal number instead of as a character, so that you won't get unprintable characters.
Do decode the value, just seed the random generator with the same number, create the same random numbers and xor with the values from the scrambled code.
---
b { font-weight: normal; }
|
|
|
|
|
So basically your looking for a poor man's SSL???
It is possible, but it's not easy...
You will need to find an encryption algorithm (ie: blowfish, RSA, etc) written in both Javascript and ASP.
I think: Using Javascript you will can capture the onsubmit() and call your encryption function passing it the string you want to encrypt.
Here is the tricky part:
Most easy to use encryption algorithms like RSA, Blowfish, etc are private-key encryption algorithms, which means you use the same password for both encryption and decryption.
This makes for an interesting problem:
How do you encrypt your data on the client side using the same password you will use to decrypt it on the server side of things??? You need to store the password in Javascript somewhere in order to encrypt properly...
If a password is stored in Javascript...you just lost all security
There is the caveat in encrypting/decrypting data over an HTTP connection. You can do it, but there is almost no point...
However, I have considered the following technique in the past to circumvent this problem.
You have the user enter the password in a FORM password element and encrypt/decrypt using this dynamically provided password instead of hardcoded passwords visible to anyone who knows how to save a web page to their harddrive.
Again a problem arises: Can you request a user to enter a password each and every time you submit the encrypted string?
Cheers
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|