I am trying to auto-fill Shopify sites. Everything goes good with billing info page but when it comes to filling card details I am unable to get input fields. Input fields exist inside the iframe. I tried using content window the response was null then I try contents function of jquery it gives me document with an empty head and body tag. Am I missing anything?
Screenshot of the console is
attached below.
Thanks in Advance
Related
When I add code for iframes dynamically into CKEditor, they get rendered as they would on the web page, and I can correctly see the contents of the web page inside the iframe. And after submitting the form, the iframe code gets successfully saved.
So I don't know why the authors of CKEditors made it so, but when I go back to editing the same article, the iframe will not get rendered; instead there is just an image with a red label that says "IFRAME".
I tried adding config.allowedContent = true;,
i tried adding config.extraAllowedContent = 'iframe[*]';, I tried searching for a plugin that would allow for iframes to be rendered, and I've searched the documentation on http://docs.ckeditor.com, but with no success.
It is obviously possible for CKEditor to render it and still function correctly and submit valid data back to the backend. So how do I make it render iframes on first init?
Is it posible, but if you want use iframe that mean you want render a page there ? check this plugin oEmbed. This plugin render a Iframe with a youtoube or other media sites/video.
I have a Rails app that displays a Googe Form in a Bootstrap modal.
Here is a picture of the browser:
I would like to add a default to the name input field.
This is the coffeescript code - that doesn't work:
$(document).ready ->
$("#gformshow2").click ->
alert "hi"
document.getElementById("entry_252495961").value="david"
return
The "hi" alert displays just before the modal is opened.
The reason is the form is in an iframe which you have no access to. The coffeescript code gets executed on your page, not the Google form.
As far as I know it is not possible for you to modify the content of that Google Form (think of the security implications… it would mean that you could fill it out for them, even submitting it without their consent)
https://www.bettercloud.com/monitor/the-academy/set-pre-filled-responses-in-google-forms/
To set a pre-filled response in Google Forms:
Create a Google Form like you normally would
Click the ‘Responses’ section in the toolbar
Click ‘Get pre-filled URL’
Fill out any fields you would like pre-filled and click submit
Copy the new URL at the top of your screen and share that, rather than the conventional URL
I'm having a little trouble with my account creation form.
first of all, my site is on 'BigCommerce', but they can't help me because i changed the design and they don't deal with design related issues.
The problem is like this:
If I fill every textbox with the right information and click submit, everything is just OK. I'm getting transferred to the 'Thank you' page, the new user is added and everything is just fine.
But, If I type something like a wrong E-mail address, Two not-matching passwords, leave some text box blank or something like that and click submit, the form is all blank and I have to start filling the details all over again.
second, I'm getting redirected to another page (with a new and empty form), and the error is written on the top on the form, instead of getting a pop-up message with what's wrong on the same page.
so.. this is the account creation page:
http://pastebin.com/pB5mrbtf
and the javascript code its redirecting to
http://pastebin.com/gLw5WCEQ
Please help
remove the autocomplete="off" for your text removing issue and for others pls attach jsfiddle link.
Also keep your old id's and class's for validation, otherwise you need to update your js file functions also. please provide jsfiddle link
I am new to the world of programming (I mean really new, like 2 months old)... so I apologize for the really basic question.I have been struggling with this problem for two full days with no idea how to do it.
Have a regular page with a form whose fields are hidden. Once you select an option, fields pop up (name, email, etc.).
I have an iframe on the same page.
I would like to display the actual form/fields (name, email, etc.) inside the iframe.
Submit form and send data to mysql (php file executing the transmission). (This part is done, all outside the iframe, except the final message)
Tried to create a function, tried TARGET (this one displays the actual result of the form inside the iframe - successful - data sent to mysql..etc.). But the form is still outside the iframe.
Any suggestion will be greatly appreciated!
Im a bit of a noob to jquery and js so ill try be as informative as I can.
I am using facebox on my page and a link which opens facebox which in turn loads an iframe inside calling a source page for the iframe window.
Loaded into the iframe then is a page which contains a form. The form validates via script thats attached to the parent window calling the iframe & facebox. The validating works but what i want to do is pass a variable back to the iframe window upon validation.
The form i refer to asks the user to create a new photo album which then appends to a select box once created as indicated here: (ill keep it brief)
var albumname = form.albumname.value;
$(""+albumname+"").appendTo('#als');
document.getElementById('albumname').value='Enter a name for a photo album';
Can anyone tell me how to pass this correctly to the iframe window?
Everything else works including the last line of code that resets the album name text input field.
Many thanks in advance,
Wayne
If you want to manipulate the contents of your iframe you can use a selector similar to this.
$("div", nameOfIframe.document)
What you need to remember is that your iframe need to be in the same domain as your main page, or else it won't work.