Ajax and Javascript with PHP

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lak

    Ajax and Javascript with PHP

    Hi friends,
    I have to parse a XML file and when it is changed I need to change in
    the front end.
    If I use the settimeout() then it is working.
    But I don't what to use the settimeout() function.

    Is there any other way to do that?

  • Rider

    #2
    Re: Ajax and Javascript with PHP

    On Oct 6, 6:22 pm, lak <lakindi...@gma il.comwrote:
    Hi friends,
    I have to parse a XML file and when it is changed I need to change in
    the front end.
    If I use the settimeout() then it is working.
    But I don't what to use the settimeout() function.
    >
    Is there any other way to do that?
    It will bettre if ur write your question little descriptive.
    So that we can try to answer it.

    --------------------------------------------

    Comment

    • lak

      #3
      Re: Ajax and Javascript with PHP

      On Oct 7, 1:10 pm, Rider <shaha...@gmail .comwrote:
      On Oct 6, 6:22 pm, lak <lakindi...@gma il.comwrote:
      >
      Hi friends,
      I have to parse a XML file and when it is changed I need to change in
      the front end.
      If I use the settimeout() then it is working.
      But I don't what to use the settimeout() function.
      >
      Is there any other way to do that?
      >
      It will bettre if ur write your question little descriptive.
      So that we can try to answer it.
      >
      --------------------------------------------http://phpinterviewans wers.blogspot.c om/
      I am having an XML file that contains some records.
      I need to parse that file and display the records in the form of
      table.
      If I change the file, i.e. if I modified some contents in the XML
      file, that needs to be updated in the table automatically.

      For that I used the settimeout(Ajax func,1000). So this will call the
      ajax function and from the Ajax function I am getting the updated
      content.

      But I don't want to use the settimeout() function.

      Is there any other way?

      Comment

      • Jerry Stuckle

        #4
        Re: Ajax and Javascript with PHP

        lak wrote:
        On Oct 7, 1:10 pm, Rider <shaha...@gmail .comwrote:
        >On Oct 6, 6:22 pm, lak <lakindi...@gma il.comwrote:
        >>
        >>Hi friends,
        >>I have to parse a XML file and when it is changed I need to change in
        >>the front end.
        >>If I use the settimeout() then it is working.
        >>But I don't what to use the settimeout() function.
        >>Is there any other way to do that?
        >It will bettre if ur write your question little descriptive.
        >So that we can try to answer it.
        >>
        >--------------------------------------------http://phpinterviewans wers.blogspot.c om/
        >
        I am having an XML file that contains some records.
        I need to parse that file and display the records in the form of
        table.
        If I change the file, i.e. if I modified some contents in the XML
        file, that needs to be updated in the table automatically.
        >
        For that I used the settimeout(Ajax func,1000). So this will call the
        ajax function and from the Ajax function I am getting the updated
        content.
        >
        But I don't want to use the settimeout() function.
        >
        Is there any other way?
        >
        Not in PHP. PHP is server side, and you need to have something pull
        from the client side.

        Ajax will work, as you found, and you'll get a better result for Ajax
        questions in comp.lang.javas cript. You can also use other client-side
        programming such as flash or java applets.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • sheldonlg

          #5
          Re: Ajax and Javascript with PHP

          lak wrote:
          On Oct 7, 1:10 pm, Rider <shaha...@gmail .comwrote:
          >On Oct 6, 6:22 pm, lak <lakindi...@gma il.comwrote:
          >>
          >>Hi friends,
          >>I have to parse a XML file and when it is changed I need to change in
          >>the front end.
          >>If I use the settimeout() then it is working.
          >>But I don't what to use the settimeout() function.
          >>Is there any other way to do that?
          >It will bettre if ur write your question little descriptive.
          >So that we can try to answer it.
          >>
          >--------------------------------------------http://phpinterviewans wers.blogspot.c om/
          >
          I am having an XML file that contains some records.
          I need to parse that file and display the records in the form of
          table.
          If I change the file, i.e. if I modified some contents in the XML
          file, that needs to be updated in the table automatically.
          >
          For that I used the settimeout(Ajax func,1000). So this will call the
          ajax function and from the Ajax function I am getting the updated
          content.
          >
          But I don't want to use the settimeout() function.
          >
          Is there any other way?
          What do you have against settimeout?

          Comment

          Working...