Browser support
I need to make this function work everywhere, except IE6-7 $(function(){ window.scrollTo(0,300); }) Please help. ...
I need to make this function work everywhere, except IE6-7 $(function(){ window.scrollTo(0,300); }) Please help. ...
So just this week I had the opportunity to re-build my development machine and I opted to use Windows Server 2008 x64 version for my operating system. I re-installed Visual Studio 2008 along with all of my other development tools. I surprised to see that the KB958502 hot fix did not recognize my installation of Visual Studio 2008. I wond...
I am using this code to get the background image of a div. var bgImage = $('#content').css('backgroundImage'); This is returning url%28http://example.com/images/layout/content-trans.png%29 I know you can do element.height() to get an element's height without px appended (parseInt() also works), so I was wondering if there was a simil...
Hi, I'm having a bit of trouble with the jQuery css() function at the moment. It is changing the css value of the anchor element's border-top-color instead of just the anchor element's border-top-color when hovered. Below is my code. $("#header #headerlist li a:hover").css("border-top-color","rgb(225, 149, 79)"); Any ideas why it cha...
I have a three step registration process, all on one page, the last of which requires the user to select a saved payment method or input a new one. Obviously, I want to collect that new data over SSL. Step 2 of the process involves showing the user a Google map, and the GMaps API doesn't play nice with SSL. My solution is to use a popu...
Hey, i have been browsing the jQuery webpage for cool ways to create a webpage-portefolio and am looking for cool ways to show of my work on my webpage. Please give me some examples of this, so I can make the best possible experience of my website :) Wordpress as a Portefolio 10 steps to the perfect portefolio Examples of a good porte...
I have the following jQuery: $(document).ready(function(){ $(".element").draggable(); $(".element").droppable({ drop: function() { alert('dropped'); } }); }); Anything with the class of 'element' can be manipulated and dragged around the page. I want to be able to find the html contents of the element...
Basically, I have several Radio Buttons in a filtering column. For example, if I am in the \Catalog\Flooring\Harwood section I have Radio Buttons for [Area Rugs], [Carpet] & [Stone & Tile]. So, what I want to do, instead of embedding an tag under the Radio Button I'd like to fire a JQuery event and do a regular post back to the server...
I have a list of items on a page with a set of controls to MoveUp, MoveDown and Delete. The controls sit at the top of list hidden by default. As you mouseover an item row, I select the controls with jquery //doc ready function: .. var tools = $('#tools'); $('#moveup').click(MoveUp); $('#movedn').click(MoveDn); $('#delete').click(Dele...
Hi all, I was wondering if there was a way to determine the height/width of a browser. What i'm trying to do is set a height on a div to 500px when the browser size is 1024x768, and for anything lower i'd like to set it to 400px. Thanks in advance ...
hi im trying to post a group of array using jquery post method but , am having trouble getting the value of those array how can i get the values of the array that i have sent ? if somebody could help me i would be grateful.... here is what i have done: $(document).ready( function() { $("#submit_info").click ( function() {...
Suppose if I have multiple tables in my HTML page (without their 'id' attribute), so how can I select first row of the first table or any specific table using jQuery selectors? ...
how i do validate two date textboxes using jquery. i came across this snippet of code. how do i enter the textbox parameters: $.validator.addMethod('greaterThan', function(value, element, param) { return ( IsNaN( value ) && IsNaN( $(param).val() ) ) || ( value > $(param).val() ); }, 'Must be greater than {0}.' ); $.validator.addMethod(...
I am trying to get the text inside an element and I only want to get the text if it's inside the first-child of a placehoder div or if there are no childrent and it's only text inside. So the two scenarios are: <div id="wrap">text1</div> and <div id="wrap"><b>text1</b><b>text2</b></div> So In both cases I want to get back "text1" I...
I have a standard textbox and I've got jQuery on the page. I want to act when the user types a space into the textbox, I am however unsure of how to do this. Can anybody give me a hand with this please? ...
In my application I have a drop-down form that fires up an AJAX request onchange and returns the selected user name value with a "delete" image next to it. <div id="el">User Name <img src="ico/del.gif" onclick="ajax_delete(12)" class="del" /></div> Strangely if the page was loaded for the first time, the following jQuery code is execu...
I am retrieving a list of files from a web service and displaying them as links. When someone clicks on the link, the file should start downloading. The problem is that no direct access to the file exists. Here is the process to download a file: User clicks on link Server calls web service to retrieve file Browser is loading for as lon...
For some reason our datepicker is falling behind the dropdowns below it in IE6 www.senegal.co.uk Every search I have done seems to suggest the datepicker should deal with this. We do have the following css in place: .ui-datepicker-cover { display: none; /*sorry for IE5*/ display/**/: block; /*sorry for IE5*/ position: abs...
I'd like to inject jQuery into a page using the Google AJAX Libraries API, I've come up with the following solution: http://my-domain.com/inject-jquery.js: ;((function(){ // Call this function once jQuery is available var func = function() { jQuery("body").prepend('<div>jQuery Rocks!</div>'); }; // Detect if page is alrea...
A client uses yahoo calendars for his business. He is asking me to create a calendar to show the event updates he makes on Yahoo. I am using Jquery on the site already and would prefer to use it for this as well if possible. I see there is datepicker and such, but this needs to just display the Yahoo or Google (he said he would be ope...