aspose file tools
The moose likes JSP and the fly likes How to listen to a button click event within a iframe? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "How to listen to a button click event within a iframe?" Watch "How to listen to a button click event within a iframe?" New topic
Author

How to listen to a button click event within a iframe?

rashmi coorg
Greenhorn

Joined: Jul 11, 2011
Posts: 19
In my application,I have a JSP page where I need to embed a link inside a iframe which is generated from one other service. When the iframe is loaded, i need to perform some actions, where the control is not within my application. But when a button is clicked inside the iframe I need to call some java method within my application. How can I listen to a event within the iframe. Please help me out in this issue?
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1196

Call a java method or javascript method?


Swastik
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56207
    
  13

If the iframe is from another site, there can be no communications between the iframe and it's parent.

I'd set it up so that the remote site in the iframe can communicate back to the app via a web service.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
rashmi coorg
Greenhorn

Joined: Jul 11, 2011
Posts: 19
Bear Bibeault wrote:If the iframe is from another site, there can be no communications between the iframe and it's parent.

I'd set it up so that the remote site in the iframe can communicate back to the app via a web service.



Thanks for your reply.
I did not get a clear idea on what to set up. Could you please explain in detail.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56207
    
  13

You're not going t get a complete tutorial on web services in a forum post.
juest just
Greenhorn

Joined: May 11, 2012
Posts: 1
http://www.karenoutlet.com/
http://www.karenoutlet.com/karen-millen-skirts-c-18/
karen millen outlet
Ladies are aware of what to wear, which will make them look stunning in a party. One of the favorite evening dresses of the ladies is the Cocktail dress. The Cocktail dress not only makes the lady look sexy and hot, but also fulfils the purpose of various events like cruise-ships parties, New Years Parties, Holiday parties and dinners at expensive restaurants. It may however, make the lady look WOW if she tries on the designer cocktail prom dress or the little black dress. Today, the markets are completely full and enriched of varieties of designer and cocktail dresses. One just need to access the internet, select the best one and then enjoy looking glamorous.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to listen to a button click event within a iframe?
 
Similar Threads
scope issues?
Detection among two domains/servers
Session timeout page inside iframe
mouseclicked
How to navigate through a web page displayed in iframe ?