Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

DotNetNuke Marketplace
  Ads  
Active Modules -- Active Forums for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Iframe Module [...  iFrame ID and custom attributes
Previous Previous
 
Next Next
New Post 8/8/2008 8:00 AM
User is offline Tony Evans
2 posts
10th Ranked


iFrame ID and custom attributes 

 

How can I change the ID attribute of the iFrame?  It looks like some default value is being generated by DNN.

Also can I add custom attrbiutes to the iFrame, those that aren't standard html?

It looks like I will have some javascript that needs to reference specific attributes of the iFrame and I want to set everything

up using the standard iFrame module if at all possible.

 
New Post 8/8/2008 10:23 AM
User is offline Vitaly Kozadayev
753 posts
www.continure.com
7th Ranked






Re: iFrame ID and custom attributes 
Modified By Vitaly Kozadayev  on 8/8/2008 12:57:31 PM)

WOW - what have I been smoking - answered a completely different question :) Give me a minute - I'll send you something :)


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post 8/8/2008 11:23 AM
User is offline Vitaly Kozadayev
753 posts
www.continure.com
7th Ranked






Re: iFrame ID and custom attributes 

OK. you can't change the ID of an IFrame, however there are a number of ways to get it - you can get all IFRAME tags on the page and run thru them looking for one where id has an "htmIFrame" string in it:

var iframes_ = document.getElementsByTagName("IFRAME");

for (var if in iframes_)
  if (iframes_[if].id.indexOf("htmIFrame") > 0)
    thisIFrameIsTheOne(iframes_[if]);

 


As far as adding custom attributes, you can also do it via JavaScript OR just open IFrame.ascx and add them there, if your attributes and values are static


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Iframe Module [...  iFrame ID and custom attributes
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DNNSpired.com
Inspired to extend DotNetNuke®, everyday.
www.DNNSpired.com
TMA Resources
TMA Resources is a software company providing eBusiness solutions for the Association market.
www.tmaresources.com
DotNetNuke Hosting Provider UK
UK leading DotNetNuke Hosting provider. Owned and operated by a Microsoft Gold Certified Partner.
www.DNN-Portals.co.uk

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP