Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Master Coder
    Join Date
    Apr 2003
    in my house
    Thanked 201 Times in 197 Posts

    trying to get ajax to work with perl.

    Resolved: I don't now know why I couldn't get it to work. all ticketyboo now.

    I have a form with three textboxes. It calls another file (query.php), which queries the db and populates the textbox if there is a match after 4 chars have been entered. works fine in php but for the fact that it isn't inside my perl login page (containing an iframe with the script) and therefore is not within the server-side session.

    When I go the the form in a perl file, within the iframe, it won't work and I ask, if it might be because of a conflict between the two languages. There is a jquery script in the head of my file output so maybe the perl processor is requiring 'escapes' to make it work.

    1. is there a snippet of code, which can force the jquery file to have escapes as appropriate?
    2. the query file (in php format) requires the data from the textbox as part of the query string. I can't seem to check if this is being passed properly, when within the perl file.

    Really I don;t understand how perl may affect the php.

    $db = mysql_connect('localhost','user','pwd') or die(mysql_error());
    $box = mysql_real_escape_string($_GET['box']) or die (mysql_error()); // Get the query string box=
    $input = mysql_real_escape_string($_GET['input']); // get the query string input
    should this be changed in some way?

    I know I haven't given all the file details but I can. I just thought it would be a huge post if I had included it, which might have been too much.

    Last edited by bazz; 06-14-2009 at 01:12 AM.
    "The day you stop learning is the day you become obsolete"! - my late Dad.

    Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
    Useful MySQL resource
    Useful MySQL link

  • #2
    Senior Coder
    Join Date
    Mar 2006
    Thanked 39 Times in 38 Posts
    God bless America Bazz.... you should be a perl guru by now! Ticketyboo huh? I learned me a new word!


    Posting Permissions

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