TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Javascript, AJAX, E4X (http://www.talkphp.com/javascript-ajax-e4x/)
-   -   Functions dont work from included files. (http://www.talkphp.com/javascript-ajax-e4x/3167-functions-dont-work-included-files.html)

Orc 07-24-2008 02:55 AM

Functions dont work from included files.
 
I am using prototype, and I made a function that returns if an input is valid. Well firebug, said the response headers were fine.

But in my html/php file, it acts like the function doesn't exists

Code:

function ValidateInput( elem, a, m,  input_var, input )
{

               
                new Ajax.Request("../../ajax?a="+a+"&"+input_var+"="+input,
               
                method: m,
               
                onSuccess:function(transport)
                {
                       
                        $(elem).innerHTML = transport.responseText;
                       
                        return;
                       
                },
               
                onFailure: function(transport) {
                       
                        $(elem).innerHTML = "doesn't work";
                       
                        return;
                }
               
                );
               
       
       
}

my function, this doesnt work, yes the ajax.php exists, and yes I checked if ajax.php works.

Orc 07-24-2008 02:41 PM

Bump. (chars)

Orc 07-25-2008 11:22 AM

Bump, please help.... this is important.


All times are GMT. The time now is 06:51 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0