15,127 Topics
| |
Sometimes a css file wont load because of a slow connection or a conflict between scripts (or just any other reason). This specially problematic on mobile websites (looking at you IOS) where many standards are applied. So this little script will add a link tag to the head tag and … | |
I have no idea why I cannot get jquery to parse a JSON array from a PHP server side call. Here is my jQuery $.ajax({ type:"POST", url:"/Home/Profile/cb_profile.php", data:{loadProfile: JSON.stringify(itemsToPost)}, success: function(data){ var returnedItem = $.parseJSON(data); }, error: function(e){ console.log("We've had a error"); }, }); Here is my PHP if(isset($_REQUEST['loadProfile'])) { … | |
I have function that creates textareas fields on the fly upon a click on a link I want to convert these textareas into tinymce wysiwyg here is the code $("body").delegate("a.add_tab","click",function(e){ e.preventDefault(); var uniq = $(this).attr("uniqid"); add_tab_ui($(this),uniq); }); function add_tab_ui(elem,uniq){ var content = "<div class='wrapTab'><label >Tab Title:<input type='text' name='tab-title-"+uniq+"' id='tab-title' value='' … | |
Good day, I need help with my ajax based dynamic drop down list. Right now, ajax.php pulls up data depending on value at a single column. I need it to pull up data based on value at certain columns. I am new to php and its going over my knowledge. … | |
Hi, I am confused on why my function is not being executed. I have setup the AJAX to insert data into the database and on success to grab information from the database and print it out on the site, but I also added a function to be called or executed … | |
i have two product categories which customer can preview when click, and wish to show a message on each item. Ive found a nice script but need help to make this in 2 sets. need help. Happy new year! <!DOCTYPE html> <html lang="en"> <title>Untitled Document</title> <script type="text/javascript"> var current = … | |
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; … |
The End.