Articles
Windows FAQ
Making your network more secure - Use a firewall - Windows Vista...
Making your network more secure - Run antivirus software on each...
User accounts FAQ - An unidentified program wants access to your...
Making your network more secure - General network security recom...
What is User Account Control? - Windows Vista Security - User ac...
Who's Online
15 user(s) are online (7 user(s) are browsing Forum)

Members: 0
Guests: 15

more...

Browsing this Thread:   1 Anonymous Users





unescape(), escape()
Just can't stay away
Joined:
2007/11/11 12:07
Group:
Registered Users
Posts: 100
Level : 9; EXP : 0
HP : 0 / 200
MP : 33 / 1192
Offline
unescape(), escape()

These are similar to the decodeURI() and encodeURI(), but escape() is used for only portions of a URI.


<script type="text/javascript">
var 
myvalue "Sir Walter Scott";
document.write("Original myvalue: "+myvalue);
document.write("<br />escaped: "+escape(myvalue));
document.write("<br />uri part: "&author="+escape(myvalue)+""");
</script>

If you use escape() for the whole URI... well bad things happen.
<script type="text/javascript">
var uri = "http://www.google.com/search?q=sonofusion Taleyarkhan"
document.write("Original uri: "+uri);
document.write("
escaped: "+escape(uri));
v/script>

Posted on: 11/6 15:44
Transfer the post to other applications Transfer






You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]


Copyright © 2009 FYIcenter.com
Search
Main Menu
Login
Username:

Password:


Lost Password?

Register now!