www.webdeveloper.com
Results 1 to 3 of 3

Thread: JQUERY GET not working

  1. #1
    Join Date
    Jan 2014
    Posts
    10

    Question JQUERY GET not working

    HI ALL!!!

    I have 1 problem. if you can, please help me!

    in the first let me tell you that I have .htaccess file with code:

    Code:
    RewriteEngine on 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-l 
    RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
    As you see, the addressbar text must go in the index.php
    in the index.php I have some functions and in 1 function I have GET
    Code:
    jq.get('include/bla.php', function(result){
                        jq('<div/>', { id: 'dictitle', text: result }).appendTo('#middle');
                        jq('<form/>', { id: 'searchword', action: "", method: "post", autocomplete: "off" }).appendTo('#middle');
                        jq('<fieldset/>', { id:"filterfield" }).appendTo('#searchword');
                        jq('<input/>', { type: "text", id: "filter", value: "", placeholder: "Search Words" }).appendTo('#filterfield');
                        jq('<ol/>', { id: 'wordlist', class:"wordlist" }).appendTo('#middle');
                        var dataString2 = 'action=getwords';
                    });
    and in bla.php I have simple code

    Code:
    <?php echo 'bla';?>
    so as you see here is not wrong anything.

    but in div with id: dictitle it is writting some html tags as : <!Doctype html><html> and etc.

    here is the link of my site.
    as you see here, I have executed dictionary function and in this function I have this Jquery GET.

    So I do not understand what is the problem.
    please help me.

  2. #2
    Join Date
    Jan 2014
    Posts
    10
    Please help!
    I think the problem is in htaccess
    but I do not know how to edit them.

    Help! Help! Help!

  3. #3
    Join Date
    Mar 2012
    Posts
    1,565
    I'm not really into JavaScript, let alone JS frameworks, but as no one else has replied - here goes...

    1. I haven't the faintest idea what you are trying to achieve!

    2. If you do not know how to edit the htaccess code, why use it?

    You haven't really explained it enough...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles