Home News Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | USB Swap Shop

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Computers & IT > General IT Discussion
Register FAQ Community Calendar

XMLHttpRequest
Reply
 
Thread Tools
Old 25-10-2007, 13:07   #1
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
XMLHttpRequest

Ok, I'm stumped - and maybe someone here will know.

I've written a simple XMLRPC client in javascript, using XMLHttpRequest - and this works, I can contact the server, make an RPC, and get a result back - hurrah.

Now my problem comes from trying to pass in a cookie into the request

I do
Code:
request.setRequestHeader('Cookie','aParam=aValue');
which works in Firefox - however in IE7, it doesn't. There used to be a bug where you had to set the cookie twice for it to register in IE, but that doesn't work here.
I'm not getting an error, the cookies just aren't being passed through to the server.
I've tried the ActiveX version of XMLHttpRequest, as well as the new native version in IE7 - both have the same result - I've googled a fair bit but haven't found any answers....
Mr_love_monkey is offline   Reply With Quote
Advertisement
Old 25-10-2007, 15:01   #2
Acathla
Inactive
 
Join Date: Jun 2003
Posts: 1,354
Acathla has reached the bronze age
Acathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze age
Re: XMLHttpRequest

The cookie bug in xmlDOM ignores the first command of setRequestHeader and as far as I know, I used the format as below - not with brackets. Dunno if that makes any difference at all but maybe worth a try?

request.setRequestHeader "Cookie", "aParam=aValue"
request.setRequestHeader "Cookie", "aParam=aValue"

Aren't you like supposed to use Set-Cookie now anyway?
Acathla is offline   Reply With Quote
Old 25-10-2007, 15:10   #3
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: XMLHttpRequest

Quote:
Originally Posted by Acathla View Post
The cookie bug in xmlDOM ignores the first command of setRequestHeader and as far as I know, I used the format as below - not with brackets. Dunno if that makes any difference at all but maybe worth a try?

request.setRequestHeader "Cookie", "aParam=aValue"
request.setRequestHeader "Cookie", "aParam=aValue"

Aren't you like supposed to use Set-Cookie now anyway?
That's not javascript though is it? - probably vbscript.
And Set-cookie is done on the server side, whereas I'm passing it into an xmlhttprequest.
Mr_love_monkey is offline   Reply With Quote
Old 25-10-2007, 16:17   #4
Acathla
Inactive
 
Join Date: Jun 2003
Posts: 1,354
Acathla has reached the bronze age
Acathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze ageAcathla has reached the bronze age
Re: XMLHttpRequest

oh yeah doh. i forgot i code in vbscript )

if i come across anything I'll let you know.
Acathla is offline   Reply With Quote
Old 25-10-2007, 16:18   #5
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: XMLHttpRequest

That's the precise trouble with all of these niche Client-Side languages!!!
Graham M is offline   Reply With Quote
Old 25-10-2007, 16:21   #6
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: XMLHttpRequest

Quote:
Originally Posted by Zeph View Post
That's the precise trouble with all of these niche Client-Side languages!!!
I'd hardly call javascript (or vbscript) a niche language...
Mr_love_monkey is offline   Reply With Quote
Old 25-10-2007, 16:21   #7
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: XMLHttpRequest

They are! They have their own little niches with their own niche users, like yourselves OK perhaps going a bit overboard calling Javascript a niche language, but I know of many more Javascript coders than I do VB?
Graham M is offline   Reply With Quote
Old 25-10-2007, 16:30   #8
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: XMLHttpRequest

Quote:
Originally Posted by Zeph View Post
They are! They have their own little niches with their own niche users, like yourselves OK perhaps going a bit overboard calling Javascript a niche language, but I know of many more Javascript coders than I do VB?
certainly there's less vbscript people out there now, but a lot of places do still use vbscript.
Mr_love_monkey is offline   Reply With Quote
Old 25-10-2007, 16:32   #9
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: XMLHttpRequest

Does it have any advantages over JScript?
Graham M is offline   Reply With Quote
Old 25-10-2007, 16:57   #10
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: XMLHttpRequest

Quote:
Originally Posted by Zeph View Post
Does it have any advantages over JScript?
personally I don't think it does, on the web side of things - especially since not all browsers support it - but I'm sure someone will disagree with me

Personally I've never been a big fan of it, since I learnt javascript first, and got exposed to vbscript through a rather nasty project involving web based version control - but as I say, lots of people still use it
Mr_love_monkey is offline   Reply With Quote
Old 25-10-2007, 19:17   #11
Hugh
laeva recumbens anguis
Cable Forum Mod
 
Hugh's Avatar
 
Join Date: Jun 2006
Age: 69
Services: Premiere Collection
Posts: 43,917
Hugh has a golden auraHugh has a golden auraHugh has a golden aura
Hugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden aura
Re: XMLHttpRequest

"Danger, Will Robinson!"

“Warning! Warning! Geeks in immediate vicinity” ........

[img]Download Failed (1)[/img]
__________________
Thank you for calling the Abyss.
If you have called to scream, please press 1 to be transferred to the Void, or press 2 to begin your stare.

If my post is in bold and this colour, it's a Moderator Request.
Hugh is online now   Reply With Quote
Old 25-10-2007, 19:18   #12
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: XMLHttpRequest

Without Geeks you'd still be carrying stuff rather than using one of those handy "WHEEL" devices :p
Graham M is offline   Reply With Quote
Old 25-10-2007, 19:21   #13
Hugh
laeva recumbens anguis
Cable Forum Mod
 
Hugh's Avatar
 
Join Date: Jun 2006
Age: 69
Services: Premiere Collection
Posts: 43,917
Hugh has a golden auraHugh has a golden auraHugh has a golden aura
Hugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden auraHugh has a golden aura
Re: XMLHttpRequest

Quote:
Originally Posted by Zeph View Post
Without Geeks you'd still be carrying stuff rather than using one of those handy "WHEEL" devices :p
You're confusing geeks with engineers....


btw, I am in charge of 135 geeks, so I know of what I speak.....
__________________
Thank you for calling the Abyss.
If you have called to scream, please press 1 to be transferred to the Void, or press 2 to begin your stare.

If my post is in bold and this colour, it's a Moderator Request.
Hugh is online now   Reply With Quote
Old 25-10-2007, 19:28   #14
Graham M
-
 
Graham M's Avatar
 
Join Date: Jul 2003
Location: Poole, Dorset
Age: 40
Services: FreeSat+ Tivo V-Box VM 60MBit
Posts: 13,365
Graham M has a pair of shiny starsGraham M has a pair of shiny stars
Graham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny starsGraham M has a pair of shiny stars
Send a message via MSN to Graham M Send a message via Yahoo to Graham M
Re: XMLHttpRequest

Engineers are just a subclass of geek
Graham M is offline   Reply With Quote
Old 25-10-2007, 22:16   #15
Mr_love_monkey
Inactive
 
Mr_love_monkey's Avatar
 
Join Date: Jun 2003
Location: London way
Age: 49
Services: Sarcasm
Posts: 8,376
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Mr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny starsMr_love_monkey has a pair of shiny stars
Re: XMLHttpRequest

Quote:
Originally Posted by foreverwar View Post
"Danger, Will Robinson!"

“Warning! Warning! Geeks in immediate vicinity” ........

Shut yer face!
Mr_love_monkey is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 19:02.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are Cable Forum