Today everything is working as desired. No error messages.
The only think I can think to explain this is that the browser was accessing older, saved versions of the screens rather than the updated ones. After each update I saved everything and refreshed the screens, I thought. Since things seemed not to work, I kept trying for new ideas.
Screen 1:
[CODE=html]
<input type="hidden"...
User Profile
Collapse
-
-
=============== =============== =============== =====
Referring to the code above the "====" line, here is how I changed the "try" statement in screen 3:
[CODE=javascript]
try {
f3parcode = window.opener.d ocument.getElem entById("parcod e").value;
// parcode carries value indicating parent
// parcode is set in both...Leave a comment:
-
When I went to show you the code for Screen 3, I found that it had changed from the time of the initial posting. Right now I cannot show the original code that caused me to make the initial posting.
What I have now is code that works for the path that goes from screen 1 to 2 to 3. When I am on the alternate path (screen 1 to 3), the code that references the first path is still in the program and the explicit reference to screen 2...Leave a comment:
-
duplicate names between screens
I like the getElementById suggestion. But even using that it seems to me (without having tried it) that I would still have the same problem I have now. Screen C still has to know its parent on each usage cycle. That means I put code in C to handle both Screen A and B as parents.
Whichever parent is the real path, won't the code for the non-active, opposite path still...Leave a comment:
-
That sounds interesting. I will try to remember that when I am working on a server side project. But this is all client side.
I have another idea that I am working on.
If I created a DOM object inside the body but outside the form, then the code "window.opener. document.fieldn ame.value", I am hoping, would work. As I see it now, there would be no unique form name that would confuse the browser. If Screen...Leave a comment:
-
I do use "window.opener. document.formna me.field.value" for the path I am using and it works fine.
But the same code for the path that is not active for the opposite scenario is the path that the browser issues the message of "has no properties".
Screen C has code in it for both paths (opened by A; also, opened by B). It is the code for the non-active path that causes the browser to complain....Leave a comment:
-
How can a screen identify its parent in all cases?
Here is my scenario:
Screen A ===> Screen B ===> Screen C
\\
\\
V
Screen C
What this means is that sometimes Screen A opens B that opens C; other times Screen A opens C directly and B is not used.
The question is: How does C always know who opened it -- A or B? This is essential to know for later processing.... -
Please provide all your code. Show all the relevant parent code separate from all the child code.
I suggest that you read this forum's help instructions re how to make this forum show your code separately from your comments and questions. The way you present the statement of your problem it is difficult to understand your issue.
Take care....Leave a comment:
-
Thanks to GITS and ACODER for your most recent replies (yesterday and today).
1. Yes, I am interested to learn how to use the DIV tag along the lines you suggest above. So I do appreciate the plan outlined by you both. I will try to work on that as time permits. I agree with the concept, because there is a lot of "window.ope ner" code that could be dropped from my present scheme. So when done, things should be simpler....Leave a comment:
-
Well, thanks for taking the time to have this conversation. I don't know yet what I am going to do other than indicate a preference for Firefox over other browsers.
I guess there is nothing more to do with this thread, unless someone else jumps in with other ideas.
I appreciate your help and insights....Leave a comment:
-
Thanks for the DIV tag reply. I will have to study how that works.
[Quote by Acoder] It may be a memory bug in IE6. [/Quote]
Should I infer from the above remark you made that using "window.ope ner" should assure the right page order in the stack?
Also, do you know if there is a way to programatically cause a window to open as a tab rather than a separate window?Leave a comment:
-
I have not tried fewer windows. That would mean rewriting the whole application or else supporting multiple versions by browser.
I don't know DHTML at present, so I don't appreciate your suggestion of using the DIV tag. Does that mean you can make sections of your code occupy the same screen space, depending if it is visible or not? If so, it seems to me there must be reference points for the screen space to assure that the visible...Leave a comment:
-
Yes, window opener refers to each window's parent. Window 1 is parent to 2, 2 parent to 3, etc. Because of that relationship, things work fine in Firefox, but not in IE6.Leave a comment:
-
I am not an expert, but I will tell you what works for me. Because full reference javascript is cumbersome to write, where I have many uses of the values I am saving, I bring the child screen values into an input field in the parent and then in the parent move those to a short-named variable, which I then use in the remainder of my processing.
I believe you said you were using a radio button in the child screen to capture information...Leave a comment:
-
Controlling Page Stack Using IE6
My client-side application works reliably and as intended in Firefox, but not in IE6. The problem seems to be that I do not have control over the page stack in IE, while I do in Firefox. So far I have not figured out how to use “focus” to assure proper page sequencing.
Here is an overview of my client-side application. There are 6 screens that capture user-entered data. Screen 1 opens 2, which opens 3, which opens 4, which... -
-
Javascript Tool Tips
Hello experts!
I hope someone can tell me where I can find working javascript code that creates and enables tool tips. I have O'Reilly's JavaScript, The Definitive Guide and have been studying that but so far have not been able to make it work.
I realize I still have a lot to learn in JavaScript, so I believe it is me and not the book or its examples that is the problem. I do learn more easily if I can see not only... -
Hi Acoder,
I found your idea and response from volectricity helpful, interesting and instructive.
May I ask (without being utterly dumb) that you post a link to the standards you refer to.
A google of "javascript standards" gives many hits. The purpose of my using this forum is to gain access to the experience of others, so it would be really helpful to be able to link to the site that reflects the...Leave a comment:
-
I suspect that you have not received a reply to your question because it seems too open ended (at least to me!).
Can you specify the language you are programming in? Can you give a code example?
Can you give a statement of the problem that causes you to ask the question about the difference between parameter driven and simple groups?
Having as much info as possible will help anyone (who would like...Leave a comment:
-
gits,
great responses. Thanks. Consider this thread complete!Leave a comment:
No activity results to display
Show More
Leave a comment: