15,694 Topics
![]() | |
Any idea why only the first "click" works? I am relatively new to jQuery, so it is, in all liklihood, something rather simple. Any help is greatly apprecaited!! $(document).ready(function() { $("div.arrow").click(function(){ $('div.active_arrow').text('↵').removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); $(this).removeClass().addClass('active_arrow'); $(this).parent().find('div.rss_news_link, div.rss_news_link_odd').height(+100); $(this).text("X"); }); $("div.active_arrow").click(function(){ $(this).removeClass().addClass('arrow').parent().find('div.rss_news_link, div.rss_news_link_odd').height('auto'); }); }); | |
This code is the javascript for only one part of the site that I am creating for work. What I need this to do is accept input from the user about information that must be approved at a later time. the information is set in a form and needs to … | |
Currently I am using this script (http://johannburkard.de/blog/programming/javascript/highlight-javascript-text-higlighting-jquery-plugin.html) on my website - www.tompainetoday.com. It works when you hover your mouse over a "Trending Now:" term, then that word is highlighted throughout the page. The highlighting is removed when you hover over the header image (yes, I know, poor UX, but it … | |
I am trying to find a scripting language for some simple tasks etc... I tried python - dont like the whitecpace thing. Ruby - just a weird language. Javascript on the other hand has syntex that I like - C/C++/C#/Java like - and it uses curley braces. But the draw … | |
Been trying to get this working for a few hours now but can't seem to get a result. Any advice would be welcomed with open arms! I'm using the JQuery Validation Plugin: [http://jqueryvalidation.org/validate/](http://jqueryvalidation.org/validate/). I have included the following into my file: <script src="assets/plugins/jquery-1.10.1.min.js" type="text/javascript"></script> <script src="assets/plugins/jquery-migrate-1.2.1.min.js" type="text/javascript"></script> <script src="assets/plugins/jquery-validation/dist/jquery.validate.min.js" type="text/javascript"></script> … | |
I have a list of categories with different titles from A-Z. I want to sort the categories alphabeticaaly on clicking a particular alphabet... I have used jquery and ajax.. Alphabetics placed are as follows <?php $a=range("A","Z"); foreach($a as $char){ echo "<a href='javascript:void(0)' class='faq_letter' rel='".$char."'>".$char."</a>"; } ?> The script is as … | |
Hi, I have created an order form with the required fields in that i have two options, one to access the site for free and the other to be a member which requires payment. On the drop-down, I have set the member option to go to paypal page. My question … | |
I have this simple javascript function which counts the number of characters the user is able to enter in a text box/ text area: http://jsfiddle.net/9XhDK/ how can I cater for any backspaces? (I a user deletes a character the number of characters left increases by 1)? Thanks ![]() | |
Hi guys, I don't even know where to start, the ideea is that I want to develope an API that responds with certain data, but I don't have a clue for what to look. The ideea is that there is a panel like google analytics but with no stats, but … ![]() | |
I need to calculate the number on selections. Im using the value as reference I dont need my function to add the values I need to add the number of fully successful, exceptional, or need imporvements. Here is a code I have but it calculating the total based on the … | |
This may be the ugliest bit of javascript you've ever seen... but can someone tell me why the elements come through un-styled even though I am clearly writing to divs that are classed and the stylesheet is pulled in? Definitely falling victim to some noob error here, but which one? … | |
I have problem with markers, actually with clicking on it. I want to achive that, when i click on a marker, on a left side in a div show name of that marker. Problem is that I always get name from last marker. I guess, that is a problem in … ![]() | |
Hi all! I'm trying to validate this form: <form action="<?php $_SERVER['PHP_SELF'] ?>" class="horizontal-form" name="settings" id="settings" method="post"> <div class="row-fluid"> <div class="span4 "> <div class="control-group"> <label class="control-label" for="firstName">First Name</label> <div class="controls"> <input type="text" id="fn" class="m-wrap span12" value="<?php echo $userInfo['fn']; ?>"> </div> </div> </div> </div> </form> I've added my validation js files.. These … ![]() | |
Ok seriously this is driving me insane. I am using firefox and i cannot get this image to stay on screen. Im trying to make the image move when i press keys but any keybinding makes my image vanish. I guess i just suck idk. <html> <canvas height="480" id="gamescreen" width="640"> … ![]() | |
I'm building a Phonegap app, and am using the Facebook Javascript API to log users in. My code is as follows: FB.login(function(response) { if (response.authResponse) { console.log('Welcome! Fetching your information.... '); FB.api('/me', function(response) { console.log('Good to see you, ' + response.name + '.'); }); } else { console.log('User cancelled login … ![]() | |
I'm trying to get [grunt-jsdoc-plugin](https://npmjs.org/package/grunt-jsdoc) to work, and I'm having a small problem. In my console, I keep getting: Running "jsdoc:dist" (jsdoc) task Warning: Cannot read property 'src' of undefined Use --force to continue. Aborted due to warnings. In the grunt-jsdoc-plugin documentation, it says: src : an array of pattern … ![]() | |
I made the following code to replace form fields in a page that I can't edit but only manipulate. However, the code does nothing. In chrome console when I print a variable it works fine. The code is below: //GET val from drop DROP DOWN var office_id = FieldIDs["OfficeName"];//Gets the … ![]() | |
On selection from drop down in few cases the label above the drop down (label being attached dynamically) disappears here is the code $.ajax({ dataType: "html", url: app.util.appendParamToURL(options.url, "format", "ajax"), data: options.data, type: options.type }) .done(function(response) { // success if (options.target) { $(options.target).empty().html(response); } if (options.callback) { options.callback(response); } }) … ![]() | |
Hello there guys! :) It's been quite a while since the last time I've been here. I am currently working on topics different from my usual, and I have found myself baffled by a problem. So, here goes: I am working on a web application which collects user fiscal data. … | |
I have this form where I pass select values to an input field. Is it possible to pass this results in to a td instead of an input field? here is the code http://jsfiddle.net/jencinas69/ytXnC/ ![]() | |
My intention is to build a conference booth map. Let's say I have drawn a square on an image file with a fill color of white. I need to have the ability to change the fill color. How can I programatically do that via javascript? Or is there any software … | |
Hi there ! The code(in model) given below generates the list structure: function getNavigation($parent_id = 0, $show_product = 0, $flg = 0 ){ $query = $this->db->get_where('categories', array('parent_id' => $parent_id)); //var_dump($query->result()); //exit; if($query->num_rows() ){ $this->navigation .= '<ul id="browser" class="filetree">'; foreach($query->result() as $v){ $this->navigation .= '<li> <span class="folder">'; if($flg) { if($v->categories_id == … ![]() | |
I’m pretty much new to codeigniter and PHP. I need help with insertion of data in the db from multiple clone form fields(not using implode, I have used implode and managed to push data which I will post here), this from clone form fields(If I click add, it should display … | |
Hi guys, I am struggling with regular expression.Can you please suggest the regular expression for the below patterns. I have tried many times with several patterns but still i could not resolve the below patterns. 1. Must contain at least one alpha character (i.e. a, b, c etc,) 2. Only … | |
Hi, Can anyone tell me how to get instagram api for displaying images in website. Ex: instagram.com/miniusa //getting images of miniusa Thanks in advance | |
Hi All: I have a challenging jQuery XML task I'm trying to accomplish as follows: I have an XML structure as follows: <nav_data> <outline> <links> <slidelink slideid="_player.6LjVRsWzPla" displaytext="Scene 1" expand="true"> <links> <slidelink slideid="_player.6LjVRsWzPla.6GWiXuWmXyn" displaytext="Fundamentals" expand="true" /> <slidelink slideid="_player.6LjVRsWzPla.6gxk7XqbaT8" displaytext="Closed Captioning Example" expand="true" /> <slidelink slideid="_player.6LjVRsWzPla.5rPNkwvz8u2" displaytext="Another Cationing Example" expand="true" /> … ![]() | |
i want to do something like this how do you do it? <?php $meat="cow"; <script type="text/javascript"> document.write($meat); </script> ?> | |
Hello, I am developing a site with CI 2.1.3 I have a blog module, in this blog I have a form to post a comment. I am calling this form inside a view with: `echo Modules:: run('blog/comment');` When I submit this form with ajaxForm, or refresh the page, the values … | |
Hi all, I'm currently looking at this [JSFIDDLE](http://jsfiddle.net/MH8e4/6/) and it's 50% of what I need. I have a series of Accordions on my page (a list of courses). What I would like to do is assign these accordians to categories so that when a checkbox is pressed with the id … | |
Hi, I try to do the examples in these pages but none works. When i run, it shows "Error" word on the status bar of my browser. What do you think it doesn't run? Thanks [url]http://www.w3schools.com/PHP/php_ajax_xml.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_database.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_responsexml.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_livesearch.asp[/url] |
The End.