Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback: Creating 'Encoded' Name & Value Pairs

Feedback on: Creating 'Encoded' Name & Value Pairs

Sent by Nick Chase on April 09, 1999 at 16:32:16: - feedback #143

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



Sent by Don Ellis on April 13, 1999 at 09:31:13: - feedback #150

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.



Sent by Lasse Johansson on April 14, 1999 at 09:58:40: - feedback #155

Worth:
Very worth reading

Length:
Just right

Technical:
Just right

Comments:
Very good information, have been
wondering about this problem.




Sent by John Horne on April 14, 1999 at 11:44:53: - feedback #156

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



Sent by Marc Campforts on April 15, 1999 at 03:05:41: - feedback #158

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.



Sent by Robert Watson on April 15, 1999 at 09:36:20: - feedback #160

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




Sent by RL Crawford on April 15, 1999 at 11:29:07: - feedback #161

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.



Sent by JASON ROSEN on April 20, 1999 at 19:37:58: - feedback #168

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.



Sent by Jak Kulas on July 25, 1999 at 12:59:50: - feedback #324

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.



Sent by maurice mthombeni on July 30, 1999 at 02:16:39: - feedback #335

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



Sent by secURLinx on September 22, 1999 at 00:19:24: - feedback #480

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.





Sent by Vincent on January 12, 2000 at 17:56:50: - feedback #728

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



Sent by Warren Ward on April 24, 2000 at 15:11:59: - feedback #1135

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


Sent by patel manisha on July 12, 2000 at 15:24:33: - feedback #1486

Worth:
Very worth reading

Comments:
thanks!

from,
manisha.


Sent by Mark McVicker on January 14, 2001 at 17:10:59: - feedback #2243

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


Sent by JackFunkMasterFunkJack on April 03, 2001 at 08:40:20: - feedback #2580

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


Sent by Chalon Clemons on October 17, 2001 at 14:17:16: - feedback #3252

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.


Sent by John McGuire on January 20, 2002 at 04:08:52: - feedback #3505

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


Sent by Vrushali on October 08, 2002 at 02:54:24: - feedback #4204

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?


Sent by vd on Tuesday May 08, 2007 at 13:01:40 - feedback #4545

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.





©2018 Martin Webb