Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
rashmi coorg
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1625
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Call a java method or javascript method?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
rashmi coorg
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65223
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're not going t get a complete tutorial on web services in a forum post.
 
juest just
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic