to fetch data from database and pass in javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • preethikuppusamy
    New Member
    • Oct 2008
    • 2

    #1

    to fetch data from database and pass in javascript

    I have included banner images in an array and used settimeout fun to dislay it in my home page.
    Now i have included those banners in a table and now i have to fetch it from the table and include in js with settimeout fn .
    How do i pass the values from db to js function.
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Hi.

    You could use AJAX.

    Comment

    • preethikuppusamy
      New Member
      • Oct 2008
      • 2

      #3
      Originally posted by Atli
      Hi.

      You could use AJAX.
      Thankyou for replying.

      I have not used ajax.
      Can u give the sample coding for this task.

      Comment

      • Atli
        Recognized Expert Expert
        • Nov 2006
        • 5062

        #4
        All you need to know about AJAX, including sample code, is in that link.
        It would seem rather redundant to re-post it all here.

        Let us know if you run into any problems and we can try to help.

        Comment

        Working...