Loading ...
Sorry, an error occurred while loading the content.

Re: [in-phpug] getting session variable from an iframe

Expand Messages
  • Madesh waran
    Hai dude, u just declare div or span with an id in the index.htm and in the additem.php page (page loaded in iframe) assign the value u want by
    Message 1 of 4 , Apr 19 11:16 PM
    • 0 Attachment
      Hai dude,
      u just declare div or span with an id in the index.htm

      and in the additem.php page (page loaded in iframe) assign the value u want by

      parent.getElementById("span Id of ur parent").innerHTML = "your total or any html code u want";

      I hope dis will work.


      pannet1@... wrote: dear list,

      1. i have index.html page with "add item" button.

      2. i use an iframe to load the item detail table within this index.html <body>.

      3. in the (additem.php) page contained by the iframe, i calculate the
      total and assign it to a session variable $ _SESSION['total'].

      i need to know how to get this $_SESSION['total'] in the parent page
      (index.html) without reload or refresh. thanks in anticipation.

      best regards
      b karthick

      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com

      [Non-text portions of this message have been removed]






      ---------------------------------
      Check out what you're missing if you're not on Yahoo! Messenger

      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.