Click here to Skip to main content
15,915,324 members
Home / Discussions / Web Development
   

Web Development

 
QuestionRTF Applet Pin
Maher Abu Zer5-Jul-06 22:06
professionalMaher Abu Zer5-Jul-06 22:06 
AnswerRe: RTF Applet Pin
theJazzyBrain5-Jul-06 23:00
theJazzyBrain5-Jul-06 23:00 
GeneralRe: RTF Applet [modified] Pin
Maher Abu Zer5-Jul-06 23:45
professionalMaher Abu Zer5-Jul-06 23:45 
GeneralRe: RTF Applet Pin
theJazzyBrain7-Jul-06 1:33
theJazzyBrain7-Jul-06 1:33 
QuestionThis is kinda noob for me to ask this but... [modified] Pin
Neo_Odin5-Jul-06 20:47
Neo_Odin5-Jul-06 20:47 
AnswerRe: This is kinda noob for me to ask this but... Pin
kanes5-Jul-06 21:11
kanes5-Jul-06 21:11 
QuestionQueryInterface for interface Microsoft.Office.Interop.Excel._Application failed Pin
kavithapuranik5-Jul-06 20:28
kavithapuranik5-Jul-06 20:28 
QuestionOO Javascript Pin
CoolASL5-Jul-06 20:09
CoolASL5-Jul-06 20:09 
Hi,
I am new to Object Oriented Javascript.

I am making a javascript "class" as:

function MyClass{
     this.ajaxObj = new uniAjax();
     
     this.Start = function(url){
           this.ajaxObj.request({'url': uri , 'func': this.GetResponse}, 'Resp');
     }

     this.GetResponse = function(resp){
            alert(resp);
            this.ProcessResponse(resp);
     }

     this.ProcessResponse = function(resp){
            alert(resp);
     }
}


This uses an AJAX framework (uniAjax) for fetching data from the server.
The callback function GetResponse is able to receive the response, but the problem is that since this method is called externally by the framework, the identity of this is lost. Meaning that, ProcessResponse() is no longer related to the current this object... and therefore it gives an error when called as this.ProcessResponse(resp).

Can anyone please please please please provide a solution for this.

Thanks in advance.


*** Who said nothing is impossible? I have been doing it for a long time ***

AnswerRe: OO Javascript Pin
Guffa5-Jul-06 22:05
Guffa5-Jul-06 22:05 
GeneralRe: OO Javascript Pin
CoolASL5-Jul-06 22:14
CoolASL5-Jul-06 22:14 
AnswerRe: OO Javascript Pin
Guffa5-Jul-06 23:36
Guffa5-Jul-06 23:36 
Questionproblems with getting Front Page 98’s hover buttons Pin
miss_aries5-Jul-06 19:55
miss_aries5-Jul-06 19:55 
QuestionFront Page 98 hover buttons problem..need help [modified] Pin
MiSs.colly_cool5-Jul-06 19:39
MiSs.colly_cool5-Jul-06 19:39 
QuestionProblem with hover buttons [modified] Pin
kanes5-Jul-06 19:26
kanes5-Jul-06 19:26 
AnswerRe: Problem with hover buttons Pin
Neo_Odin5-Jul-06 19:55
Neo_Odin5-Jul-06 19:55 
GeneralRe: Problem with hover buttons Pin
Luqme5-Jul-06 20:59
Luqme5-Jul-06 20:59 
QuestionWeb Service Deployment Pin
vikashparida5-Jul-06 11:46
vikashparida5-Jul-06 11:46 
QuestionInternet explore not showing images [modified] Pin
theprinc5-Jul-06 7:54
theprinc5-Jul-06 7:54 
AnswerRe: Internet explore not showing images Pin
Guffa5-Jul-06 9:17
Guffa5-Jul-06 9:17 
Questionproblem in capturin co-ordinates in IE with scroll bars Pin
navtejdhillon5-Jul-06 6:25
navtejdhillon5-Jul-06 6:25 
AnswerRe: problem in capturin co-ordinates in IE with scroll bars Pin
navtejdhillon5-Jul-06 6:47
navtejdhillon5-Jul-06 6:47 
QuestionClient info Pin
TintinV3ck5-Jul-06 3:24
TintinV3ck5-Jul-06 3:24 
AnswerRe: Client info Pin
Guffa5-Jul-06 4:11
Guffa5-Jul-06 4:11 
GeneralRe: Client info Pin
TintinV3ck5-Jul-06 20:18
TintinV3ck5-Jul-06 20:18 
QuestionDataGrid Binding through Ajax [modified] Pin
vipinkapoor5-Jul-06 1:17
vipinkapoor5-Jul-06 1:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.