Archive for September, 2006
using proxy settings in Ajax
but this only works for me when object is of type winhttp
Set objWinHttp = CreateObject("WinHttp.WinHttpRequest.5")
objWinHttp.Open "POST", strURL
objWinHttp.SetProxy 2, "proxy1:8080"
objWinHttp.SetCredentials "gooddomain\userid", "goodpassword", 1
objWinHttp.SetRequestHeader "CONTENT-TYPE", "application/x-www-form-urlencoded"
objWinHttp.SetTimeouts 30000, 30000, 30000, 30000
if Err.number <> 0 then strHTML = "There is a problem in reaching the Remote host. Please try again later, or contact the Content Manager if the problem persists. Error: " & Err.number & " " & Err.description & strURL & " " strHTML = strHTML & "Status: " & objWinHttp.Status & " " & objWinHttp.StatusText ‘ Get the text of the response. else strHTML = objWinHttp.ResponseText end if Set objWinHttp = Nothing ‘return the html to the calling program GlobalScreenScrapex = strHtml end Function
recently during a project i was facing some trouble, i had written a script that was working fine on IE but making no response or callback event on Firefox…
after alot of search a very little mistake was found by some one at mozilla development mailing list.
onreadystatechange spellings were all lower case while mine were Came case. 😉
woooo! now its working fine.
during my R&D i came up with alot of Ajax Options…it was Interesting…
I have tried Anthem.Net its good but easiness comes with limitatins but still i like it very much..
Next Came Dojo….i have just downloaded and seen its GUI its good and well structured.
Yahoo!’s Ui Library is another option too…
if any body new any other please tell me too.
i was Writing a WikiParser….i am also thinking about hosting it on www.codeplex.com
lets hope i will be able to do so. 🙂
some days ago I came across a problem during a project, i was trying to access Webservice from asp page that was hosted on another domain, but operation was "timed out". webservice was there you can call it you can review it, was working fine from DotNet. but when ever from asp/php it was not.
so after some research here is the remedy:
<add name="HttpGet" />
<add name="HttpPost" />
these line should be located in system.web tag of web.config.
according to Microsoft these lines are supposed to be already added to machine.config but in majority cases it is not.