15,120 Topics
| |
| I don't know how to do this for Javascript, but I can explain in PHP as I have further experience in it. maybe someone can translate. A textbox's value is "username", and it needs a onclick javascript code that makes it 'this.value = ""' When users click the textbox that … |
I'm trying to use the Fb PHP SDK to execute different Js document.getElementById innerHTML functions, depending on whether the user is logged in to Fb or not. For some reason the function won't work for me. I know my API connection is successful, and Javascript can be inserted here, as … | |
Hey Guys my goal for this multi dimensional array is to document the answers (right or wrong) for a test that the user is taking. In the beginning the test array is set up. as the user goes throught the questions the app should add to the array. Note: the … | |
Dear Friends, I'm developing a website that can show online users, When ever a user logged we can update the status to "Online" On our database. Now i'm using AJAX. Is it possible to show the online users without refreshing a page ? That means timed interval for a ajax … | |
Hi all- I'd like to change the buttons below used to change images to links/images instead. Any help would be appreciated! Thanks. [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style> </style> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script> <script type='text/javascript'> onload = function() { var buttonData = [ {src:'fareast.gif', href:'http://google.com'}, … | |
I have a simple question and I cannot find any definitive answers online or in any books that I have. So here is the question: Does JavaScipt methods work with any web page elements? I do have some guesses but I don't have anything to back it up, or confirm. … | |
Hi. I have a jquery tab in my site. I want to set class="current" when clicked a tab. How can I do that? Thanks. <script> $(function() { $("#tabs").tabs( { } ); }); </script> <div id="tabs"> <ul class="nav-content" > <li class="current first-li"><a href="#tabs-1">Tab 1</a></li> <li><a href="#tabs-2">Tab 2</a></li> <li><a href="#tabs-3">Tab 3</a></li> </ul> … | |
Im new to javascript so im sure there is a lot i am missing in its understanding. What i am trying to do it create a layer of images so that it looks like a pile of cards. have seen similar codes and have tried to follow their idea but … | |
dear all net visitors how can i create a frame in web page using html | |
hi all, I have script that sums all textboxes value from dynamically added row, but still i have problem with the script. below listed two version of script [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title></title> <script type="text/javascript"> /*<![CDATA[*/ function addRow() { // grab … | |
Hi all, I have taken slide show script from net. But There some functions i cannot understand here is script [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" > <html lang="en"> <head> <title></title> <script> var interval = 1500; var random_display = 0; var imageDir = "my_images/"; var imageNum = 0; imageArray … | |
hello, I am using onclick ajax requests and innerhtml to give a site only partial page reloads. One of the page reloads links to an image gallery, where I am attempting to use fancybox. I have all the scripts properly linked and there are no syntax errors, but it (the … | |
I have a textarea where i want the user to just enter the values: $x $y $z $a $b $c (,),+,-,*,/ ^ Here what i have so far [CODE] Formula <textarea name="formula" onkeyup="check(this.value)" ></textarea> [/CODE] javascript [CODE] function check(formula) { ???? } [/CODE] Thanks in advanced | |
Please go through the below fiddle. I am trying to get the ids of the selected products in the fcbkcomplete box and show it as comma separated values in the textbox with id interest. I wrote a function to achieve that but i couldn't do it. The function adds the … | |
Hello, I am trying to create a series of links that will show an element and then open up up the a different element for each. I have it so that I can create on, but I was wondering if somone could help me figure out how I can get … | |
Hi every one, Can you please let me know how I can use Jquery to append and remove data into a table by checking and unchecking html checkboxes?(Or any plugin for this?) I would like to generate an online order invoice from the following checkboxes: [CODE] <fieldset> <legend>Your Choice:</legend> <input … | |
I am working on a web application and using the Google API for geo-location. I am using a localDB to store locations for now and displaying them using this: [CODE]function displayItems() { readItems(LocalDB, function(items) { var appendHtml = ""; for (var i = 0; i < items.length; i++) { appendHtml … | |
dear all net visitors & developers please help me? help help help, how can i create a frame in web page using html, | |
Hi I want to remove the first <LI> item and last three <LI> item from <UL> list. How to write code in JQuery. I need the below list [CODE] <ul> <li>1</li> <li>2</li> <li>3</li> <li>4</li> <li>5</li> <li>6</li> <li>7</li> </ul> [/CODE] as below result [CODE] <ul> <li>1</li> <li>5</li> <li>6</li> <li>7</li> </ul> [/CODE] … | |
Hi friends i am having n number check box, if i checked one check box it has to select all the similar values of the check box and the other check box should be disable. can any one help me to solve the issue i am having a java script … | |
please anybody tell me the difference between javascript and jsp. | |
Eclipse-JavaScript IDE has embedded all JavaScript Libraries like jQuery, MooTools, etc so applies code completion, to what ever is implemented, along with plain JavaScript? | |
Ok, first let me explain what I try to do. I have a menu with some items containing a submenu. The submenu's should open when a parent is clicked and contains submenu's, and when traveling to another page (from the item clicked, for example a parent of submenu item), the … | |
hi i have call ajax in other page like this [CODE]<script type="text/javascript"> //////////////////////////////// // // Refreshing the DIV FANBOO2 // //////////////////////////////// function refreshdiv_fanboo2(){ // Customise those settings var seconds = 1; var divid = "fanboo2"; var url = "http://pickthefights.com/fanboo2/?id=<?php echo $idvar ?>"; // Create xmlHttp var xmlHttp_two = AJAX(); // … | |
Google don't crawl my javascript link.. [CODE] <td><span>1</span></td><td><a href="javascript:__doPostBack('grdCompany','Page$2')">2</a> ........ [/CODE] How i crawl these link in Google?? | |
What are the replacements for javescript. I think JQuery in one of the good replacement for jave scripts though it is developed using Java script. I want to know any other like this .. Please give me any link or information on this Thanks in Advance.. | |
Hi guys, I would like to add sth to my website but I am not sure what's the best way to achieve this. It is a kind of image gallery, say I have 10-20 images and I want to display all of them one after another one from the beginning … | |
| |
Hi all, I have the following problem: I have 4 documents whose text is divided into blocks of text, hereafter called section. One of the documents is the main document, and the sections from the other documents are related to the sections of the main document. The main goal is … | |
Hi, I have this javascript at the top of my php document on my website: [CODE] <script type="text/javascript"> document.getElementById('add').addEventListener('click', function(event) { event.preventDefault(); var select = document.getElementById('select').cloneNode(true); document.getElementById('form').appendChild(select); }, false); </script> [/CODE] In the body of the php document there is a form : [CODE] <form id="form"> <select id="select"> <option>one</option><option>two</option><option>three</option> </select> … |
The End.