I want to build a basic website using HTML, CSS only for learning myself:
- top part is the club banner/logo
- left side bar shows list of years, eg.:
2010
2011
2012
2013
2014
2015
2016
the rest (right part) under the banner depends on the year the user clicked on
So I want to keep the banner (top) and the left side bar do not need to refresh everytime user click on the year.
It only shows the corresponding content of the year clicked, on the right part (for example the events held in the year).
Is frameset the only way to do?
frameset tag is not supported in HTML5. so for better browser support you may use iframes
My suggestion is go with iframes otherwise you can use object and embed like so
<object data="http://www.example.net" width="600" height="400">
<embed src="http://www.example.net" width="600" height="400"> </embed>
Error: Embedded data could not be displayed.
Related
I have a VS2019 WinForm app with a form that contains a webbrowser control. The URL for the webbrowser control points to a form on my asp.net web site, HelpForm.aspx. The URL for HelpForm.aspx has args that the aspx page can use in the code file to make a database call with the args supplied to fetch text/html from a SQL Server database then apply that text/html as text to a label on the aspx page. That aspx page is then returned to my webbrowser control on my winForm. That all works fine. This allows me to use the same forms to retrieve different help data from the database.
As part of the text/html stored in the database some of the records contain code to embed a YouTube video. Here is an example of what is in the database:
'... The same is true if you use the mouse wheel while a combo box has the focus.
<object width="560" height="315"><param name="movie" value="https://www.youtube.com/embed/fpXX8mSuDV4"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/embed/fpXX8mSuDV4" width="560" height="315"></embed></object>
Note: There is a ....'
On some machines this works and the video appears inline with the text but on others I get a black box or a white box with a tiny icon in the upper left corner.
This seems to have something to do with IE/Edge but I cannot find anything useful to help fix this.
Any ideas ?? Thanks
The WebBrowser control is stuck in IE7 mode by default, unless you edit the registry on every computer where your application runs.
But even if you can edit the registry, you'll still be using Internet Explorer. And YouTube dropped all support for Internet Explorer back in March 2020.
Unfortunately, you're going to need to update your application to use a more modern browser control. For example, either CefSharp or WebView2 should work.
When embedding in a website, is it possible to remove any of the following overlayed elements in "The visual embedded player" from Souncldoud:
The uploader name
Playlist title
The track counter
The soundcloud logo
No, it is not possible (as Souncldoud answered ticket on Feb 3rd 2020)
I have the following problem: I have a frontend application A that authenticates, sets up a reverse proxy, and then forwards to a separate application B I don't control.
I would like to add decorations to the resulting page of the B application, for example adding a button "logout", but I can't modify B's code or templates.
Is there some magic trick I don't know about to obtain this result?
Your case, as discussed in the comments, leaves you open for a couple options:
Wrap application b inside an <iframe>
Load application b inside an <iframe>, while keeping a custom navigation bar in the top on a fixed position. This would be possible if the <iframe> is hosted on the same location as application b. This would avoid tampering with the original code of application b, while still giving you freedom to alter the user experience.
Example:
<iframe src="https://mdn-samples.mozilla.org/snippets/html/iframe-simple-contents.html" width="400" height="300">
<p>Your browser does not support iframes.</p>
</iframe>
(variation on this):
<object data="http://www.web-source.net" width="600" height="400">
<embed src="http://www.web-source.net" width="600" height="400"> </embed>
Error: Embedded data could not be displayed.
</object>
Alternatively, this is a great related question with some viable solutions:
Alternative to iFrames with HTML5
Insert custom JavaScript / CSS inside application b
If you have control over the code of application b, you could include a small JavaScript file that automatically inserts some absolute elements to enhance the user experience. It would avoid to ruin the original code, but it's not really a clean solution
Modify the existing code
It's an option, but you shouldn't if you're not comfortable to edit it. Because you'll most likely waste a lot of time on it.
Good luck with your application!
We allow users of our application to embed a webpage containing a set of thumbnails into another third party webpage/blog etc. The embedding is done by using an object tag.
Each thumbnail provides an option to download original file. When user clicks on this option, the embedded content is disappearing in Safari 5.1.1 and Chrome 15.0 and instead "Could not render embedded content" is shown. Whereas FF 8.0 works correctly i.e. the embedded page stays there even after download, as it should.
The embed code we are using is like this -
<object data="http://myserver.com/em.aspx?e=FytXStk=" height="600" width="900" type="text/html">
<p>Could not render embedded content.</p>
</object>
Can anyone see what might be wrong here? Thanks.
I had to add target="_parent" for the download link. That did the trick.
Actually, if you just choose "Shockwave" instead of "Flash" from the drop down menu for video type, it all works perfectly.
Joomla Core Team has gotta do a better job on notifying developers and webmasters. It's obviously not obvious.
I have a webpage with this code:
<object data=http://<?php echo $_GET['wp'];?> width="600" height="400"> <embed src=http://<?php echo $_GET['wp'];?> width="600" height="400"> </embed> Error: Embedded data could not be displayed. </object>
I'd like to know if the user through navigation manages to get to a specific site within the
<object>.
Is that possible?
If not, is there another way to embed a webpage within a website that allows me to know in which webpage he is in?
EDIT: What if we know some of the context of the source code the target page has and we just need to see if the page within the page contains this part of the code, is this possible?
You could use an iframe!
var url =
document.getElementById('my-iframe').src;
Edit: As Ant mentioned, you can't get the url from an iframe tag unless domain of the page in the iframe matches the page containing the iframe.