Win a copy of Microservices Testing (Live Project) this week in the Spring forum!

Felicia K Lei

+ Follow
since Jul 19, 2005
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Felicia K Lei


I am not sure I understand your point. We have found a "stupid" workaround, but it looks ugly.

What we did is to catch the onunload event in frame 1 by function onClose(), and then in the onClose(), we replace the html in frame2, but we have to alert a javascript message to trigger frame 2's onunload event. It seems that simply replacing the frame2 html is not good enough to trigger frame 2's onunload event.

alert("Thank you.");

Can any one help us get rid of this javascript alert message? Or any better solution.

But that frame is developed by another team, and the function name is unknown. Can we just trigger that frame's onunload event if we do not know the function name for that event?

Meanwhile, We will also try to ask the other team to use a fixed name for onunload event if there is the only choice.

Thanks again.
We run into a situation like this:

There are 2 frames in the browser, we have an onunload event in frame No.1 to do some status update. But we have to make sure the frame No.2's onunload event function get called before frame No.1.

Basically, we want to explictly call the other frame's onunload event.

How can we do that? Any help is greatly appreciated.
We have a page with 2 frames, and this is for IE only, I did not try other browsers.

Left frame displays link menu only;
right frame displays the real html pages for links on the left, each link has a unique html page;

When I click Link 1 menu, the right frame load page 1's html;
When I click link 2 menu, the right frame load page 2's html. At the same time, the page 1 html has an onUnload function will be called. Our assumption is that the onUnload function of page 1's html will be called before any javascript function called in page 2.

But we found the sequence is not guanranteed, although it is true in 90% cases. And to make things worse, all the html pages in the right frame are hosted by a different server and owned by other team. How can we make sure the javascript event sequence is consistent, ie. onUnload event first, then other javascript function in the current page.
Tim, Yes, Thanks a lot.
17 years ago
How can I know the version of javac executed in the build.xml by ANT. Because I am suspecting the javac version used by ant/build.xml is not the default version under my unix prompt.

To make things clear, how can I write something like "java -version" or "which javac" in build.xml so that I can tell the version by the output?

Any help is appreciated.
17 years ago
We start using ANT recently to build web application, ANT generates a WAR file in the end to be deployed on web server. The ANT's build process takes something about 1 - 2 minutes.

If I only changed one java file and want to get its class file, I would think using javac to compile is much more efficient. Sometimes, I like to run the main function for this particular java file. I found ANT still takes 1 minute to build since it needs other overhead, like copy, create directory, create war file, etc...

Any expert here can give me some suggestion? Can ANT compile one java file fast enough?
17 years ago