php - How to take information on a left frame and update a text-field within the right frame? -


i need frames. basically, here's dilemma ... have created index page broken down 2 frames.

  • the left frame, has tree of directory user can select files from
  • the right frame, main content page. has text-field. let's call "file-path"

what when user clicks specific file on left frame, want grab information , put on right-frame within text-field.

i hope makes sense, if not , can go ahead , post more information? it's not simple want open file right-frame, know by:

<a href="file.jpg" target="rightframe"> 

... not sure how target text-box?

cheers!

edit

i'm using form element:

echo" ";

however, want text not button, i'd rather have text itself. can suggest something? can't do:

  1. button
  2. text ... makes text-field
  3. hidden ... can't see text-field

add handler (not sure this.text)

onclick="parent.rightframe.set_field(this.text)" 

and in right frame:

function set_field(s) {      $("#field").text(s);     return false; } 

Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -