15,121 Topics

Member Avatar for
Member Avatar for cip6791

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 …

Member Avatar for veedeoo
0
1K
Member Avatar for Gauri_1

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() …

Member Avatar for almostbob
0
4K
Member Avatar for maggoteer

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'); …

Member Avatar for stultuske
-1
249
Member Avatar for sammry

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 …

Member Avatar for pritaeas
0
141
Member Avatar for dbalas

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 …

Member Avatar for dowskee
0
4K
Member Avatar for Zababa

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, …

Member Avatar for asmira
0
247
Member Avatar for cgull

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 …

Member Avatar for paulkd
0
2K
Member Avatar for ganesh wadkar

/* 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, …

Member Avatar for ganesh wadkar
0
135
Member Avatar for kanoy83

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: …

Member Avatar for kanoy83
0
2K
Member Avatar for silvercats

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 …

Member Avatar for silvercats
0
127
Member Avatar for Sanjay_6

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 …

Member Avatar for almostbob
0
223
Member Avatar for Sci3nc3F1cti0n

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. …

Member Avatar for Zagga
0
246
Member Avatar for yankeefan24

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 …

Member Avatar for yankeefan24
0
379
Member Avatar for ronaldpaul

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 …

Member Avatar for Zagga
0
186
Member Avatar for Sci3nc3F1cti0n

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. …

Member Avatar for stbuchok
0
287
Member Avatar for pritaeas

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

0
120
Member Avatar for paine_today

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'); }); });

Member Avatar for paine_today
0
283
Member Avatar for TexITTech

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 …

Member Avatar for theHop
0
335
Member Avatar for paine_today

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 …

Member Avatar for pritaeas
0
242
Member Avatar for MasterHacker110

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 …

0
83
Member Avatar for mmcdonald

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> …

Member Avatar for imBaCodes
0
324
Member Avatar for jinu227

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 …

Member Avatar for imBaCodes
0
1K
Member Avatar for vingan

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 …

Member Avatar for TomH.PG
0
160
Member Avatar for cirbab4

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

Member Avatar for stbuchok
0
200
Member Avatar for Szabi Zsoldos

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 …

Member Avatar for diafol
0
288
Member Avatar for yankeefan24

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 …

Member Avatar for theHop
0
226
Member Avatar for capmarketing

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? …

Member Avatar for theHop
0
163
Member Avatar for Dragan_1

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 …

Member Avatar for LastMitch
0
200
Member Avatar for mmcdonald

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 …

Member Avatar for LastMitch
0
161
Member Avatar for jared_1

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"> …

Member Avatar for LastMitch
0
132

The End.