Scale a div to fit in window but preserve aspect ratio
How can I scale a div to fit inside the browser view port but preserve the aspect ratio of the div. How can I do this using CSS and/or JQuery? Thanks! ...
How can I scale a div to fit inside the browser view port but preserve the aspect ratio of the div. How can I do this using CSS and/or JQuery? Thanks! ...
I'm currently writing some MATLAB code to interact with my company's internal reports database. So far I can access the HTML abstract page using code which looks like this: import com.mathworks.mde.desk.*; wb=com.mathworks.mde.webbrowser.WebBrowser.createBrowser; wb.setCurrentLocation(ReportURL(8:end)); pause(1); s={}; while isempty(s)...
I'm using jQuery's hover() helper to attach some behavior to <li> elements in a <ul> with max-height and overflow:auto CSS properties. When the height of the <ul> goes beyond max-height and the vertical scrollbar appears, hovering over the <li> elements triggers mouseOver, but if I move to the right to the scrollbar and start scrolling...
edited code //array store the markers var googleMarker = []; //this function get json object with the marker data //place name,place id,place address. function AjaxGetUserToPlaces(res) { var l = res.value.length; for(var i=0;i<l;i++) { var point = new GLatLng(res.value[i].lng,res.value[i].lat) map.addO...
hi guys, I have variable named s in javascript.It contains value as '40&lngDesignID=1'.I want to split it with & and want to get 40 and lngDesignID=1.How can i do that in javascript?Can anybody help? ...
Assume that a hidden field <input type="hidden" id="hdn" name="hdn" value="100" /> So i want to blank the value of hidden field using Jquery. In javascript we can blank using this syntax document.getElementById("hdn").value = ''; but i want it using jquery. ...
I try to make firefox extension, that display two buttons: 1 and 2. When you press button1 to var path get value, that is address of current open page, then new tab is opening becoming active. In this tab there is button2, that allow to put (innerHTML) value of var path (this address of first tab). And now the problem: button1 uses funct...
I currently have a slider control that looks like this: <cc1:SliderExtender ID="sliderTest" runat="server" Enabled="True" TargetControlID="txtBoxTest" BoundControlID="lblTestSlider" Decimals="0" Maximum="10" Minimum="0" EnableHandleAnimation="true"> </cc1:SliderExtender> <asp:TextBox ID="txtBoxTest" runat="server"></asp:TextBox> <...
Hi there, Do you have any idea about how is made, or how can be made the slide-show from vertigosoftware.com but without using a Silverlight technology. Do you have any idea if that can be made with jQuery? Do you know which jQuery plugin does that? Many Thanks ...
I've got multiple input fields where they have the same class names. I need to check to make sure at least 1 of them isn't empty. So I've got, $('form[name=expForm]').submit(function(){ var msg = ""; var found = false; $('.date-mask').each(function(){ if($(this).val()){ found = true; } }); if (found != true) { msg += "P...
I am accessing head, var head = document.getElementById("head"); Works with IE, not with Firefox.. ...
The Javascript checkbox script (by ryanfait) worked beautifully when I used it at first. Then I needed to alter the form I made so that asp.net could process the form, but now the checkboxes are default. Is there a way to alter the script to make it work on the asp:checkbox? I call the function like so: $(document).ready(function() { ...
I have a Javascript class that contains add remove removeall update . . . updateLik . . functions. And in my Serverside script a have Links like Add Now if user click on the DIV, the function "add" will be called. and the add function calls in turn the updateLink function. updateLink replaces the onclick attribute to "myobject.dele...
Hello, I have for example ASP.NET site with textbox, button and many other controls. When user click on button i want to retrieve some data(string,number) from DB(MSSQLServer) and show these data to user without postback(ajax). How can i do this? Thanks ...
Hi everyone, I'm currently trying to get a script to submit a form to a page that is external to my site but will also e-mail the answers given by the customer to me. The mail() function has worked fine for the mail... but how do I then take these values and also submit them to the external page? Thanks for your help! ...
I'm doing some basic text matching from an input. I need the ability to perform a basic "AND". For "ANY" I split the input by spaces and join each word by the pipe ("|") character but I haven't found a way to tell the regular expression to match any of the words. switch (searchOption) { case "any": inputArray = input.split(" "); ...
I'm attempting to build a webpage that loads depending on the input provided. I'm having some trouble wrapping my head around event handling in javascript, basically. Coming from python, if I wanted to wait for a specific keyboard input before moving on to the next object to display, I would create a while loop and put a key listener ins...
I am dynamically sizing a transparent .gif on my web page using JavaScript. The original image size is around 200x200 pixels and it’s typically resized to between 600x600 and 800x800. In IE8 and FF3, the resized image results in a nice looking gradient where the colors appear to be stretched. However, in older browsers such as IE7 and FF...
PROBLEM: when i press play the audio starts but the video does not. CODE: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>JW Player for Flash</title> </head><body> <script type="text/javascript" src="swfobject.js"></script> <script type="text/javascript">...
I'm using this jQuery Tooltip plugin: http://docs.jquery.com/Plugins/Tooltip I create tooltips for all links when the document is ready, like that: $(function() { $('a').tooltip(); } But when I add some links to the document later, the plugin wouldn't display jQuery tooltip on them. I supposed that when I call $('a').tooltip(); ...