aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes can not send post request with includes ? %b & #  with Prototype.js frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "can not send post request with includes ? %b & #  with Prototype.js frame" Watch "can not send post request with includes ? %b & #  with Prototype.js frame" New topic
Author

can not send post request with includes ? %b & # with Prototype.js frame

kaderjan wushouer
Greenhorn

Joined: May 30, 2006
Posts: 8
hi all I used Prototype.js ajax frame to send request which include ? # &,
how can I send it? is there any sulotion?

******code**********************************
fucntion postBlog(blog_content){
var bc=document.getElementById(blog_content).value;
var p="action=postBlog&bc="+bc;
var callback=fnBlogEditCallBack;
new Ajax.Request("Updater",{method: "post",parameters :p ,onComplete:callback});
}
***********************************
[ April 15, 2008: Message edited by: kaderjan wushouer ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

Please be sure to click 'disable similes' when posting code, so your code doesn't look like


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61419
    
  67

If you are going to build the query string yourself, you must be sure to URL-encode the names and values.

But it's best just to let Prototype do the work for you. Specify the parameters as an object hash and Prototype will correctly build the query string:
kaderjan wushouer
Greenhorn

Joined: May 30, 2006
Posts: 8
thank you so much bro...this problem takes me long time to slove.and do you know where did you get it?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Hey sort of wrote a book on it! Click on the link in his signature for books by Bear.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can not send post request with includes ? %b & # with Prototype.js frame