This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

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

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Bartender
Posts: 2270
20
Android Java ME Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Call a java method or javascript method?
 
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67637
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're not going t get a complete tutorial on web services in a forum post.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
grapes are vegan food pellets. Eat this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic