Thanks Canabeez. I will study JSON and try it.
I download JSONRequest.js, but for JSON.js, I cannot find it. Any ideas?
BTY, i want to use SSL to validate username and password.
User Profile
Collapse
-
Use Ajax to submit a HTTPS request
Can we use AJAX to submit a https request in a http page?
E.g.
1. Open a page: http://localhost/test.html.
test.html code:
...Code:<html> <head> <script src="script/sys.js" language="JavaScript" type="text/javascript"></script> <script src="script/prototype.js" language="JavaScript" type="text/javascript"></script>
-
How to cancel the select element's default event in firefox
for the select element, if use click the left arrow key, then the select index will be changed, I want to cancel this default event, how can I do?
...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Untitled
-
muiz123 replied to How to get the object's position(top,left) when the css style has position:relative?in JavascriptHi, johny10151981.
The updated script doesn't work, but you can try the below one: I use a new method in this script: getBoundingClie ntRect, it seems working fine both firefox and IE. (BTY, the script I posted just now, it works in firefox, but not IE)
...Code:<html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html;Leave a comment:
-
muiz123 replied to How to get the object's position(top,left) when the css style has position:relative?in JavascriptI updated my test scripts:
...Code:<html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript"> function getPosition(obj){ var topValue = 0, leftValue = 0; while (obj) {Leave a comment:
-
muiz123 replied to How to get the object's position(top,left) when the css style has position:relative?in Javascripthi, johny, thanks for your reply!
I use your function before, and it doesn't work in IE. You can test the following code:
...Code:<html> <head> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script type="text/javascript"> function getPosition(obj){ var topValue = 0, leftValueLeave a comment:
-
muiz123 replied to How to get the object's position(top,left) when the css style has position:relative?in JavascriptTo: johny10151981
the problem is that I cannot get the really position if I set the css style position to relative....Leave a comment:
-
muiz123 started a topic How to get the object's position(top,left) when the css style has position:relative?in JavascriptHow to get the object's position(top,left) when the css style has position:relative?
I study http://www.javascripttoolbox.com/lib...tion/index.php source and its doesn't work fine for the following code: (I hope both IE and firefox are working well)
...Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> <html> <head> <title>Test</title> <meta http-equiv="Content-Type"
No activity results to display
Show More
Leave a comment: