|
Hi Guys,
I am trying to display an html page inside an iframe, specifically for browsers on Android. So far I have been using the built in browser and chrome.
The challenge is that I want the entire content to be displayed. Currently, it "overflows" the iFrame so the user must scroll horizontally to read the contents. I can manipulate the content html as it is generated by me in the same ASP.Net app. The src attribute of the iFrame is set server side.
Things I have tried so far:
•Zooming, scaling the iFrame: Changes the iFrame size not the content
•Zooming, scaling the and tags inside the content html: This works, but when the user switches between portrait and landscape, the content doesn't scale according to the changed size of the iFrame.
•Everything on stackoverflow that I could find.
•Whatever I could find on other sites.
Here is the Page's code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="***.aspx.cs" Inherits="***.***" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Sign Document</title>
<link href="Content/bootstrap.css" rel="stylesheet" />
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
</head>
<body>
<form runat="server" class="form-horizontal">
<div class="container body-content">
<div class="form">
</div>
<div class="row">
<div class="col-md-10">
<h2 class="text-center">Please Read</h2>
<p class="text-center">The document you are about to sign is displayed below. Please read it carefully before tapping the Sign Now button.</p>
</div>
</div>
<div class="row">
<div class="col-md-10 text-center">
<hr />
</div>
</div>
<div class="row">
<div class="col-md-10 text-center">
<div class="embed-responsive img-rounded embed-responsive-16by9" style="border: 2px solid darkgray; -webkit-overflow-scrolling:touch; overflow:auto;">
<iframe id="MediaDisplayIFrame" runat="server"></iframe>
</div>
</div>
</div>
<div class="form">
</div>
<div class="row form-group">
<div class="col-md-10 text-center">
<asp:Button class="btn btn-default form-control" ID="SignButton" runat="server" OnClick="SignButton_Click" Text="Sign Now" />
</div>
</div>
</div>
</form>
</body>
</html>
|
|
|
|
|
Hi,
I don't know the exact answer , but I've found something similar to this here
http://stackoverflow.com/questions/2630308/possible-to-shrink-contents-of-iframe
it might be helpful. Thank you
|
|
|
|
|
Thanks a lot. What I ended up doing was to manipulate the css of the tag of the content html to either zoom or transform depending on the browser.
Works beautifully but I really wish there was a more elegant method.
|
|
|
|
|
Hi,
How to create python flask web application in visual studio 2013 with SQL server?
Is it possible give me a sample or link to download or run it in vs 2013 ?
Thanks
What I have tried:
Python With SQL Server Database
Python With SQL Server Database[^]
But I want to create a web app, not a console app .
|
|
|
|
|
You have already posted this in QA, where you have received and accepted a solution:
How to create Python flask web application in visual studio 2013 with SQL server?[^]
Rather than re-posting your question, read and follow the advice you were given there. We are not here to do your research for you.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
I'm Implementing a SignalR Stock Ticker Using AngularJS based on an example over here.But while connecting to signalr i'm getting this error in my console.
GET http:
And this is the Error which is showing in my jquery.js file.
<pre lang="C#">try {
xhr.send( options.hasContent && options.data || null );
} catch ( e ) {
if ( callback ) {
throw e;
}
}
Since I'm new to signalr concept , have got lots of confusion in it. So, can anybody please help me out of this ?
|
|
|
|
|
So? Do you have that routing or file setup that can handle the requests at that URL? If no, then create it, if yes then show that code.
Secondly, SignalR doesn't require you to create a personal ajax handler, it sets those things up for you. You just need to create handlers on server-side and client-side.
For a complete overview, please refer here, Tutorial: Getting Started with SignalR 2 | The ASP.NET Site[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Hi,
I develop a web application and when click a print button it print direct to the default printer and it's work fine, but when I publish the application on the IIS the print doesn't work.
error is : Object reference not set to an instance of an object.
Please let me know how to configure the IIS and Print permission becasuse we think the problem is in the permission.
Thanks
|
|
|
|
|
So you're trying to access the default printer from C#, which means that your application is trying to print on the server.
If you're trying to print on the client side, you'll need to do it in the client-side language, namely JavaScript (window.print()).
This sort of things often "works" in a development environment, where the server and client are normally the same machine. In the cloud, though, servers are generally VMs with no printer setup. If a printer was setup you wouldn't see an error message: the document would simply print at the server's default printer, and only the IPP admins know where that is.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
NB: In Windows, printers are installed and configured per user. Even if the server admin installed and configured a printer under the administrator account, it wouldn't be available to the server account(s) under which IIS applications run. Getting the printer configured on the server for IIS would involve manipulating the registry.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Richard Deeming wrote: Getting the printer configured on the server for IIS would involve manipulating the registry. Or just changing the App Pool to run with an account that does have a printer setup? Still, probably not a good idea.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
Richard Deeming wrote: Getting the printer configured on the server for IIS would involve manipulating the registry.
Or GPO and a print server. I guess environment does have a big impact on worldview.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
hello, can someone help me how to detect and map a wifi signal by using Php Language?
thank you!!!
|
|
|
|
|
|
PHP has no design element that can do this; how can a server-side scripting language be used as a network sniffer?
What you need to use is some sort of a network sniffer, to help you visualize how the packets are moving — sorry if I am unclear, I don't own a black hat in my wardrobe.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
i want to do a project on sms based Remote Server Monitoring System For Corporate Data Centers.anybody here can help me out
|
|
|
|
|
What have you tried? Where are you stuck? Exactly what help do you want?
|
|
|
|
|
Well it's your project so you are expected to do the work. If and when you have specific questions with your code then people will be happy to help you. But no one is going to do all the work for you.
|
|
|
|
|
Member 12536540 wrote: project on sms based Remote Server Monitoring System For Corporate Data Centers
Sure, let me know how can I help you.
|
|
|
|
|
Hi
Please do not send me private email. If you have a question ask here so that others can get benefit out of it too.
Cheers
|
|
|
|
|
The last line of your previous message implies that you are prepared to offer personal assistance.
|
|
|
|
|
Richard MacCutchan wrote: previous message implies that you are prepared to offer personal assistance.
No not really. I think he/she got an assignment/project in his School/University and obviously he was not paying attention in all those lectures, so he does not know where to start from and obviously the question for him seems to be alien at this minute and am sure clock is ticking and now all he is bothered about is final product to submit and get pass grade.
My idea is to first train him on how to make sense of the question, what all he can try before asking question here and when he tried enough then what is the best possible manner to ask question here or any other tech forums. If he is running out of time, it's better to fail and then stand up rather than giving up so early and relying on someone else's work.
So all in all, I am not going to work for him but yes if he wants I can put him in a right direction and obviously for similar reason, I ignored his private email and ask him to reply on this thread.

|
|
|
|
|
cp-andy wrote: Sure, let me know how can I help you. That seems a pretty clear indication that you are offering personal help.
|
|
|
|
|
Ok, is there anything wrong in that?
As they say knowledge increases when you share.
|
|
|
|
|
No, but it is reasonable for the OP to assume you are offering to provide some level of personal help, rather than just telling him/her to clarify their question.
|
|
|
|