15,120 Topics

Member Avatar for
Member Avatar for Webintraining

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

Member Avatar for Webintraining
0
240
Member Avatar for godzab

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

Member Avatar for esma.ramirez
0
124
Member Avatar for technoknol

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

Member Avatar for esma.ramirez
0
284
Member Avatar for arctushar

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

Member Avatar for pritaeas
0
113
Member Avatar for jellej

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 …

Member Avatar for Taywin
0
261
Member Avatar for gAb1

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

Member Avatar for Taywin
0
453
Member Avatar for divyakrishnan
Member Avatar for zoreli

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 …

Member Avatar for zoreli
0
320
Member Avatar for thedancingbug

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

Member Avatar for thedancingbug
0
185
Member Avatar for Hari Murthy

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 …

Member Avatar for pritaeas
0
100
Member Avatar for 0senjed0

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

Member Avatar for hr.Ziggurat
0
141
Member Avatar for VenusCrystal

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

Member Avatar for VenusCrystal
0
82
Member Avatar for arctushar

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 …

Member Avatar for hr.Ziggurat
0
503
Member Avatar for Annuscha

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

Member Avatar for Airshow
0
114
Member Avatar for sha1023012

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 …

Member Avatar for aquariums
0
217
Member Avatar for theakshay

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 …

Member Avatar for squeak24
0
210
Member Avatar for thak123

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 …

Member Avatar for Sogo7
0
156
Member Avatar for MrJewbagel
Member Avatar for AleMonteiro
0
45
Member Avatar for klemme

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 …

Member Avatar for klemme
0
211
Member Avatar for petrakid_1

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 …

Member Avatar for AleMonteiro
0
149
Member Avatar for jstfsklh211

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 …

0
109
Member Avatar for vetle.haugen

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 …

Member Avatar for pritaeas
0
270
Member Avatar for deepakpandeyece

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 …

Member Avatar for pritaeas
0
66
Member Avatar for moblyft

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 …

Member Avatar for rotten69
0
320
Member Avatar for moblyft

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 …

Member Avatar for Taywin
0
231
Member Avatar for vizz

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 …

Member Avatar for JorgeM
0
1K
Member Avatar for mcrbne

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 …

Member Avatar for stbuchok
0
285
Member Avatar for aals

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 …

Member Avatar for Taywin
0
280
Member Avatar for persianprez

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

Member Avatar for AleMonteiro
0
136
Member Avatar for godzab

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 …

Member Avatar for JorgeM
0
166

The End.