15,120 Topics
| |
2. Write a custom error handling JavaScript function called processErrors that handles a custom error by assigning it to the onerror event handler. Include the block of JavaScript statements needed to pass the arguments sent by the JavaScript interpreter into the processErrors function, send an alert message with the agreements, … | |
Here is my form.html <html> <head> <script type="text/javascript"> function ajax() { var aj; if(window.XMLHttpRequest) { aj = new XMLHttpRequest(); } else { aj = new ActiveXObject("Microsoft.XMLHTTP"); } aj.onreadystate = function() { if(aj.ready == 4) { document.getElementById("text").innerHTML = aj.responseText; } }; var param = document.forms["fo"]["text"].value; aj.open("GET", "try.php" , true); aj.send(); } … | |
Hi Friends, I have written one HTML page in which i have on button with window.open function. so it opens in new tab. but i want it to open in it frame in that HTML page. Is it possible any how ? Or is there other way ? **Thanks** | |
<script type="text/javascript"> $("div #search_ayat_div").click(function(){ var link1='?verse='; var link2=$(this).html(); link=link1.concat(link2); link=link.replace(":","/"); window.location.replace(link); }); $("div #bookmark").click(function(){ var messageid = $(this).parent().children("#search_ayat_div").html(); var div_id=$(this).attr('id'); $.post("command.php",{ command:'bookmark', verse:messageid },function(result){ if(result=='yes'){ $(this).css({ "border":"medium solid #FF0000" }); alert("Successfully Bookmarked"); } if(result=='no'){ alert("Already Bookmarked"); } }); }); </script> Here at line 17 $(this) is not working. Remember there … | |
I have a jQuery tabs slider that auto rotates and depending on the slide it will adjust the background of the `<div>` element it is in. Auto rotate goes fine, the correct background is loaded, but when I manually click the tabs, it doesn't take the correct values. It's almost … | |
Hi, i don't know what happen in the code. I have this JScript: changeLanguage: function(target) { var rel = target.split('-'), region = rel[3], game = rel[1], client = rel[2], lang = rel[4], ver = rel[1], //not sure... name = $('#' + target).text(), id = game + '-' + client + … | |
How to disable close button of a pop up window using javascript? | |
Hi After learning jquery for about a month, I make an attempt to make username & password authentication form. Howver, i get stuck 2 days now, and i will soon start bumping my head against the wall. What I am trying to do is if user enter the wrong username … | |
Hello friends, I have to create a dense array called "monthName that contains the names of all 12 months starting with "January" So far, I have created this: function showDate(thisDate) { var thisWDay=Today.getWeekday(); var thisDay=Today.getDate(); var thisMonth=Today.getMonth(); var thisYear=Today.getFullYear(); var variable=new Array(monthName[0]="January", "February", "March", "April", "May", "June", "July", "August", "September", … | |
I am trying to integrate the ColReorder.js(http://datatables.net/extras/colreorder/) [ which enable columns re-ordering option] into my existing data-table. Its works good, but the problem is its affects the CSS / CSS not applying. I don't know whether its clashing with my existing js ( jquery.dataTables.js ). Please help me how to … | |
I have add this code on my page http://technotweaker.com/tutorials/how-to-add-ajax-page-loading-effect-to-blogger-and-wordpress/ and it working fine but there is a lot of empty space at the middle of page and i can't fix it http://www.arianrp.ir/index2.php | |
Hi, Other than ajax(), load(), get() and post(), is there way to load part of page content dynamically from another file using jquery? thanks, VC | |
Hi I Love daniweb for web solution. I want to make a website using jquery. I want to use jquer POST method for my site. My sample code is $.post("search.php",{word:"good"},function(result){ $("#content").html(result); Here the word 'good' will be search in a database using search.php by POST method. I already did that … | |
![example3](/attachments/large/3/example3.jpg "example3") Hi, I have been sitting with this problems for days, I'm not very good with javascript as I am still learning, would really appriciate it if someone could help me. I've got a slidedeck with a number counter which works perfect together, now I'm trying to add another … | |
I am not understanding this at all. I have to have 3 fish swim across the screen in different direction. But I can only get the one fish to swim. I have been looking ont he web and can not find anything that helps me. If someone can help me … | |
Hi, I am pretty new to Joomla. The company i work uses a joomla 1.5 website which was designed before i joined. Now I'm incharge of managing this website by doing some small changes here and there. Problem : There is a page(not index) containing a few images which are … | |
I tried $('#page18').bind("load",function() { alert("total Type") ; }); and also i tried doing this $('#page18').ready( function() { alert("total Type") I want to call a function on Load of a Html5 Jquery Mobile page. I have various Div with <data-role="page"> Each of them has Id.Now with navigation when I reach on … | |
EDIT: Delete post. Figured it out myself before someone responded. ;P | |
I have a loop in php which echo out these divs: <div class="nyhed"> <p class="nyheds_dato_p" style="color:#900;">'.$pub_date[1].'/'.$pub_date[2].'/'.$pub_date[0].'</p> <p class="nyhed_p">'.substr($teaser, 0, 55).'..</p> <a href="'.$url.'" class="nyheds_link">'.$link_navn.'</a> </div>'; When ever a link is hovered, i am adding an animation to change the background color of the div class="nyhed". As it is now, all the … | |
I have a page on my site which, when a button is pressed, pulls in an AJAX response in a <div>. The response also has AJAX in it (this all works as it should). I want to be able to, after several checkboxes are checked, enable a button so that … | |
Some browsers will resort a json array by index to make access faster, I understand this. The problem is that when I pass my json object to jeditable using the data setting, in those browsers my options dont come out in the order I need them (Alphabetic). PHP creating the … | |
Hi, Just before I jump from the roof :-) Need some help here - autosuggest jQuery: <!DOCTYPE html> <head> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> <script type="text/javascript"> $(function() { var timer; $("#txt1").on('keyup', function(e) { var self=this; clearTimeout(timer); if (self.value.length===0) { $("txtHint").text(''); }else{ timer = setTimeout(function() { $.ajax({ type: "GET", url: "gethint.asp?q="+self.value, }).done(function( hint … | |
Hi I want to display the value selected from a 3 level drop down list. Its something like this (for eg) : If a select fruit from level 1 , in level 2 i get all the list of fruits in drop down , then after selecting fruit name from … | |
I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays … | |
I have two pages one called upload-file.php, this page uploads the image into the database and my folder. My PHP page looks like this. if (move_uploaded_file($_FILES['uploadfile']['tmp_name'], $file)) { $insert=mysql_query("insert into match_item_image set item_id='".$_SESSION["session_temp"]."', image='".$name."', adid='$adid'") or die(mysql_error()); $cc=mysql_insert_id(); echo "success".$cc; My other page consist of a javascript function which displays … | |
How to bookmark website automatically without asking user/visitor of website in all browsers? Following is click version, I want to bookmark website automatically in all browsers. jQuery $(document).ready(function() { $("#bookmarkme").click(function() { if (window.sidebar) { // Mozilla Firefox Bookmark window.sidebar.addPanel(location.href,document.title,""); } else if(window.external) { // IE Favorite window.external.AddFavorite(location.href,document.title); } else if(window.opera … | |
Hi ; i am not good about such things , i just create a webpage from exel with spreadsheetconverter (http://www.teknofan.com/teknocon.php) some model products have diffrent size height , width , length (mm) but on my page every size open for every model products... For example Model Kasa Yüksekliği (mm) K31 … | |
I am working on survey application in this I want only unique answers to be selected like for eg <form action="somefile.php" method="post" name="testForm"> <tr><td>Question 1 </td><td> 4<input type="radio" name="1" value='4' class="Session"/> 3<input type="radio" name="2" value='3' class="Session"/> 2<input type="radio" name="3" value='2' class="Session"/> 1<input type="radio" name="4" value='1' class="Session"/></td></tr> <tr><td>Question 2 </td><td> 4<input … | |
Right now I'm trying to get multiple callbacks from a single feed, however I keep getting "val parameter is undefined" Here is the code: var m,i=100,s=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],b=["#","@","http","www","tweet","twit","Twit","TWIT","tweep","blog","text","follower","Follower","Text","Twee","txt",".ly","follow",".com",".COM",".net","yahoo",".org"," DM"," RT","RT:"]; var count = 0; var rand; u=function() { if (i--<1) { location.reload(); return false; } document.getElementById('w').innerHTML = "<h2><font color =\"red\">Error :(</font></h2>" ; … | |
As the title said, how would I get text from a input tag and show it dynamicly. So whenever i press a, it shows up in a p tag. How would I do this in jQuery? EDIT: Here is what I have but its not working: <html> <head> <title>update text … |
The End.