SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Aug 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    passing data bet`n frames using javascript

    Hey..plz check out my question below:-

    Say i`ve a treeview on my left frame and when i right-click on a node, context menu pops up and i click view/edit the content. Now i need to show the entire content of the particular file node on the multiline textbox on my right frame.
    i`ve written a menuItemSelect javascript function. In this, i need to write code to pass node ID or node text to the right frame. How do i do this using javascript?

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Assuming you have 2 frames, and want to access an element called "myDiv" in the the other frame:
    Code:
    var oDiv = parent.frames["nameOfOtherFrame"].document.getElementById("myDiv");


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •