473,387 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

passing parameters/scope problem - cannot retain data

14
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.html" 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.
Nov 16 '06 #1
2 2013
NewGuy
14
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.
Nov 30 '06 #2
NewGuy
14
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
Dec 1 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: domeceo | last post by:
can anyone tell me why I cannot pass values in a setTimeout function whenever I use this function it says "menu is undefined" after th alert. function imgOff(menu, num) { if (document.images) {...
6
by: Garma | last post by:
According to what I have learnt so far, instantiating global objects should be the last resort. Is there any reasons why so? Sometimes some objects or their pointers have to be shared among...
3
by: Gianni Mariani | last post by:
I was a little surprised by this: It seems like the code below should not compile but the Comeau 4.3.3 compiler accepts it and the gcc 3.4(prerel) compiler rejects it and MSVC++7.1 ICE's. ...
8
by: Johnny | last post by:
I'm a rookie at C# and OO so please don't laugh! I have a form (fclsTaxCalculator) that contains a text box (tboxZipCode) containing a zip code. The user can enter a zip code in the text box and...
4
by: Dave Cullen | last post by:
I want to call a function using my own data type as an argument. The declaration for my function looks like this: Public Function CreateCardInfo(ByVal data As WoData) VB.NET balks at this,...
6
by: ged | last post by:
Hi, i am a oo (c#) programmer, and have not used javascript for a while and i cant work out how javascript manages its references. Object References work for simple stuff, but once i have an...
5
by: Sridhar | last post by:
Hi, I have created a web application. I have a data access dll to interact with database. I added this dll as a reference to the web application. Now let's say if I am calling a function in data...
7
by: TS | last post by:
I was under the assumption that if you pass an object as a param to a method and inside that method this object is changed, the object will stay changed when returned from the method because the...
2
by: Bit Byte | last post by:
I may be barking up the wrong tree completely here - i.e. what I want to do may not be possible - in which case please let me know which other alternative way I may achieve the desire...
16
by: arne | last post by:
Hi all, imagine I call a function, but omit one of the parameters, like: foo.c: void foo( int a, int b ) { /* do something with a and b */ return; }
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.