This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60752
    
  65

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: 60752
    
  65

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
 
wood burning stoves
 
subject: can not send post request with includes ? %b & # with Prototype.js frame
 
Similar Threads
Prototype JS problem with RSH
Using a variable in the src attribute of frame
can't access iframe variable but can call iframe method
AJAX part in jsp is not functioning with IE 6.0
Can I use WS to connect to SAP BC?