|
Thanks for the suggestion.
I resolved it this way ... but it's strange for me that he cursor disappears when the user makes a keystroke ...
|
|
|
|
|
It is a user setting. In the control panel, under mouse properties, pointer options tab, there is an option to hide the mouse pointer while typing.
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Hi All,
i am posting one url to server and expecting some meaningful data in response but i am getting one dummy xml:
<<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><GenerateSearchResponse xmlns="http://intuitivesystems"><GenerateSearchResult><SearchMode>Hotel</SearchMode><PropertyCount>135</PropertyCount><FlightCount>0</FlightCount><TotalFlightCount>0</TotalFlightCount></GenerateSearchResult></GenerateSearchResponse></soap:Body></soap:Envelope>>
Can anyone tell me that if status of the request is 200 then the response which i get will surely be correct.
and the code which i am using is:
strurl = "http://www.lowcostholidays.com/webservices/search.asmx"
xmlHttp.Open "POST", strurl, False
xmlHttp.setRequestHeader("Accept", "*/*")
xmlHttp.setRequestHeader"Referer", "http://www.lowcostholidays.com") xmlHttp.setRequestHeader("Content-Type", "text/xml")
xmlHttp.setRequestHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 1.1.4322; .NET CLR 3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)")
xmlHttp.setRequestHeader("Host", "www.lowcostholidays.com")
xmlHttp.setRequestHeader("Connection", "Keep-Alive")
xmlHttp.setRequestHeader("Cache-Control", "no-cache")
xmlHttp.setRequestHeader("Cookie", strCookie(it))
xmlHttp.send (strpostdata)
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
What you want to know...?
If you want to confirm that is 200 means correct response,then yes ,as far as i m concerned (since i m using the same in my script) 200 means the same.
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
Actually i am expecting view source of a page in response of the request but i am getting some xml which i shown in my question.....
i am aware of the fact that 200 means success but i am not sure that if status is 200 then the server will give you proper response...
means is there any othe thing which i missed in setting header or something else in my code which can cause improper response.....
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
Have you expected html data in response...??
Try setting content type as "text/html" instead of "text/xml" ,hope this will we helpful.
It's not enough to be the best, when you have capability to be great....
|
|
|
|
|
Why do you think that's 'dummy' XML? It looks like a perfectly adequate web service response to me. What are you expecting it to return?
Ash_VCPP wrote: Can anyone tell me that if status of the request is 200 then the response which i get will surely be correct.
A status of 200 means that the server believes it serviced your request suitably and returned the information you wanted. So from that view, yes it means correctness. Of course, whether you were asking for the right thing is another matter.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks for the reply.....So now it seems that i must be asking for something wrong from the server, I think i need to look after urls which i am posting to server.
Thanks A Ton
Ash_VCPP
walking over water is just knowing where the stones are.....
|
|
|
|
|
I have a stored procedure which inserts data to table and returns id of inserted data.
When I tried to execute procedure using CRecordset open method , i got exception because recordsets can only do selection (readonly).
But I saw that Addnew and Update methodes can be used to ınsert new data using recordset.
Is there any workaround for open method to execute inserts?
|
|
|
|
|
Bilge Kaan wrote: i got exception because recordsets can only do selection (readonly).
Take a look at the parameter dwOptions of CRecordset::Open[^]. I'm suspecting that you're probably opening it with CRecordset::readOnly flag, while you must be opening it with CRecordset::none or CRecordset::appendOnly (depending on your needs)
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Have you seen this or this?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Hi ,
I have a control variable for ComboBox in Dialogbased application....ie
CComboBox m_Combo;
now when im doing..
m_Combo.SetWindowText(_T("Test"));
UpdateData(FALSE);
the above line of code is not changing the combo selected item to Test where as Test
is one of the item in ComboBoxList..
|
|
|
|
|
Firstly, you don't need to use UpdateData() because you're already using a control variable (which means that you're directly operating on the control itself). Next, CComboBox should have a member, something like AddString() , which is what you should be using to add a new string to it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
i don"t want add a new item but i want to display the desired item which is among the list of items in comboBox...
|
|
|
|
|
|
The correct answer for such question is "read the fine manual" aka RTFM
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Rajesh R Subramanian wrote: By the way, such things are documented these days!
Please don't tell the secrets of the smart ass developers.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
So, not only you're lazy, won't buy a book, but you've got multiple logins for CP. I just received this *same* rubbish from p_1960 (the poster below AKA YOU) as another reply. Now, I see that is deleted.
Can you explain?
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
sorry for that actually this was my previous ID and as i forgot my password i have created one more ..anyway ill use only one...
|
|
|
|
|
pradeep455 wrote: sorry for that actually this was my previous ID and as i forgot my password i have created one more ..anyway ill use only one...
WTF are you talking about? Both IDs have been around for 3 to 4 months and you've been consistently posting messages (100+) from both and you want me to believe your bullshit that you forgot the password and such nonsense, even after you've posted stuff from both IDs a few hours back?!
You're humiliating yourself. I shall not be interested in talking to you any more.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Poor guy, he isn't aware of your memory strength.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CComboBox::SelectString
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
This is very straight forward.
You should try something before posting.
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
Yes..It's not something to be asked..
It's not enough to be the best, when you have capability to be great....
|
|
|
|