15,700 Topics
![]() | |
Hello, This is the first time I am trying to use jQuery DataTable. I read a lot of articles, but I can't make it work. I hope someone can help. I need to build a table that displays Rugby games scores. The table I am building should look like this: … | |
We use hashes a lot in our URIs to jump people around to a specific place on the page. For example (www.example.com#part1 and www.example.com#part2). However, we have a static fixed header at the top of the page, and so if it tries to jump you down, it ends up plopping … | |
Hi, I use some jquery/ajax to try and get the id of a link button and display all the products associated with that id. I'm using the exact same code that worked for me on another site, but nothing happens when i click a button! This is the menu of … | |
Have I got this totally wrong ? It should be simple. Whatever I try I return the COMPLETE A-Z and never the selected letter only. It seems I am not able to change the variable $name at all. The relevant code I have made is: <?php $alphasearch=''; $spanSearch = range('A','Z'); … | |
Hi, I have a form that has two controls; a textarea and an upload, one of which is hidden depending upon the selection of a dropdown. What I'm trying to do is alter the action of the form depending on which control is hidden. so if the textarea is visible … | |
This piece of Java works perfectly so that onmouseover of the text an image is placed above the text, my problem is I can't come up with a piece of code for onmouseout to remove the image and restore the site to the way it was before the onmouseover. Right … | |
Hello Im looking for a jQuery Easy Slider type of plugin but instead of images, allows me to present HTML/JS/etc content to the user for when he, for example, click on the next button (something that Easy Slider provides) Anything like this out there? | |
A simple way to create rainbow colored text on your web page. Just cut and paste the code into Notepad, save as Rainbow.htm and run it on your browser. | |
Hi, I am new to Javascript and PHP and I am trying to duplicate some data and store it in a database when users clicked on the "copy button". [Click Here](http://i.stack.imgur.com/9oy70.jpg) With reference to the image(click on the link above), upon clicking "copy trade" the data will be replicated into … | |
Hello Daniweb, I am trying to implement a show/hide feature for a website, to help organise the content more effectively. At the moment I am using a simple JS function that changes the .style.display of a div to either none or block. The problem is that because the content is … | |
Hello! I've been very interested in the V8 JavaScript engine recently, so I fetched the source and built it successfully, so far so good. I also successfully compiled the [Hello, World!](https://developers.google.com/v8/get_started) program Google provides. I've also read the [embedders](https://developers.google.com/v8/embed) guide. Other than that I can't find any documentation or examples … | |
I have a select element that I populate with data returned from an AJAX call. It workds most of the time but its unreliable. Sometimes it works the first time I click the link and sometimes not (mostly it works). I can see that the server is returning the correct … | |
Hello My input field has 2 state. If the user don't scroll the page or the page is in the homes page, the value of the input field is empty. When user starts scrolling, the value will be filled. My problem is when I scroll, the text inside the input … | |
Hello. This is a particle system made using Javascript (CoffeeScript) http://cssdeck.com/labs/53gonama3x How do I add more colors to the particles? Like Rainbow colors or RGB? Thanks. <Moved to JavaScript forum> | |
<head> <script type="text/javascript"> function playPause(x) { var myAudio=document.getElementById(x); if (myAudio.paused) myAudio.play(); else myAudio.pause(); } </script> <head> <body> <audio id="Soundx1" src="../audio/2.mp3"></audio> <button style="background-image:url(../images/audio1.jpg); width:45px; height:45px; border:transparent; margin:0px 0px 0px 0px;background-repeat: no-repeat;background-color:white;" onclick="playPause('Soundx1');" ></button> <audio id="Soundx2" src="../audio/2.mp3"></audio> <button style="background-image:url(../images/audio2.jpg);background-color:white; width:45px; height:45px; border:transparent; margin:0px 0px 0px 0px;background-repeat: no-repeat;" onclick="playPause('Soundx2');" ></button> <body> <Article moved … | |
Hey there I have a strange problem, this is the first time I see something like this I have a form and this form data posted to php file through ajax $('form.ajax').on('submit',function(){ var that = $(this), url = that.attr('action'), method = that.attr('method'), data = {}; that.find('[name]').each(function(index,value) { var that = … | |
This should change the images and image maps then highlight them. But image maps don't seem to be working and higlighting doesn't work either, after clicking on the "go right" link at the bottm. How to make them work? http://www74.zippyshare.com/v/54618428/file.html | |
Hi, i want to crop an image that i upload, then the image appears behind a div where i drag and choose what i want and crop it. Here's what i want after the upload: the black background is the background-color of the body, the image inside the red border … | |
I have javascript:- when we click on the 'home' link it shows home stuff,then when we click the 'about' link it shows the about related things. How to make this only to have one button and that 1 button should be able to change links on clicks. Here is the … | |
Hello, I am having a strange behaviour with jQuery slideToggle. When I click the link with class "tracking" I want the div under it to slide down if it is "closed" and up if it is "open" The problem I have is that when I click the link, the div … | |
Hi, I m not sure how to start this off. I have a bunch of li and I want to add a class let s say .red to li.target at a random time then after a set time remove it. Then repeat. I found a few things online ... but … | |
Hi , I am trying to detect browser close and refresh event when user clicks on browsers button for refresh and close, but still not get any sloution. My project is in PHP. i try the folling code : - window.onbeforeunload = function(event) { alert("dsghjkadghjl"); } $(function () { $("a").click(function() … | |
I'm currently trying to modify 2 scripts to work together. I've gotten everything working except the script isn't passing any, or the incorrect information when it's trying to create a checkbox. Here's the code I have so far: if (strlen($q)>0) { $hint=""; for($i=0; $i<($x->length); $i++) { $f=$x->item($i)->getElementsByTagName('id'); $g=$x->item($i)->getElementsByTagName('item'); $h=$x->item($i)->getElementsByTagName('price'); $y=$x->item($i)->getElementsByTagName('keyword'); … | |
I want to show the live input calculated values in jquery for subtracting and multiplying and summing up the grand total. I could sum up the sub total from the submitted value but am not able to minus the discount or add shipoing cost and multuply by tax from all … | |
Hi! I have a question about pop up windows. I am making a website for adult toys store. I need to add pop up window to the site which will ask visitor to confirm their age. If they are older than 21 thay can proceed to the site. If they … | |
Hey there guys :) I need to create a page (HTML) which contains some static content, and an `iframe`. The `iframe` is used to contain an external page, so I am trying to 'inject' the source of the page into the document element of the` iframe`. You would ask me, … | |
Hello, This is my first time trying to make an ajax call with JSON. I am developing a site with CodeIgniter 2.1.4. I am on the verge of throwing my computer away and find a job selling flowers.... Here's the story: In my view I have a dropdown box: `<?php … | |
/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, … | |
hi guys, 1. i use this script from w3schools it works with real escape string. But my problem is it is slow displaying the table and i dont know how to check the problem. assuming password and table is correct. 2. can i change the "ajax_demo" value or delete? reference: … | |
I have used a javascript to rotate an image. when I add a image map area to the images, it won't show up on the rotating javascript. I have Javascript rotating and image map on two html filles now. Can I cimbine? so I would get an image map with … | |
Please refer - http://web.guru99.com/perl-subroutines/ I am calling the file http://code.guru99.com/perl/perl.js inside the corresponding wordpress post. The file is 750KB in size I am using WP Super cache but it does not cache or compress this file (maybe since it’s called in the post section). How can I compress and cache … | |
Hey guys, I just started learning HTML/Javascript yesterday and I just wanted to mess around a bit. I'm working on a few things dealing with user input but I've come accross a little snag. I want it to take in 3 inputs, do an operation, and then output the answer. … ![]() | |
Im creating a form that every time you select a drop down menu option it will write the value to a text box I have the writing part working. The problem is that is writting to both text boxes when I select on dropdown and it it suppose to be … | |
Hi, I just popped in on a website named http://n-frames.com/. I would like to know what kind of jquery or css effects they are using in-order to achieve the layering effect on the images while scrolling the page as I would like to use this effect in one of my … ![]() | |
Hey guys, I just started learning HTML/Javascript yesterday and I just wanted to mess around a bit. I'm working on a few things dealing with user input but I've come accross a little snag. I want it to take in 3 inputs, do an operation, and then output the answer. … ![]() | |
For all people having issues building the right regex: I just came across this nice little helper, which allows you to describe what you want using chained methods. https://github.com/jehna/VerbalExpressions | |
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"> … ![]() |
The End.