passing parameters/scope problem - cannot retain data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NewGuy
    New Member
    • Nov 2006
    • 14

    passing parameters/scope problem - cannot retain data

    This is probably an easy task but I can't find an example.

    Heres what I'm trying to do.

    1 page
    <html>
    <iframe src="small.html " frameborder="0" width="800" height="290">
    </iframe>
    </html>


    OPENS small.html (Page 2) and has a text box for user input.

    Input your message:
    <input type="text" name="Part Number" value="11111" size="20">

    THEN after user has typed something they hit(triggered) a button
    <input type="text" value="Submit" />

    WHICH calls some.html(page 3)
    <form action="some.ht ml" method="get">


    some.html is generic and pops up.
    How do I get the text that was entered in by the user from the
    small.html(page 2)

    ps.once this is accomplished how to I send data(text) back from page 3 to page 2?

    This is the NewGuy so any code would be great.
    Thanks.
  • NewGuy
    New Member
    • Nov 2006
    • 14

    #2
    scope problems

    I open an HTML doc (call it A)

    This doc. has an IFrame (call it B)in it that contains a scrolling list.
    <iFrame src="ScollList. html" id = "Scroll"
    name = "Scroll"
    width="950"
    height="290"
    scrolling = "no"
    frameborder="1"
    marginwidth= "0"
    marginheisght = "1">


    The user selects to modify the scroll list and calls another HTML (call it C) doc and enters in some data.

    After the user has entered in the data and hit the OK button.

    The scroll list will be updated.

    Everything seems to be ready except for the fact that I am losing the values in my variables.

    The scroll list is an array of strings. when the list gets ready to update I have to call .length and add one to it for the size of the list. The list is filled dynamically and by the time I get back to doc A the list.length is 0.


    recap:

    doc A calls doc B which contains the list for the Iframe called in doc A.

    The user opens doc C and inputs data. The data is passed to doc A(through JS) and the list is empty. The only thing left is the update from the user in the list.

    Stumped can't see and don't have another set of eyes.

    Thanks for any help.

    Comment

    • NewGuy
      New Member
      • Nov 2006
      • 14

      #3
      cannot retain data

      I have an Iframe that gets created in a HTML doc.

      The iFrame document uses its own JavaScript and CSS to create a scroll list.

      In the same doc. that the iFrame is created in the user can make selections and a different JavaScripting page generates a window.

      The new window allows the user to enter in data. I need to pass that data to the iFrame to update it.

      Does anyone have or know where to find an example of this.

      The problem I'm getting is that the Array/list of data loses scope when I try to update the list. I end up with no data in the Array/list to add the new data too.

      Thank you

      Comment

      Working...