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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

Call a java method or javascript method?


Swastik
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61206
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by 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: 61206
    
  66

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://aspose.com/file-tools
 
subject: How to listen to a button click event within a iframe?