I'm using the following snippet of code in an MVC Action to return an image in an HTML image tag:
byte[] bytes = System.IO.File.ReadAllBytes(fileLocation);
string fileType = "application/octet-stream";
FileContentResult fcr = new FileContentResult(bytes, fileType);
fcr.FileDownloadName = fileName;
return fcr;
The image tag's src attri...
How yo auto-size an iframe when an iframe webpage load?
iframe's src to an external site such as "http://www.google.com"
...
Is it possible to set the CSS properties of a DIV to not initially display, and then have jQuery show it at a later time?
I have some popup bubbles on my website that I do not want to show if JavaScript is disabled.
Currently I have calls to hide all elements when the page loads via jQuery, and only show them when the proper button is ...
Using jQuery I want to be able to click an element which will also checks it's related radio button. I had this working fine until we had to add runat="server" to the radio buttons.
When I apply this it prevents my jQuery function from working and I cant figure out how to get round it, heres a simplified version of the code:
HTML
<inp...
How to align my submit and cancel buttons(in tr) to the bottom of the table?
Please help me out! Thanks guys!
.
.
.
.
<tr align ="center" valign="bottom">
<td align="center" valign="bottom">
<asp:ImageButton ID="btnDisable" runat="server" ImageUrl="~/images/green-deactivate.gif" OnClick="btnDisable_C...
Hi,
Just wondering if anyone knows of any issues with regards to iframes and ie6 browser, specifically to do with the mouse being moved outside the bounds of the iframe which results in any processing occurring inside the iframe to halt?
For example, if I have a "Search" screen inside an iframe, perform my search, if I move the mouse o...
Is there anything else I could use instead of an iframe on my web page by where I still need to pass a url or is iframe it?
Thanks.
...
I have a basic show/hide javascript that works, as long as i don't make it dynamic and make sure of a parameter. I would appreciate a lot if anyone could help me figure out why the dynamic version doesn't work.
Working code:
javascript
function togglesDiv(){
var catdiv = document.getElementById("addNewCat");
if(catdiv.style....
I've been trying to figure this out for over a day now, so any help would be appreciated.
I have a Suckerfish menu that's made up of ul/li's. I'm trying to add some top down scroll indicators to my menu. In my example I have a blue and green indicator which are just placed inside the menu for now. These indicators are just another LI ins...
How to redirect domain to another domain, when the first domain (webpage) load?
...
I'm working in a program that called Artisteer 2. This program constructs template designs for joomla, dumpress, html, css, etc. How can I build an algorithm that generates the color of my site?
...
When the user clicks the button, onclick, the content of the div with id 'cart_item' should be cleared. This question may look silly. i am beginner to javascript. Plz help me
...
how to hide URL Loading In Status Bar in IE and Firefox?
...
My android application displays webpages(i used webview for it). .but javascript onthe wepage is not running in a webview .If i visit the same webpage through the Browser,javascript is running . How to run javascript in an application(using a webview)?
...
For many years now, it has been known that a website can use CSS/JS to determine websites that have been visited by a user, e.g.
http://news.softpedia.com/news/Mozilla-to-Fix-8-Year-Old-Browser-History-Leak-Issue-139015.shtml
http://yro.slashdot.org/story/09/07/02/1317205/Your-Browser-History-Is-Showing
There are sites that will use th...
I have a div with the background-size: 25%... I have some JavaScript that does a dropdown box. Without the div, the transition is smooth, however with the div present, the dropdown box is very choppy. Its only choppy when the background-size is set to 25%... Is there a way to fix it so it isn't laggy?
...
I have <ul> tag, in that I have couple of <li> items. When I added text to list item. Text is showing left side. I want make it center. I tried different ways to make it. But still showing left side.
<ul>
<li > <a href="#fragment-5" >
<asp:LinkButton ID="lnkResources" runat="server"
CssClass="custom-tab" Text="Favorit...
So i have an image in stuck to the top of my page that repeats all the way across the top. For some reason when I resize the window and then scroll over to the right it stops repeating. The div is the first in the document outside of the wrapper. Any ideas?
#header {
background-image:url('http://daveywhitney.com/img/paperhead.png');...
I want to span the header of my table to 2 columns(2 td s) and to 2 rows(2 tr s). I tried using rowspan and colspan together, but it doesnot work for me. The header doesnot have anything written in it. It just colored background. Codes I wrote is as follows
<table width="100%" cellpadding = "2" cellspacing = "0" border= "0">
<tr valign...
I have two input fields (a textbox and select) that I would like to get stacked on top of eachother. In my js, I will check the value of something and set on the of the elements style to hidden. When I use the following code, the select and textbox are both completely visible (this is before I mark one as hidden). Is there a CSS property...