| View previous topic :: View next topic |
| Author |
Message |
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Why do people use XMLHttpRequest when creating a new script object and appending it to the body in some cases seems so much natural? |
| |
|
|
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
| I don't understand what you're asking |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| What i'm asking is what's the for/against on using XmlHttpRequest versus something like var script = document.createElement("script"); script.src = "somefile.js.php?info=abc&param=xyz"; document.body.appendChild(script); |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
You can't do that, for one.
Security mechanisms prevent it |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
Why not?
No they don't
I've done it |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
Because that would open up a huge can of cannibalistic worms
Okay, show me. |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| Erm. where? |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
| Wherever you did it |
| |
|
|
ovigo22
Joined: 15 May 2006 Posts: 130
|
| On my private intranet... |
| |
|
|
plantino
Joined: 13 May 2006 Posts: 96
|
| Ha |
| |
|
|
| Page 1 of 2 |
Goto page 1, 2 Next |
|