Feedback on: Creating 'Encoded' Name & Value Pairs
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Now if you could just add the perl
to go in the reverse direction -- to encode
the text before putting in into a link!
(wide grin)
Thanks for an extremely useful article!
---- Nick
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
This sounded obvious on looking back, but may not be. Always glad to hear suggestions like this one. I'll watch for opportunities to use it.
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Very good information, have been
wondering about this problem.
Worth:
Very worth reading
Comments:
Very new to Web development - did not fully understand everything I read but you can be sure that I have stolen the code and will play with it to figure it out. Clear examples like this make learning much more productive.
Thanks
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
There is 1 problem.
If you put a + in the field, it is not translated so on the server it will translate to a blank.
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
I've recently run into the problem of not being able to use Javascript-written cookies and ASP-written cookies interchangeably. I've used the encoding techniques you're describing in this article (Latin-1 hexadecimal), but when I try to open a Javascript cookie using ASP and parse out individual name-value pairs, I get nothing back.
How about an article on how to do this potentially very useful procedure?
Thanks,
Rob Watson
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
I don't know much about this stuff, I am still learning by trial and error, but I have a use for it already. I need to put a form on a page that will have some numbers filled in by the user, and then have some math done, and return an answer to the user. Thanks for a great article.
Worth:
Worth reading
Length:
Just right
Comments:
I liked the article, and found it interesting.
However, I would be interested in learning how to have the info. entered by the visitor be sent to and posted on a webpage in my site so others can view it. And each additional entry would be posted just below the last in a nice readable format.
Worth:
Worth reading
Comments:
There's an error in the scripts. They leave the plus symbol in the string. The plus symbol should be translated to %2b.
I marked this article worth reading because the information is correct.
Worth:
Very worth reading
Comments:
Folks!
Your site is simply great and makes part of my fav/bmrks! I've picked a lot from your scripts and appreciate your work. At 57 years I'm learning some scripting (JScript) and need guidance.
Thanks
Abe Moloi
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
We were asked for "HTML Post Method Simulation".
Have a look at:
http://www.javascripts.com/repository/script19617.html
It's not good but not bad either.
Worth:
Worth reading
Length:
Just right
Technical:
Just right
Comments:
Hello
You helped me a few steps more on my project I searched many days on the net but I am not done this why I am writing you .
And I would be very thankful if u answer me soon .
I like that is codes the URl so when a user select from the form different oiptions. My question would be how do I bring the user to the customied site .Like he selected from the options what he like to view on the next page via checkboxes and radio buttons so the form creates encoded Url but how to i force the browser to go to the right page ??? Do i need a form handler I been looking the last three days and nights and I find just mail forms handler. I write them my self loooks like the hole Internet works just on mail form handlers .Like I said I would be very happy you can tell me what I am looking for a select form handler or I dont know anymore ?!?
If you decide to send me help I thank you very much
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
I knew what I wanted to do - deliver words from one page to a feedback form on another page. I have all the html and perl books and the large "Using CGI" - none of which have any proper explanation of the GET method. Your page is very clear, answered all my questions, and seems to be an unique piece of work. Congratulations and many thanks - I can now get on with designing the web site!
Best wishes,
Warren
Worth:
Very worth reading
Comments:
thanks!
from,
manisha.
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
I'm just starting a detailed study of Regular Expressions & Pattern Matching. I'm finding that this is one of the most important concepts I'll ever learn.
Cheers,
-Mark
USA
Worth:
Very worth reading
Comments:
Do You use MacroMedia DreamWeaver?
Maybe u do maybe u don't...
anyway...I use DreamWeaver 3.0 to code 'flat' HTML pages. (Its a wysiwyg html editor)
DreamWeaver also allows you to add any features you like to the program using JavaScript - See Extending Dreamweaver (seperate documentation).
The 'query string tool' (described in the article here) would be very useful as an Extension to Dreamweaver-
Desired Functions / procedure:
Step1. Select text to be linked
Step2. A property inspector/ input box pops up.
Step3. Type in the URL of the page to be linked to.
Step4. Type in any Name Value pairs to append as a query string
Step 5. Click ok.
The selected text is then TAG'ed with the correctly encoded HREF.
Questions:
1.Has anyone made one yet, if so can i have a copy?
2.If not I'll do it myself- first i gotta learn 'DreamWeaver Extension JavaScript'.Let me know if you want a copy!
3.Does anyone wanna take it on as a little project and give me the extension code?
Cheers
Jack
Technical:
Just right
Comments:
I was wondering if you knew of any way to automate filling out a web form. The web form I'm trying to automate uses Javascript for its buttons, so there's no submit button. So I was trying to find out how to get around that with the POST method. Any help would be greatly appreciated.
Worth:
Very worth reading
Comments:
I thought you might like this bit of coding for the users that needed to decode spaces as + and can't use the hex equivelent.
function dcode(string) {
string = unescape(string);
string = replace(string,"+"," ");
return string;
}
function replace(string,text,by) {
// Replaces text with by in string
var strLength = string.length, txtLength = text.length;
if ((strLength == 0) || (txtLength == 0)) return string;
var i = string.indexOf(text);
if ((!i) && (text != string.substring(0,txtLength))) return string;
if (i == -1) return string;
var newstr = string.substring(0,i) + by;
if (i+txtLength < strLength)
newstr += replace(string.substring(i+txtLength,strLength),text,by);
return newstr;
}
I hope this is useful. The replace can be used for other things as well. Please let me know if this coes in hand.
John McGuire
BlackLight Systems Design
Worth:
Worth reading
Comments:
Encoding can be done using escape(). But the problem is when I try to retrieve data from the URL by Request.QueryString, some characters get garbled up and I get Exception.
e.g. Try encoding this and then again retrieving.
ブルシャリ×ブルシャリ
"×"turns into some garbage.
Can you help me out?
Worth:
Worth reading
Length:
Just right
Technical:
Not technical enough
Comments:
Unless I miss it, could you also cover the encoding of data before written out to the page. This is to prevent cross-site scripting. This includes 2 types:
1) Data written for rendering
2) Data written inside form value.
The item (2) needs to have the exact data if submit the form again. Also, javascript popup such as validation also must show correct user's perceived value, not encoded value.
In .net, there's HttpUtility.HtmlEncode function. I don't know one for Java.