1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Using Ajax on Pages causing issues!

Discussion in 'Styling and Customization Questions' started by Quiver, May 26, 2013.

  1. Quiver

    Quiver Active Member

    I am trying to use this:

    <script type='text/javascript'>
                function clearInput(e) {
                    if (e.cleared) { return; }
                    e.cleared = true;
                    e.value = '';
                    e.style.color = '#000';
                    var runningRequest = false;
                    var request;
                    function fetch (q) {
                        if(q.length < 2){
                            return false;
                        //Aborting running requests improves performance
                        request = $.post('',{
                            if (data) {
                                style = 'width:'+data*10+'%';
                            } else {
                                style = 'background: #ccc';
                            $('div#pagerank').html('<div style="'+style+'">'+data+'</div>');
                    /*if ($('input#q').val() <1) {
                                  //prompt user to type
                          } else {
    It's the JavaScript part of the script which works over AJAX.
    The script works but instead of loading what I want it loads a blank white page with my PublicityClerks ad in the top left corner of the screen. It appears to be conflicting with something. My guess is, AJAX on pages just doesn't work. Am I right or wrong? How can I get it to work?

    We're talking something like this: http://pagerank.deaduseful.com/
  2. Quiver

    Quiver Active Member

  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    "The requested page could not be found."
  4. Quiver

    Quiver Active Member

    Yes sorry, gave up on this in the end (for now).
    As I have more important projects to attend to.
    This AJAX issue was really starting to annoy me.
    You're seeing that error as I deleted the page. :p

Share This Page