showing a hidden div from jquery
i have a div that starts out hidden: <div id='deskView' style="display: none;"> how can i make it visible using jquery on a button click ? ...
i have a div that starts out hidden: <div id='deskView' style="display: none;"> how can i make it visible using jquery on a button click ? ...
Hi everyone, I've developed a rails website in which I've got a text box with autocompletion facilities (When the user starts typing, a list of valid values "drops down" under it). For this, I used Rail's autocomplete. Now I'm developing a mobile version of this site. Since the target browsing phone will be the iphone, I'm using jqtouc...
I have a dropdown box (Combobox). Everytime I make a new selection a table element must show or hide depending on my selection. Now my problem is it's working in Firefox but not in IE. The dropdown has an onchange event which calls the JS function below. The tr element has the ID #mainItem. function toggleMainPageOption(){ ...
I have a TreeView menu on a parent or base base that hosts an IFrame in which content pages corresponding to menu items are loaded. Ideally one of my content pages should dymamically insert its own contextual items into it's section of the TreeView menu. I have a strong suspicion that jQuery is pretty much the only tool I am familair wi...
Hi, I'm looking for a jQuery popup calendar (like the jQuery UI Datepicker) but I don't want to use it as a date picker, only as a calendar to show that certain dates have been booked (using some styling to highlight each date, the way outlook does in the month view). Does anyone know of any plugins that can do this? I've had a hunt b...
I use to jquery's ajax function to update a div on my page. Everything works fine, except my page is scrolled up. I need somehow return to the updated div position. Any suggestions ? ...
I have a HTML snippet as follows, I want to take the 'article-form' div, clone it, and increment the numbers for the attributes for, id, and name. <div class="article-form"> <label for="id_form-0-section">Section:</label> <select id="id_form-0-section" name="form-0-section"> <option selected="selected" value="">---------...
Hey everyone, function ajaxFunction(phpFunction){ var ajaxRequest; // The variable that makes Ajax possible! try{ // Opera 8.0+, Firefox, Safari ajaxRequest = new XMLHttpRequest(); } catch (e){ // Internet Explorer Browsers try{ ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP"); ...
Hi, what im wanting to achieve is if a error appears ( one which I have come up with ) and contains the word 'error' then the function stops in its tracks. What the function basically consists of is 5 ajax requests, when one is successful the other kicks in.. like so.. function thing() { $.ajax({ ... ... su...
the html is <a class="minimize" href="#targetElem" >Min</a> <div id="targetElem"> <p class="handler"></p> <div class="content"> content area </div> </div> the javascript is the following code $(document).ready(function(){ $('a.minimize').click(function() { $($(this).attr('href')).siblings(".content").slideToggle("slo...
I stripped all my logic out of my jquery plugin for this question, but my problem is that when I call my function checkValidationName, it does it's thing and sets name = to true. Then when i try to compare it right after where i called it, the value is false. Why is this? (function($){ $.fn.validate = function() { ...
Hello! I want to be able to update fields of my models by showing the values and then having a little "edit" button next to it, which would turn the label into textbox/dropdownlist and the edit button should disappear and instead show a Save and Cancel buttons. The save and cancel buttons should disappear when you click on them or on an...
Say I have a table of items and I want to add to every row a button to delete that item. Items come from a database, so they have an unique ID. In the jQuery function I have to retrieve the ID of said item so that I can open a confirm box and eventually redirect the browser to the delete page (nevermind security checks, it's for internal...
Hi, I'm looking to generate random "similar" colors using jquery. It is my understanding that the best way to approach this is using HSL or HSV, according to this question. The issue is I can't seem to figure out how to either… Use HSL or HSV with jquery; or Convert HSL or HSV to RBG via jquery I found this color library, but ...
Does anyone have any insight on what's going on here? Here is my clientside jquery 1.4.1 code: $.ajax({ type: "POST", url: "PrintBOL/Print", data: [1, 2, 3], contentType: "application/json; charset=utf-8", dataType: "json", error: function(xmlHttpRequest, status, errorThrown) { console.debug(xmlHttpReque...
Code below select the <td> in which I'd like to select an <a> tag. How can I get the <a> ? var refresh_link = $(this).parent().next().next() Markup: when I click TEXT LINK A I want to select TEXT LINK B <tr> <!-- product id --> <td>6005</td> <!-- product name --> <td> Bla bla text...
I'm trying to select a <div> inside of a <p> by name, but it's returning 0 results. The same type of selection works fine for <input> and <span>, but not for <select> and <div>. The code below demonstrates what I mean: <html> <head> <script type="text/javascript" src="jquery-1.4.1.min.js"></script> </head> <body> <p id="foo"> ...
I'm somewhat new to this so I think there is an easy answer. I have a function that strips the youtube id off a url. I then want to use this function 10 time per page (in the wordpress loop). The function works great when I feed it the url within my function script tags, but when I start a new set of script tags within the loop, it do...
Hello, I am using the example below to do a cross-domain ajax call using .net web services and jquery. http://bloggingabout.net/blogs/adelkhalil/archive/2009/08/14/cross-domain-jsonp-with-jquery-call-step-by-step-guide.aspx It works fine until I try to change my endpoint to https. I don't get any errors, just no response. My first qu...
The following code is given by one of user and friend on stackoverflow as solution for my problem. HTML Code <img src="https://s3.amazonaws.com/twitter_production/a/1265328866/images/twitter_logo_header.png"/> <input type="text"/> <input type="text"/> <input type="text"/> <input type="text"/> <div class="sample"> <img src="http:/...