MySql DB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Deepan - M.Sc(SE) - 03MW06

    MySql DB

    Is it possible to use MySql DB inside a javascript function? If so can
    anyone show me with some help.

    Thanks,
    Deepan
  • Evertjan.

    #2
    Re: MySql DB

    Deepan - M.Sc(SE) - 03MW06 wrote on 07 mrt 2008 in comp.lang.javas cript:
    Is it possible to use MySql DB inside a javascript function? If so can
    anyone show me with some help.
    Cientside No, methinks.

    Serverside under ASP, yes, I heard.

    --
    Evertjan.
    The Netherlands.
    (Please change the x'es to dots in my emailaddress)

    Comment

    • The Natural Philosopher

      #3
      Re: MySql DB

      Deepan - M.Sc(SE) - 03MW06 wrote:
      Is it possible to use MySql DB inside a javascript function? If so can
      anyone show me with some help.
      >
      Thanks,
      Deepan
      Dunno. You would need to open a socket back to the server on which MySQL
      resides.

      deeply dangerous practice.

      Use serverside php instead.

      Comment

      • Tim Streater

        #4
        Re: MySql DB

        In article
        <b51cea01-0217-4605-a25b-4a376eed461f@u1 0g2000prn.googl egroups.com>,
        "Deepan - M.Sc(SE) - 03MW06" <deepan.17@gmai l.comwrote:
        Is it possible to use MySql DB inside a javascript function? If so can
        anyone show me with some help.
        You can do this indirectly by using HTTPRequest. You can do this from
        within JavaScript and have a script run on the server which can query
        your database and return the results as a string. Anything you output in
        the script (e.g. via echo with PHP) gets returned to your Javascript. I
        tend to structure the string on the server side so it's easily parsed
        into an array for JavaScript use.

        By the way why are you posting from Google? I normally filter all Google
        posts out.

        Comment

        • sheldonlg

          #5
          Re: MySql DB

          Deepan - M.Sc(SE) - 03MW06 wrote:
          Is it possible to use MySql DB inside a javascript function? If so can
          anyone show me with some help.
          >
          Thanks,
          Deepan
          You need AJAX. Basically you would be sending a request to the server
          and have a script there query the DB and return the information to you.

          Comment

          • Deepan - M.Sc(SE) - 03MW06

            #6
            Re: MySql DB

            On Mar 7, 5:45 pm, sheldonlg <sheldonlgwrote :
            Deepan - M.Sc(SE) - 03MW06 wrote:
            >
            Is it possible to use MySql DB inside a javascript function? If so can
            anyone show me with some help.
            >
            Thanks,
            Deepan
            >
            You need AJAX. Basically you would be sending a request to the server
            and have a script there query the DB and return the information to you.
            Can you explain it to me in a brief way. With some examples.

            Thanks,
            Deepan

            Comment

            Working...