I have a page with several illustrations that are added by the end user through CMS. At the end of the iframe source I need to add a query string (exactly the same as all iframes) and stuck on how to proceed.
My current code is here where Frame-wrapped container is almost all iframes:
$ (document) .ready (function () {var hideLinkHeader = 'hideLink = true & hideHeader = true' var var = url do not know How to set it each iframe $ ('.frame-wrap'). ('Iframe') .tr ('src', url + hideLinkHeader);});
Any help is greatly appreciated.
This should work, I understand my problem properly
< Code> $ (document) .ready (function () {var hideLinkHeader = 'hideLink = true & hideHeader = true'; // fram-wrap $ .eich ($ ('frame-wrap'). ('Iframe'), Function (index, i) {// set url var url = $ (i) .attr ('Src'); // set for the source of iframe of this intestation. Set the source of the iframe of this intersection to equal url Links header global variable $ (i) .attr ('src', url + hideLinkHeader);});});
Working JSFDial:
No comments:
Post a Comment