jquery click element in iframe - javascript

I want to click the next button on the slides here - http://engineer.org.in/2011/realtime/ programmatically using JavaScript. The videos is in an iframe.
I tried $("div.punch-viewer-right").click() but that didnt work.
Can anybody tell me why this is not working?

because of XSS security issues, you can not access the iframe because it is not in the same domain as the website trying to access it.

Related

How to link to another page with a back button within the frame

I need to have a link to another website with a back button on that website (which I don't own) back to my site.
I initially thought of doing this by using and iFrame and then using z-index to put a div onto of this. However I kept getting the message:
Refused to display 'url' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'
Please note that the user won't have access to the normal back button in the browser so it needs to be in the browser window.
If you know any ways of bypassing the error message above as an alternative that would also really help.
For some context for those of you wondering why (but not needed to solve the question, I don't think) is that I am developing an Indesign panel using CEP.
Thanks in advance
If you don't own the other website, there is no way to add the back button to it.

How to click iframe element in wordpress (all pages)?

I have a wordpress website, where I have pages with artists. This is an example: http://chasefetti.paradigmrecordsinc.com/ of a page from my website
On the top I have an iframe from arena.com
I want after the page loads to click the play button.
If I do it on the arenas page http://arena.com/artist/chasefetti like this (using firebug):
document.getElementsByClassName("fg icon-play-fg")[0].click()
it works, but on my website I guess it doesn't know about accessing the iframe.
How can I specify to access that iframe ?
Also the full mission that I gotta do is to play that button for each page. I am thinking to add a jquery that does what I want to do, to the templates page.
My main problem is accessing that element from the iframe
As far as I know(I tired it once) you can't do that, unless the source of the iframe is on the same site as yours, which isn't the case here.
Also check this same-origin policy.

Controling link behaviours in an Iframe

Ok so any help here would be great
I have a HTML page with an I frame loading a site of mine in it…
What I need to do is check in the iframe from the main document, the target attribute of a link and if it's blank, hijack it and add my own custom functionality from outside of the iframe in the main HTML document
The issue I have is the site being loaded in to the frame is on a different domain so I am not sure if this can be done? I have full control of the site been loaded in to the I frame so is there something in there I can set to allow it?
What I effectively want to do is hijack the links in an iframe which I guess could be an issue?
Can this be done, alternately does anyone know a way I could achieve what I am trying to do?
Thanks

How to put twitter timeline widget within an iframe?

I am trying to put a twitter timeline widget (https://dev.twitter.com/docs/embedded-timelines)
within an iframe, but it doesn't seem to be working.
Does anyone know how to get this working?
And yes, I do definitely need it in an iframe.
EDIT: I realize it's normally in an iframe. I want to put that iframe within an iframe.

Jquery/Js : Select and navigate to link embeded in a flash element

I would like make a script for Greasemonkey (GM),that find and navigate in a link embed in a flash element.
I think that is possible to make it to work with function .click() ,but won't work :(
Here's the source code of the page that contains flash elements..
Source code
Is possible to make that to work?
Thanks in advance.
LUCA.
Flash runs inside of a plugin within the browser, so from an external code point of view it's a black box. The only way to be able to programatically access a link embedded within a Flash element is to have the Flash object pass the link to your script via loadvars.

Categories