Using IFrames on silverlight

Hi,
Iam working on Silverlight project.Recently I added the html pages in siverlight with IFrames.but when I click on anywhere on page sometimes frame missing and after few seconds again.Please help me to how to handle this issue and also please help me set
the IFrame in correct postion when screen minimizing or maximizing cases.
This is is the code iam using for IFrame adding in siverlight
HtmlElement frame2 = HtmlPage.Document.CreateElement("IFrame");
            frame2.Id = "Iframe2";
            frame2.SetStyleAttribute("position", "absolute");
            frame2.SetStyleAttribute("left", 350 + "px");
            frame2.SetStyleAttribute("top", 520 + "px");
            frame2.SetStyleAttribute("width", 1050 + "px");
            frame2.SetStyleAttribute("height", 600 + "px");
            frame2.SetAttribute("src", URL);  // Set src
            HtmlPage.Document.Body.AppendChild(frame2);

It's a bad idea to dynamically add an iframe like that.
Partly because you can't guarantee a user's screen size.
I would advise against absolutely positioning an iFrame anyhow. 
I think it's unreliable unless wrapped in a Div but I've only ever read about doing it.
The way I would approach this is to put the iframe in the hosting page.
Use css styles to make the frame big or tiny.
Change the class name of the iframe using jquery in order to switch between the two states.
You then have a concrete piece of html and css you can work with.
Changing class name:
http://stackoverflow.com/questions/3452778/jquery-change-class-name
$("#whatever_id").attr('class', 'newClass');
Hope that helps.
Recent Technet articles:
Property List Editing ;  
Dynamic XAML

