FEATURE

IFrames and Alternate Content Injection

23.83% |
47.15% |
29.02% |
Not to be confused with old-style frames and framesets, inline frames (iframes) are the foundation of many popular ad network, affiliate and content injection tools; such as “status update” boxes, data feeds, “like” buttons and other widgets which extend a site’s content range and revenue generating opportunities.
Although not the only coding option for many of its applications, iframes have some unique capabilities and properties that lend themselves nicely to many adult website uses; including user authentication, such as the schemes implemented by top social networks.
While perhaps not the best solution, this author has used iframes as a workaround to scripting conflicts that prevented one application or another from running when directly added to a web page’s source code. Placing the problematic script (such as a slideshow), on its own page and then calling it into the desired page, makes it easy to get a mockup running while the programming conflicts are resolved.
The nesting of iframes offers many other intriguing possibilities, including enabling easier displays of alternative content based upon the criteria selected by the site operator or visitor — such as the user’s geolocation; login / membership status or search keyword / results; random ordering; or whatever else you want to use as a “trigger” to dynamically update the URL that the selected iframe (or iframes) displays — since more than one can be used and linked to. Even without nesting, iframes can be used for alternative content switching and display; such as showing a PDF in an iframe window without leaving the main web page, or leveraging the licensing fees for your video player by not embedding it directly on to a page on a different domain (requiring a new license), but by displaying the player page hosted on the domain it is licensed for — a potentially decent cost saver.
Iframe nesting also offers a workable, albeit cumbersome solution to HTML5 valid, pixel-perfect positioning, where the newest coding standard’s drop of support for iframe tags such as marginheight or marginwidth are leading to validation problems and leaving compliant coders with crooked corners and unequal spacing.
HTML5’s new “seamless” attribute, while currently unsupported by most browsers, holds forth the promise of cleaner content injection with a more unified look and feel to the site adding this material, and indicates a long life ahead for the helpful iframe tag — clearing the way for more widespread adoption.
Of course, there are implementation alternatives for many of these applications, including the <object> tag, which can in many cases be used in lieu of the iframe tag.
The use of AJAX or other techniques for alternative content injection are admired for their more search engine friendly approach, but this may not always be a concern if you do not own the inserted content; i.e., does it really matter to you if the ad network you use is getting “link juice” from your site?
Using iframes to deliver external content also offers security benefits over other means, such as AJAX or JSON, as the iframed content is restricted to the iframe itself — providing coding isolation that is further enhanced by HTML5’s new “sandbox” attribute. This helps prevent, for example, viruses or other rogue payloads carried by a third-party widget from corrupting your site’s coding. Content hosted on the same domain name as the site featuring the iframe, may have more “freedom” to interact with the rest of a site, allowing webmasters to find a fit to nearly any content injection need.
One other factor to be aware of is the performance penalty associated with third-party ads and content loaded into iframes.
Regardless of how you use them, iframes are an indispensible element of modern web design that could be profitably incorporated into nearly any type of adult website today.
See all current feature articles for adult industry professionals.
XBIZ Newswire > Adult industry news service for the media
OPINIONS & VIEWS
Staying on Top With Credit Card Billing
Selling Free: Mechanics of the Business Model
Power to the Pill
WEB / TECH NEWS
Immoral, Streamate Broadcast Shows on Live TV
No Porn Allowed in Amazon's New 'Kindle Worlds' for Writers
Peekaboo Investment Acquires Mobile Content Player AMV
Google's Penguin 2.0 Update Affects Porn Sites
PornHub Ranks Most Pious Porn-Loving Cities
Paxum Adds Australian Dollar Currency Option
VIDEO NEWS
Adult Performers Coalition for Choice Comments on AB 332 Status
Lady Gaga Costume Designer Atsuko Kudo Tapped for 'Sex in Venice' Feature
Filly Films Launches Honest Babe Studios
Homegrown Video Rebrands With New Box Art
Lars von Trier to Use Porn Star Body Doubles in 'Nymphomaniac’
Dick Delaware to Fight in Gladiator Challenge
NOVELTY NEWS
Doc Johnson Shipping New WonderLand Display
Sliquid Developing Line for ‘Fifty Shades of Grey’ Collection
Tristan Taormino Interviews Aneros' Director of Client Relations on 'Sex Out Loud'
Eldorado Partners With Jack Adams Male Underwear
Rachael Ray Promotes Jimmyjane Sex Toy on National TV Show
Pjur Introduces Stimulating Caffeine-Based Lubricant
RETAIL NEWS
XBIZ Retreat Miami Hosts Most Highly-Attended Event to Date
U.K.'s 'Erotica' Consumer Show Returns
Jessica Drake to Host Sex-Ed Workshops at Fascinations Stores
Angelina Valentine Promotes New Production, Clothing Company
Pleasure Chest Announces Upcoming Events
Larry Flynt Closes Sale on Hustler Headquarters in Beverly Hills
multiple news outlets with 1 click.
add free content to your website.
with your mobile device.
|
NEW XBIZ
Empire712
|
|
Companies based in CANADA please STEP INSIDE
Pj
|
|
Will a surfer pay for porn? interesting stats
paul markham
|
|
What Lesbians Think of Lesbian Porn
Cleo
|
|
New member on XBiz.net
OldJeff
|
|
Another one retiring to his yacht or getting out before it sinks?
PGBoss
|
|
wow, just cleaned up my icq list.
theS2O
|
|
Can you help me build my twitter/Please follow up
Damian
|
|
Penguin Update Live
MikeSouth
|
|
Came to Miami? Please pop in...
Kiwigirl
|
FIND PRODUCTS & SERVICES

UPCOMING EVENTS





All News / Editorial






