|
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!!!
|
|
|
|
|
|
I create buttons dynamically using:-
Button buttonKeyboard = new Button();
buttonKeyboard.Text = "Keyboard";
buttonKeyboard.ID = "buttonKeyboard" + rowCount.ToString();
buttonPH1.Controls.Add(buttonKeyboard);
// Add a spacer in the form of an HTML element
buttonPH1.Controls.Add(new LiteralControl(" "));
How do I assign an on-click event that will call a specific method.
Clueless
|
|
|
|
|
Most likely with buttonKeyboard.Click += new Eventhandler (etc) Not sure what event handler that would be, check out the VS.NET intellisense.
|
|
|
|
|
Hi
i have a web service and a web method .
this method doesnt return any thing and perform some task .but it consumes my time ( 1 minute )to do its job.How i can only call the method ( only send a message to do its job) to overcome this problem.
|
|
|
|
|
Please dont double post.
---
b { font-weight: normal; }
|
|
|
|
|
Examples taken here :
http://pear.php.net/manual/en/package.webservices.xml-rpc.examples.php
Client : Client.php
<?<br />
<br />
ini_set("include_path", 'D:\Program Files\XML_RPC\;'. ini_get("include_path"));<br />
<br />
require_once 'RPC.php';<br />
<br />
$input = 8;<br />
$params = array(new XML_RPC_Value($input, 'int'));<br />
$msg = new XML_RPC_Message('times2', $params);<br />
<br />
$cli = new XML_RPC_Client('xmlrpc.php', '');<br />
$resp = $cli->send($msg);<br />
<br />
if (!$resp) {<br />
echo '>Communication error: ' . $cli->errstr ;<br />
exit;<br />
}<br />
<br />
if (!$resp->faultCode()) {<br />
$val = $resp->value();<br />
echo $input . ' times 2 is ' . $val->scalarval();<br />
} else {<br />
<br />
echo 'Fault Code: ' . $resp->faultCode() . "\n";<br />
echo 'Fault Reason: ' . $resp->faultString() . "\n";<br />
}<br />
<br />
<br />
?><br />
Server : xmlrpc.php
<?<br />
<br />
ini_set("include_path", 'D:\Program Files\XML_RPC\;'. ini_get("include_path"));<br />
<br />
require_once 'Server.php';<br />
<br />
function returnTimes2($params) {<br />
$param = $params->getParam(0);<br />
<br />
if (!XML_RPC_Value::isValue($param)) {<br />
return $param;<br />
}<br />
<br />
$val = new XML_RPC_Value($param->scalarval() * 2, 'int'); <br />
return new XML_RPC_Response($val);<br />
}<br />
<br />
$server = new XML_RPC_Server(<br />
array(<br />
'times2' =><br />
array(<br />
'function' => 'returnTimes2'<br />
)<br />
)<br />
);<br />
<br />
?><br />
But when i run client.php it generates :
Communication error : Operation successfull
Whithout any retrieved code from server ...
But Why ?
|
|
|
|
|
Hello there, I am tring to get the current cursor position in textarea. I'd like to know How I can get the current cursor position ( Not the mouse cursor position) in the textarea? I tried but cannot find it in the document tree. In there a way to get that?
thank you very much in advance.
Bin
|
|
|
|
|
I believe what you are refering to is called the caret.
Anyways, you could possibly use the TextRange object???
HTH
It's frustrating being a genius and living the life of a moron!!!
|
|
|
|
|
I have just finished my first ever Wed Site, but not yet hosted it.
Was thinking of using KF Server to host the site on my home PC. Is this a good idear? Or would it be best to when I buy my domain name have it hosted on there sever.
The next question I have is regarding sending out e-mails (via my 'Contact Us' page).
I was going to use AspEmail, but looking at the documentation, what do I specifify for the following field?
Mail.Host = "smtp.mycompany.com" ' Required
My ISP is BTinternet.com, so should it be smtp.BTinternet.com?
Or do I install a mail server!
Any comments please.
|
|
|
|
|
If you use your home PC as a web server you will need a dynamic domain name, so that you can automatically change the IP number that the domain name points to whenever your IP number changes.
When sending mail you specify the same smtp server as you do in your mail program. You should have the address of the server in the information you got from your ISP.
---
b { font-weight: normal; }
|
|
|
|
|
Thanks for your post.
Just two more questions if you please.
1. Are dynamic domain names more difficult to get hold off. I was going to use www.noip.com to register one.
2. If I test out my Wed site on another PC on my LAN, with just hotmail availble, what would I specify for the smto server - the same as for the Gateway PC?
Many thanks,
grahamfff
|
|
|
|