On 3/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 3/11/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
> >
> > Yes but you have to create an object and assign it to your "aaa" var
> > first,
> > before assigning a variable value such as "bbb"
> >
> > Try
> > var aaa = {};
> >
> > Ni
Frank, I am sorry you took time checking this. I guess, this
recommendation "Optimally, the reply should be to the thread started
by the original question posting, and should have 'FIXED', 'RESOLVED'
or an equally obvious tag in the subject line." from
http://www.catb.org/~esr/faqs/smart-questions.
Weird, I can't explain that. I just did this as a test:
xhr = null;
function test() {
if (window.XMLHttpRequest) {
xhr = new XMLHttpRequest();
} else {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
xhr.onreadystatechange = handler;
xhr.open("post", "test.h
Resolved. Sorry to type the question before searching thoroughly. For
POST request I had to set content-type header:
ajaxRequest.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded");
Michael.
On 3/11/06, Michael Jouravlev <[EMAIL PROTECTED]> wrote:
> I am cleaning up my Javascr
Thanks, Frank. I guess I need this book :) Before I get it, allow me
one more question.
I have a working XHR using GET (target is full URL with query params):
ajaxRequest.open("GET", target, true);
ajaxRequest.send(null);
Now I want to switch to POST (url is base URL, params contain request
The Manning AJAX In Action book has an appendix that covers a great many
of these useful techniques. Even if you have zero interest in AJAX, I
haven't seen many books or articles that covers Javascript as well as
this one. I consider myself fairly well-versed in Javascript, and even
I picked
On 3/11/06, Craig McClanahan <[EMAIL PROTECTED]> wrote:
> On 3/11/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
> >
> > Yes but you have to create an object and assign it to your "aaa" var
> > first,
> > before assigning a variable value such as "bbb"
> >
> > Try
> > var aaa = {};
> >
> > Ni
On 3/11/06, Niall Pemberton <[EMAIL PROTECTED]> wrote:
>
> Yes but you have to create an object and assign it to your "aaa" var
> first,
> before assigning a variable value such as "bbb"
>
> Try
> var aaa = {};
>
> Niall
I figured out how to do this by reading the beginning of the
dojo.js.u
Yes but you have to create an object and assign it to your "aaa" var first,
before assigning a variable value such as "bbb"
Try
var aaa = {};
Niall
- Original Message -
From: "Michael Jouravlev" <[EMAIL PROTECTED]>
Sent: Saturday, March 11, 2006 8:34 AM
I am cleaning up my Javas
I am cleaning up my Javascript code. First I made all functions having
prefix, so they won't mix with others' functions. Then I noticed that
DOJO uses one global variable dojo, and defines everything including
functions inside it. I thought that was cool, and tried it myself, but
it does not work.
10 matches
Mail list logo