HI all,
i'm trying to use google chart API to make some charts in a website using ajax (don't what to reload the page). But i'm having a problem. I have to use POST to make the requests but i don't known if ajax allow this. For example:
var xmlhttp=new XMLHttpRequest();
xmlhttp.open("POST","http://chart.apis.google.com/chart?",true);
...
OK, I'm sorry if the tile of the question was unclear, and if you understand what I mean, please don't hesitate to help me think of a better one.
Anyway, I have a <input type="submit"> element for my form, and I want it to return the same URL as the URL of the page the element is on.
Currently, if I click the button, it takes me from /...
I have a form with a lot of textareas.
<textarea cols="30" rows="6" id="q1"></textarea>
<textarea cols="30" rows="6" id="q2"></textarea>
<textarea cols="30" rows="6" id="q3"></textarea>
...
<textarea cols="30" rows="6" id="q54"></textarea>
Don't ask why we need 54 questions.
I want to print them out but don't want to do it manually.
...
Simple one here
As I make a post request I wish to receive the header information of that post request
Say this is the information posted as in the request header
ApplicationId=13dcsf39-dsf4ec-4sc79-95csfd0-0a0215807a9e&RoleId=03sfe144c3-c4fsf0-45sfff-bf8sf0-92e222df084da7&RoleName=CGDESIGN&LoweredRoleName=cgdesign
I wish to get thi...
Well basically what the title says, when making an AJAX request with JavaScript. Does the method, i.e. GET / POST, need to be upper case? Thanks in advance.
Edit: Even a yes or no will suffice.
...
Hello All,
I'm trying read an array that was post from a html form
<input name="test[]" id="1" type="checkbox" value="1" />
<input name="test[]" id="2" type="checkbox" value="2" />
<input name="test[]" id="3" type="checkbox" value="3" />
<input name="test[]" id="4" type="checkbox" value="4" />
In php I know you can just access the da...
Sorry, this isn't really a programming question but it's for a program I am making. My program needs to be able to upload files via many methods including HTTP, and to develop HTTP functionality I need to have a web server to post too - but the concept is failing me.
I use Mac OS X Snow Leopard but also Windows 7 in Parallels for my dev...
When a POST request is processed, params[:id] returns the value of "id" stored in the form that was posted.
However I want to get the value stored in the url (query string).
def some_action
id = params[:id] # Gets id from here: /some_action?id=[VALUE] only when request.post? is false
if request.post?
# Do some stuff, can't get th...
I send POST request to the server, my login has a dot inside for ex:"Log.in",
POST /api/users/Log.in/albums/ HTTP/1.1
Content-Type: application/atom+xml; charset=utf-8; type=entry
Authorization: FimpToken realm="website.com", token="XXX"
Host: website.com
Content-Length: 255
...data...
Server respond:
HTTP/1.1 302 FOUND
Server: ngin...
Hey!
I have this code for the form:
<form class="myform" name="myform" method="POST" action="post.php">
<textarea id="mytextarea" name="mytextarea"></textarea>
<button>Share</button>
</form>
I also have this code for the page:
<div class="content">
<div class="message">That message</div>
<div class="info">Published 10/10/10 </div...
Hi all. I'm not so good on htaccess but was happy with what I had done so far until I noticed my $_post variables were not being processed because of the rewrite signiture within my htaccess file (SIGH)
My objective was to read the url and determine it's path and location from php and it's $_SERVER['request_uri'] method, which works fin...
I have a search page that allows the users to filter other users by various categories (age, gender, country, region, ethnicity, etc). The first time the search function is called it gets all the possible values for each category from the database. Just wondering though...
Is it better to POST this data back each time the page is re-loa...
Facebook API (Wall) Possible to let Facebook pick an image?
When you like a website you can enter the following URL:
http://www.facebook.com/share.php?u=(some url)&t=(some title) you will be brought to a page where a default image is showing and you can even browse through the images on the website to choose another (if available).
Thi...