Click here to Skip to main content
15,749,072 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: uploading and storing files on server with php Pin
Marc Firth4-Oct-09 22:16
Marc Firth4-Oct-09 22:16 
GeneralRe: uploading and storing files on server with php Pin
wartotojas5-Oct-09 6:01
wartotojas5-Oct-09 6:01 
GeneralRe: uploading and storing files on server with php Pin
Marc Firth5-Oct-09 21:59
Marc Firth5-Oct-09 21:59 
QuestionHELP! MySpace ID Pin
hifiger20044-Oct-09 5:46
hifiger20044-Oct-09 5:46 
AnswerRe: HELP! MySpace ID Pin
Christian Graus4-Oct-09 11:29
protectorChristian Graus4-Oct-09 11:29 
GeneralRe: HELP! MySpace ID Pin
hifiger20047-Oct-09 17:09
hifiger20047-Oct-09 17:09 
Question"Find Charlie!" .... or my .ASP vb script error :S Pin
MusicalGuy3-Oct-09 15:15
MusicalGuy3-Oct-09 15:15 
QuestionScriptResource.axd Pin
AndreFratelli3-Oct-09 7:33
AndreFratelli3-Oct-09 7:33 
I'm not sure this post fits this board, but ... =\

I'm writting a page that calls a webservice through javascript and, now, I'm getting an error from ScriptResource.axd. I have even tryed rewritting the code causing the problem, but the error is the same.

Error: i is not a function
Line: 5

JS Code
function apagar_utlz_m(id)
{
    var tabela = document.getElementById(id);
    var tbody = tabela.getElementsByTagName('tbody')[0];
    var linhas = tbody.getElementsByTagName('tr');
    var j, checked, codigo_nome, ano_pass, obj;
    
    for (j=0 ; j<linhas.length ; j++)
    {
        obj = linhas[j];
        
        checked = obj.childNodes[0].childNodes[0].checked;
        codigo_nome = obj.childNodes[1].childNodes[0].value;
        ano_pass = obj.childNodes[2].childNodes[0].value;
        
        if (checked)
        {
            function Sucesso(r)
            {
                if (!r) alert('Erro: não foi possível apagar a entrada');
                else
                {
                    if (id == 'utilizadores') selectUtilizadores();
                    else selectM();
                }
            }
            if (id == 'utilizadores') cnc.servidor.deleteUtilizador(codigo_nome, ano_pass, Sucesso, ErroChamada);
            else cnc.servidor.deleteM(codigo_nome, ano_pass, Sucesso, ErroChamada);
        }
    }
}


The WebService methods "deleteUtilizador" and "deleteM" are both called (changes are made to the DB!), but "Sucesso" never runs, so I'm assuming the problem is related to this call.

Can anybody help?

Best regards

Fratelli

QuestionAdding Reference from "Add Reference" dialogue box Pin
Member 42289252-Oct-09 6:11
Member 42289252-Oct-09 6:11 
AnswerRe: Adding Reference from "Add Reference" dialogue box Pin
Christian Graus2-Oct-09 22:50
protectorChristian Graus2-Oct-09 22:50 
QuestionCapture OCX Control Events in VBScript Pin
VikashGohil1-Oct-09 0:47
VikashGohil1-Oct-09 0:47 
AnswerRe: Capture OCX Control Events in VBScript Pin
Suresh Balakrishnan27-Oct-09 19:01
Suresh Balakrishnan27-Oct-09 19:01 
Questionhow to find and update the data dynamically [modified] Pin
N Balakumaran30-Sep-09 20:56
N Balakumaran30-Sep-09 20:56 
AnswerRe: how to find and update the data dynamically Pin
Christian Graus1-Oct-09 12:27
protectorChristian Graus1-Oct-09 12:27 
QuestionCaptcha Image on HTML by ASP code Pin
11Developer30-Sep-09 20:38
11Developer30-Sep-09 20:38 
AnswerRe: Captcha Image on HTML by ASP code Pin
Abhishek Sur30-Sep-09 22:52
professionalAbhishek Sur30-Sep-09 22:52 
GeneralRe: Captcha Image on HTML by ASP code Pin
Abhijit Jana30-Sep-09 23:10
professionalAbhijit Jana30-Sep-09 23:10 
GeneralRe: Captcha Image on HTML by ASP code Pin
Abhishek Sur1-Oct-09 6:21
professionalAbhishek Sur1-Oct-09 6:21 
GeneralRe: Captcha Image on HTML by ASP code Pin
11Developer1-Oct-09 0:22
11Developer1-Oct-09 0:22 
GeneralCan anybody tell me the solution .... Pin
11Developer1-Oct-09 1:56
11Developer1-Oct-09 1:56 
GeneralRe: Can anybody tell me the solution .... Pin
Vasudevan Deepak Kumar1-Oct-09 2:35
Vasudevan Deepak Kumar1-Oct-09 2:35 
GeneralRe: Can anybody tell me the solution .... Pin
Jörgen Andersson1-Oct-09 2:36
professionalJörgen Andersson1-Oct-09 2:36 
GeneralRe: Can anybody tell me the solution .... Pin
11Developer1-Oct-09 2:47
11Developer1-Oct-09 2:47 
AnswerRe: Captcha Image on HTML by ASP code Pin
Vasudevan Deepak Kumar1-Oct-09 2:35
Vasudevan Deepak Kumar1-Oct-09 2:35 
GeneralRe: Captcha Image on HTML by ASP code Pin
11Developer1-Oct-09 2:49
11Developer1-Oct-09 2:49 

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.