Need to write a jquery/javascript to take parameters from a page that contains an iframe, and append them to the src of the iframe
$30-60 AUD
완료함
게시됨 6년 이상 전
$30-60 AUD
제출할때 지불됩니다
1. Writing a script to take URL parameters/query components and adjust the iframe src for the payment form on the donation page accordingly.
• The donation page URL is: [login to view URL]
• It looks like this can be done using javascript or jquery – would like your thoughts on which would be more suitable, we want it to be fast.
• Would it be best to include jquery from Microsoft or Google CDN instead of downloading it? [login to view URL]
• This is the jquery method: [login to view URL] (see first answer) - although in our case, instead of passing on the parameters to the iframe, we would have to use nested if statements to set the iframe’s URL src to the appropriate URL based on the list below: (we can adjust the URL parameters/query components if needed)
• Christmas Appeal (General) iframe form
o Website URL: [login to view URL]
o iframe src = [login to view URL]
• Christmas Appeal (Direct Mail) iframe form
o Website URL: [login to view URL]
o iframe src = [login to view URL]
• Christmas Appeal (Facebook) iframe form
o Website URL: [login to view URL]
o iframe src = [login to view URL]
• Christmas Appeal (MailChimp) iframe form
o Website URL: [login to view URL]
o iframe src = [login to view URL]
• Christmas Appeal (Twitter) iframe form
o Website URL: [login to view URL]
o iframe src = [login to view URL]
2. Would like to know if it is possible to open a certain URL in the whole tab instead of opening it within the iframe.
• Once someone makes a donation here: [login to view URL], they’re supposed to be directed to: [login to view URL]
• There is an option to set this up on the payment form, and I have set it up, however, the [login to view URL] page opens up inside the iframe instead of opening in the whole tab.
• Alternatively, maybe we could just adjust the [login to view URL] page so that it looks good in the iframe – although I am concerned about whether this would count towards Google conversions
• Don’t worry if you don’t quite understand what I mean, I can show you
If you are interested, message me for more details.
Thank you
I have worked on various iframe tasks ..
Please let me know
1. are you trying to change URL of iframe within your site ?
2. is your site domain is same as iframe domain ?
show us the exact scenario i can provide you best solution.
Thanks
Have understood a bit that based on different conditions you have to open iframe with different src, needs a bit more clarification about the task and will be completing it very soon once awarded.