Topic-icon Need PowerMapper Validation

Active Subscriptions:

None
10 years 7 months ago #37193 by ranste
<iframe name="fb_xdm_frame_http" frameborder="0" allowtransparency="true" scrolling="no" id="fb_xdm_frame_https" aria-hidden="true" title="Facebook Cross Domain Communication Frame" tab-index="-1" src="s-static.ak.facebook.com/connect/xd_arbi...%3A%2F%2Flipsapp.com" style="border: none;">

This and the http bit have the three outdated (according to PowerMapper) props of frameborder, allowtransparency and scrolling that probably are better done now through css.

I have looked everywhere in the sourcecoast code to find it and can not so it's probably coming in from somewhere else can't be changed at source level. So I tried to remove using prop, attr and removeAttr to no avail. Seems I can affect everything else but this bit of code.

My client insists that it must be clean through powermapper - don't get me started, lol!

Any help would be appreciated. If I can remove these three bits and handle through css I can call it Hyanes and move on.

Please advise. Thanks.
The topic has been locked.
Support Specialist
10 years 7 months ago #37197 by alzander
There's no way you can alter that iframe. The Facebook Javascript library (all.js) loads the xd_arbiter.php file directly from Facebook and that file loads the iframe. You have no ability to alter the iframe.

I'm sorry I can't help further, but there's simply no way to remove that iframe or alter it's contents without disabling Facebook integration entirely.

Alex
The topic has been locked.
Active Subscriptions:

None
10 years 7 months ago #37200 by ranste
Replied by ranste on topic Need PowerMapper Validation
Thanks Alex. I had pretty much come to the idea that it was coming in from FB and all, but could not understand why the contents of the iframe could not be altered after onload using jquery? Quite an effort something so, as you and I know, inconsequential, but would get it through the deeper validation and not actually change the results. Still don't understand that part as it seems like because I can see it in the dom after page render I should be able to change it. But then again, I'm not any where near as knowledgeable about jquery as I'm sure you are. Thanks
The topic has been locked.
Support Specialist
10 years 7 months ago #37332 by alzander
Randy,
I'm not jQuery expert.. still learning it myself as we implement more and more into our extensions. To remove those attributes from the iframe, you'd want to do something like:
var fbFrame = jQuery( "#fb_xdm_frame_https" );
fbFrame.removeAttr("frameborder");
fbFrame.removeAttr("allowtransparency ");
fbFrame.removeAttr("scrolling");
The biggest issue is knowing when to remove those values. That frame is loaded after the DOM has loaded, so you can't do it just after jQuery(document).ready()... or at least, I don't think you could. It's worth a shot though. You may need a timer or something else to detect when that iFrame appears, but that's where things get difficult for me.

I hope the above helps though.. and should you make any progress or need any help, just let me know... I'll do what I can.

Thanks,
Alex
The topic has been locked.