Similar Messages

  • Problem using iframe in portal

    Hi,
    I've used iframe in oracle portal. In a jsp, i gave the link as
    <iframe src ="<%=actionURL%>" width="50%"></iframe>
    There the actionURL will take the action to another jsp.Its like a jsp having another jsp. But there I need to fetch some values from database. Thats why i gave the url of an action instead of a jsp.
    In the jsp, i'm getting the PortletRenderRequest as null. But i need that request there to perform some opertaion. How to avoid this problem.
    Any help highly appreciated.
    Regards,
    Venky.

    Venky,
    perhaps you would be better off creating a portlet view on your JSP and integrating it as a portlet into Oracle Portal?
    Cheers,
    Mick.

  • How to use custom HTML page in flex web application with out using iframe

    Hi all,
              I have to import a custom HTML page (that has got links to another html pages) inside my flex web application and i dont want to use IFrame. Can you please suggest me with best example.
    Please help me out as i'm new to flex.
    Thanks,
    Swetha.

    Hi, there:
    Best thing to do is to start with the default login.html page, and then modify it. The login screen is fairly complex and it's easy to just miss a JS function you need to call. To get to default page, you would need to do one deploy (to simulator or whatever), and then look for login.html page in the temporary Xcode or Android project generated from the deployment. It should be under the "deploy" directory in your JDev workspace.
    You can also see all the framework JS files and CSS files that way as well.
    We have had customers implementing custom login screen so we know it can work, but they all had to start with the default login screen and then modify it.
    Thanks,
    Joe Huang

  • Embed flash file without using IFrame UI

    Hi all,
    Can any one tell me how i can embed flash file without using IFrame UI ?

    Hi
    To run a flash file you will definetely need a platform for which you need a shockwave player or a simple browser window. From webdynpro, the purpose of making it run through a IFrame is at runtime, the frame acts as a window for the flash file to run. Hence its the direct option of running it. Otherwise, you need to use a external window to invoke it seperetely in a browser window to run the file.
    If you have any specific issues, do let us know, or else its the best option @!
    thanks
    sathya

  • Embed  html file without using IFrame UI

    Is there any way to embed html file without using IFrame UI?

    Hi
    To embed a static HTML content inside your view, Iframe is the easiest form or else, you can provide links through Linktourl UI or through a static text or a button, invoke a action and display the HTML content inside the frame or call it in a seperate (external) window.
    Otherwise, we have only less options!
    if you have anything specific, do let us know
    thanks
    sathya

  • Can't watch videos or see apps that use flash, or silverlight

    I just got this iPod Touch today, why can't i watch or see anything that uses flash, or silverlight
    Is there anyway to watch or see flash, and silverlight using iPod Touch?
    Thanks!

    Because no iDevices support Flash or Silverlight,  There is the SkyFire browser that displays/converts Flash on a special site.  For more info on Flash look at the previous posts on the right under the hading "More Like This"  Also see:
    thoughts on flash - Google Search

  • Preview ppt,word,excel,pdf in flex using iframe

    hi,
    i am working upon flex 4.6 web application.i have a requirement in my project to preview ppt,pdf,word and excel inside flex container. i have achieved previewing only pdf by using flex-iframe 1.5.1, since pdf has browser plugginn. i am just binding the download path what i am getting from the server to the source of my iframe In HTML5 we can preview it using iframe by binding it to google docs viewer. i tried doing the same in flex but for me its showing that because of the security constaints of the owner cannot display it rather open it in another tab.
    kindly suggest me a way to preview ppt,word and excel inside flex container using iframe or if any other better or simple approach is there.
    kindly help... any help would be greatly appreciated.
    heres is my code-
    <mx:VBox id="vbxFrame" width="100%" height="100%" backgroundColor="#FFFFFF" includeIn="pdf" verticalCenter="0" horizontalCenter="0">
    <flexiframe:IFrame id="iframeFlexpdf" backgroundColor="#cccccc" width="100%" height="100%" horizontalCenter="0" verticalCenter="0" source="any url"/>
    </mx:VBox>

    Refer to the LOB Datatype sample.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/advanced/advanced.htm

  • Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help.. Thanks in Advance

    Hi I am using Iframe with src="abc.mht" file. i want to view the mht file content in same window.please help..
    Thanks in Advance

    This is not a Java problem, this is a WEBBOT problem.
    I suggest that you research the topic in your FrontPage help files.
    Yes, we do know how to solve this problem using ordinary HTML and JSP. The sample code that you've posted implies that you are looking for an extremely different solution. To put it another way, it looks like you're logging onto the Federal Aviation Administration's forums and asking them how to go from Chicago to New York by train.
    But in any case, if you can't find the information in FrontPage, I'm 100% certain that if you went to www.microsoft.com and searched for FrontPage and downloads, and skipped the results that actually want you to download FrontPage, you'll get some sample code.

  • Embed a specific part of a webpage using iframes.

    Hi,
    I've had an in depth search of the forums and can't find anything to help me.
    I know to use iframes to embed a web page within a webpage but I want to choose a specific portion of a webpage - how do I do that?
    Thanks for your help.

    Peter Pitrelli Here wrote:
    I tried the piece of code you had provided for another website, but am not able to get it right.
    That won't work, web-clips is site dependent and page viewport dependent, so the code for other site won't apply to what you want to have.
    Here is your:
    <style type="text/css">#outerDiv{overflow:hidden;position:relative; width:200px;height:100px;} #innerIframe{ position:absolute;/* increase to nudge right, decrease to nudge left. Note negative number. */left:-823px;/* increase to nudge down, decrease to nudge up. Note negative number. */top:-403.5px;width:200px;height:100px;}</style><div id='outerDiv'><iframe id='innerIframe' scrolling=no src=''></iframe></div><script type='text/javascript'>_rect=new Array();_rect.push(-52.0);_rect.push(-364);_rect.push(274);_rect.push(364);_rec t.push(547);_rect.push(455);_outer=document.getElementById('outerDiv');_outer.st yle.width=_rect[4]+'px';_outer.style.height=_rect[5]+'px';_inner=document.getEle mentById('innerIframe');_inner.src='http://www.zshare.net/video/115850651ed07b1a /';_inner.style.top=_rect[1]+'px';_inner.style.left=_rect[0]+'px';_inner.style.w idth=(_rect[2]+_rect[4])+'px';_inner.style.height=(_rect[3]+_rect[5])+'px';</scr ipt>

  • Strange behaviour on Safari when trying to submit form using iframe

    Hi All,
    Not sure if this is the correct forum to raise this question
    I am using iframe based mechanism to submit my login from and it is working fine on each and every browser except Safari.Here is the HTML form I am using to submit the information
    <iframe height="0" width="0"  name="loginFrame" hidden="true"> </iframe>
    <form:form action="${loginActionUrl}" method="post" commandName="loginForm" id="header-signin" target="loginFrame" name="header-signin">
      <input type="text"   name="j_username" id="header-signin_j_username">
      <input type="password" name="j_password" id="header-signin_j_password">
      <input type="button" class="btn1" value="Sign In" id="login" formnovalidate="formnovalidate"/>
    </form:form>
    and here is the java-script code
    $(document).ready(function(){
    $("#login").live('click',function(e) {
          if(validateSigninForm('header-signin')){
              $("#header-signin").submit();
    there are some additional JS code which is being used
    if($('#header-signin_j_password').length){
        document.getElementById('header-signin_j_password').onkeydown = function(event) {
            if (event.keyCode == 13) {
             triggerSigin(this.form.id);
    triggerSignin is simple using Jquery submit method to submit the form.
    When I fill the password filed and press the enter button, everything is working fine and page is getting refreshed with the help of the iFrame, but if I click on the sing in button, Safari is opening a new browser window and sending null values to the back end server.
    This behavior is only noticeable for the first time and if I click on the signin button second time, It will be working perfectly fine till I close the browser and open it again.
    I am not sure what is going wrong here and this approach is working fine on all other browsers.
    Can any one help me in this?

    Okay I tried something new.  I changed the email address listed under my account in the Server app, and then went back to add the short name again.  This time it allowed the save.  Then I went back to Server and changed the listed address back to what I entered as the short name, and it let me do that, too. I guess the order you do this in matters.  Odd.

  • I am using IFrame and displayed Html page

    Hi Friends
                        I am using IFrame and displayed Html page in flex4
                        In this page open to Firefox But not IE please help me.
                          Thanks
                           V.ChandraSekhar

    You have deleted your page, but you have not deleted your page?
    Which is it?
    If you never saved it it is gone. If you saved it in Lion (OSX 10.7) with Pages 09 v4.1, there should be versions available when you mouse overv the document name at the top of the window.
    Peter

  • Adding video using iframes

    Does anyone have a good solutions to make a video gallery on a page using iframes code, NOT from YouTube? I partnered with a video company and they gave me code to their portfolio videos which I can put on my site. However, I'm not finding a good way to have a thumbnail which can either open a lightbox on the same page and play the video or open a new window. At this point, I'm not going to be picky.
    I was trying to use Web app program but it wasn't working. I have a variety of videos to show and wanted to arrange them in categories, but the Web app is not an ideal solution.
    I get the video to work but it opens a large page which looks goofy. Plus, the video shows a > right above the video box.
    I would really like to have the thumbnail open a lightbox which will play the video and have a link to play the next video as an option.
    Any ideas?

    Thanks.I really appreciate the feed back and help.
    I tried the following code. I am using a template from BC which has the gallery laid out. It works welll with images and YouTube, but not for the iframe code that I need to use.
    <div class="alignleft thumb_shadow"><a href="iframe width="532" height="300" src="http://smb.somedia.net/videoembed-iframe.php?nid=21223&autoplay=false" frameborder="0" rel="prettyPhoto[one]"><img alt="" class="border neutral_border" src="/images/portfolio/thumbs/Pizza90secad.jpg" /></a> </div>
    The image appears, and the lightbox but the video doesn't show up.
    Any suggestions? I searched the Internet and read several pages about using the prettyPhoto but they don't show an example for this situation.
    Thanks!

  • Cross-sites App parts using iFrames

    I have a wiki page library inside site collection A, now I can add an app part which display the latest modified items , as follow:-
    Now the problem is that I cannot do the same steps if I am inside site collection B , as the app parts are not available cross-sites. I read about the content search and content quesry web parts for cross-site references, but these two web parts lack the
    view settings where I can define setting such as:-
    So the approach I am thinking of:-
    To add the app part inside site A.
    Then inside site B using Iframe inside a code snippet, to reference the app part at site A.
    I tried doing so but this resulted in showing the whole page inside the iframe , what I need is to only display the app part’s related HTML inside the iframe.
    Can anyone advice about this please?
    Thanks

    App Parts are only available where the Apps are installed.  You need to install the App on Site Collection B in order to add the App part to the page.  In Site Collection B go to Site Contents and use the Company App catalog to add the
    app to the site.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.
    Sorry but i did not get your point, now i created a new test team site collection. but inside the site collection contents i can not find an App catalog . here is how Site Content and app contains:-

  • Displaying Subject Section in another Subject Section using IFRAME

    At present, the tool provides for the ability to display a "report" and/or "list" within a section using Custom HTML (iframe) and the API (saw.dll) report call. Is there a way to display a given "section" from another subject area into an existing subject area using iframe - devoid of the dashboard configuration?

    I would recommend that you post this question in the CRM On Demand Analytics and Reports forum.

  • Will Honeycomb OS allow for the use of MS Silverlight in the Razr?

    In residential real estate our Multiple Listing System system uses the MS Silverlight platform for home searches and photos. I would like to change from a Windows phone to an Android phone - particularly the Razr. Has anyone experience with the Razr OS downloading a fully operational version of the Silverlight platform?

    broker1 wrote:
    Guess I have things backwards. From your answer I surmise the Razr runs on Gingerbread OS. Is it known if Gingerbread runs MS Silverlight. Also don't recognize abbreviation ICS? Thanks for any guidance you have/can provide. Happy New Year.
    If I remember correctly Silverlight is only a windows base application and there isnt any method to install it on a Android device...  So if I had to guess I would say that No this isnt possible.
    Now as for ICS it stands for Ice Cream Sandwich which is the latest OS but at this time the Samsung Galexy is the only device that Verizon has with this OS so not something to consider at this time.

Maybe you are looking for

  • HT1725 I got "error=-36" while downloading a movie, and now I can't get it to resume

    I got the error 36 while downloading a movie that I purchased. However, I had to pause it as I was downloading another movie and wanted that one to download a little quicker. Initially, I got error-50 and so I followed the instructions from that feed

  • Report connting error  (ORA-12203: TNS: unable to connect to destination)

    hi; when i open report and connect with oracle then not accept my id and password and show this error REP-0501 : Unable to connect to the specified database. ORA-12203: TNS: unable to connect to destination how i connect oracle with report and form w

  • SQLite in Cairngorm architecture

    Hi All I am new to MVC and Cairnhorm . I am developing an AIR application where besides the regular services that I define through ServiceLocator I have also SQL database  . My question is what is the right place for SQLite in MVC .Should it be acces

  • Dynamic structure field change

    hi, i am having  one structure. structure having 20 columns. Each columns have 30 entries.. now i want to fill the first column of 30 entries.. after filled the first column dynamilly goes to second column.. column names like col1 col2 col3 like this

  • MoveTo file renaming question

    Hi guys If you want to change the case of a file name eg... filename.txt to... FILENAME.txt (using moveTo to do this throws an error, as the file already exists) ...is there any way to do it that doesn't involve adding arbitrary characters first, or