Execute the code after reload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rengaraj
    New Member
    • Jan 2007
    • 168

    Execute the code after reload

    Dear Experts,
    In my html page i use an frame
    by clicking the button on right frame the left frame src should change.
    It changes but the statements after reload are not executed

    My Pbm
    How to execute script on reloaded page. after reloading....
    on a single click
    Please advice.
    Rengaraj.R.
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    could you please give an example of the code in question? how do you reload the page?

    kind regards

    Comment

    • rengaraj
      New Member
      • Jan 2007
      • 168

      #3
      Check Loaded or not ???

      Sir,
      I hav two frames left & right
      If i click an button on right frame
      the left frame url should be changed & the innerHTML of new url should be fetched...

      For this...
      how i can find the page has been loaded or not???
      Please Advice
      Rengaraj.R

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        you have to wait for the onload event of that page ... you may trigger something from the page that is to b loaded or poll for something that is initialized in the pages onload. alteratively you coud use an ajax-call to load the page ... this would work unless the pages are from different domains ...

        kind regards

        Comment

        • rengaraj
          New Member
          • Jan 2007
          • 168

          #5
          Cross Domain access

          Sir,
          i need cross domain access
          please giv me an demo.
          Advance Thanks
          Rengaraj

          Comment

          • gits
            Recognized Expert Moderator Expert
            • May 2007
            • 5388

            #6
            then you need some proxy mechanism like this one

            Comment

            • rengaraj
              New Member
              • Jan 2007
              • 168

              #7
              Sir,
              without using ajax Please suggest.
              I need to fetch the html code of iframe/frame webpage.
              Advance Thanks,
              Rengaraj

              Comment

              • gits
                Recognized Expert Moderator Expert
                • May 2007
                • 5388

                #8
                then it would be the same basic solution ... your webproxy needs to request the 'foreign' page and serve it to your app as one of yours ...

                Comment

                • rengaraj
                  New Member
                  • Jan 2007
                  • 168

                  #9
                  I got the solution

                  Thanks
                  I got the solution

                  Comment

                  Working...