15,121 Topics
| |
hello friends i want to creat a calculator in my form for calculate total price in real time for exemple" total field = price field + quantity field" my form is a html form and price value is php value <form action="" method="post" name="formulaireajout" class="formulaireajout" id="formulaireajoutid"> <input name="price" type="text" id="pricefield" … | |
I was wondering if there's a site out there that gives statistics towards the percentage of sites that use jQuery UI? (Note I'm not looking for the actual number of sites nor jQuery itself ... just jQuery UI). I rolled a custom version of jQuery UI that only uses about … | |
Im new in Ajax, i try to learn Ajax to change my PHP script into Ajax,. when i look for an reference, i found a defferent Ajax Script, and Ajax JQuery? so what is deference between AJAX and JQuery? | |
here is the code for menu. (document).ready(function(){ $("#main-nav li a.main-link").hover(function(){ $("#main-nav li a.main-link").removeClass("active"); $(this).addClass("active"); $("#sub-link-bar").animate({ height: "40px" }); $(".sub-links").hide(); $(this).siblings(".sub-links").fadeIn(); }); $("#main-nav").mouseleave(function(){ $("#main-nav li a.main-link").removeClass("active"); $(".sub-links").fadeOut(); $("#sub-link-bar").animate({ height: "10px" }); }); }); HTML code <div id="sub-link-bar"> </div> <div id="wrap"> <div class="roundfg"> <ul id="main-nav"> <li><a class="main-link" href="#">Home</a> <ul class="sub-links"> <li><a class="main-link" … | |
Hi folks I want to universal website crawler using PHP, so my crawler will work on any given site. By using my web application, user will input any site, will provide input, what he needs to get from given site and will click on Start button. Then my web application … | |
Hi Guys, I am trying to apply Microsoft.XMLDOM object for all browsers support but i am not getting proper code or object. can anyone help me on this one. var nodes = new ActiveXObject("Microsoft.XMLDOM"); nodes.async = "false"; if (Comments.length > 0) { nodes.loadXML(Comments.item(0).xml); Thanks in advance. Gaurish | |
Hi all I've created simple javscript gallery using previous and next links. The problem is that I want fade effect between images like this: [url]http://tobia.github.com/CrossSlide/[/url] I've pasted few lines of jquery code in my javascript functions but the fade effects aren't the same. Any help will be greatly appreciated. Best … | |
Hi Is ther anothe easy way to detect browser used and versions and Operating system via javascripts? I appreciate your help | |
Hello guys, I am writing a Greasmonkey script and I need little help here. So I have this code: $(document).ready (get); function get () { var elems =$( "a[id*='myId.']" ); if (elems.length>0) { $("a[id*='myId.']").trigger("click"); } } the point is that there are a lot of a tags with id myId.N … | |
hi! good day sir. how can i add a link <a> to body <body> with a function <onclick=""> that change the center of google map. HTML <a href="" onClick="myFunction()">location 1</a> FUNCTION function myFunction() { ??????? } | |
I'm using a bootstrap pseudo-button (a link that looks like a button). It links to a page using PHP that downloads the file (the user is never shown the linking page). When the link is clicked I want it to be replaced with something to indicate progress is happening (for … | |
Hello. I have a function that checks the internet connection. I need to set a timeout to it. I have tried without success to do that. Please help. Here is the function: function isOnline() { if(navigator.onLine){ var uri = baseUrl+'ping'; var xhr = new XMLHttpRequest(); xhr.open('GET',uri,false); try{ xhr.send(); return true; … | |
var pattern =/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/; | |
ey guys, i need to redirect a page but when redirected it redirect to .... blehblehblehblehwww.myredirectedpage.com <script> function readress () { window.top.location = "www.myredirectedpage.com"; } </script> <body> <input id="resultado" type="button" name ="boton" value="" onclick="readress();"/> </body> thanks! | |
Hey everyone, I'm trying to create a form to upload files and create links from the uploaded files to download for whoever visits that particular page. I've gotten the files to upload to the folder and display as a link but whenever I refresh the page, the links go away, … | |
I'm wondering how to detect IE11 and its version with javascript and debug my css style with jquery or by just if(//IE11){ <style> #sms-cont { height:315px; } </style> } or by if(//IE11) { $(document).ready(function () { $("#sms-cont").css({ "width": "385px", "height": "315px" }); }); } how to do this any idea? … | |
Hello, I am trying to extract ALL strings between two apostraphes within a given string but for some reason I only seem to be getting the first one. The string I am trying to extract from is: `'1962' '1963' '1964' '1965' '1966'` The code I'm trying to use to get … | |
Friends, in my project i'm using onblur event in four text boxes and using that onblur event i wanna call different javascript functions i.e', like first text box onblur="test()" and in second text box onblur="test1()" etc. But only one onblur onblur is calling the function and other onblurs are not … | |
Hello friends got a simple question again(im a noobi i know) so got i got a checkbox in html i want to know how to manipulate checkboxes how i know if its checked... blehh i explain in the code <!DOCTYPE html> <html> <head><script type="text/javascript"> function myFunction() { if (// checkbox … | |
Hey guys i have a question, so i need boxess in my website to store name, weight, etc now i know this is done with html but i need to be able to control and do math with those number how i would do thaht with java ? i mean … | |
I'm new in ajax i've success to insert data to my database using ajax in chrome.. but when i open my mozilla, and try again I cant get my script work ?? what happen? please tell me how the way to fix it .. | |
The following PHP code works fine with javascript in Internet Explorer but fails in Firefox. Javascript is enabled in Firefox. It appears that when the button/icon is clicked, it enters the javascript function, but doesn't change the icon on the page. It also seems to return to the PHP code/page … | |
I am using asp.net 4.0 and c#. I have a page at work that is used one time per year by one person to run several stored procedures on January 1st. In order to make it more interesting (since she has to work every New Year's Day) I try to … | |
Sir, I am using these codes. <script type="text/javascript" src="jquery-1.7.1.min.js"></script> <script type="text/javascript"> function checkEmail() { var email = document.getElementById(xemail); alert(email); var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; if (!filter.test(email.value)) { alert('Please provide a valid email address'); email.focus; return false; } } </script> <tr> <td width="40"><label>Email</label></td> <td width="40"> <input type="text" name="email" id="xemail" value="<?php echo $myemail; … | |
<script src="http://code.jquery.com/jquery-1.10.2.min.js"></script> <script type="text/js"> $(document).keydown(function(e){ if (e.keyCode == 37) { alert( "Left"); return false; } }); </script> How to make this work? I am using Firefox and don't I get this working. | |
Hello All: I am using a div to simulate a checkbox effect; thus, with each click of the div, my jquery displays a different option (in my case: whether the user wants to select a Monthly or Yearly Subscription). The Jquery code: $(document.body).ready(function () { $(function () { var main_obj_id … | |
How come the last condition is executing, instead of the first ? Why isn't the while loop working ? document.prompt("hello there") if (i==2 || i==4 ) { document.write("smart"); while(i>6){ } if(i=8){ document.prompt("can you ask me again"); }}else (i>=9){ document.write("you are a lemon"); } //document.write(" I want to buy an apple … | |
hi, i want to change the image class on click on the image, i am also using radio input, here is my fiddle, check out and tell me what is wrong? [http://jsfiddle.net/Avik/7aKY3/1/](http://jsfiddle.net/Avik/7aKY3/1/) | |
Okay so i have page1.php which has anchor tags. what i want to happen is that when, for example, Page 2 is clicked it directs to page2.php but also will get data from database and display the data in the textboxes in Page 2. I know that ajax will be … | |
Hello, I am trying to add a 2nd tab area to the jquery tabs, I want the new content area to appear before the tabs then the 2nd content to appear. My plan is to have images appear before, and both be controlled by the tabs. <!doctype html> <html lang="en"> … |
The End.