15,700 Topics
![]() | |
Hey everyone, I tried testing this code if it is true or not. But,apparently, it is indeed true. So, it is not like referencing an element in array and changing its value. Can someone explain it why this is exceptional with numbers, please? var a = 3.14; // Declare and … | |
Hello, I have a problem with setting a cookie. People can hide or show background but when they go to another page of the website this needs to be remembered so I need to save it in a cookie. My code so far is <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 … | |
I have this line: document.cookie =textbox+this.getParameterByName("idProd")+'='+document.getElementById('name').value+'; domain=mydomain.com; expires='+dia.toGMTString()+'; path=/'; This cookie should work on the mydomain.com and all of its subdomains to read and write, correct??? Doesnt work online but works on local thats why I ask. Thanks! | |
I have an input text and want it to suggest **custom taxonomy terms** as soon as i type on it. These codes below i found after some googling, gives the idea about how to use autocomplete method in WP but i can't figure out how to achieve custom taxonomy terms … | |
Hi, I have a few buttons to manipulate selected text in textarea but cannot work out how to do it. I mean I tried some examples on web but they are not really cross-browser compatible. If one work then another wont etc. Can anyone help me modify what I have … | |
i have an alert box which i want to show some icelandic text but its not showing it <script> function check() { alert("Þú verður að vera skráð/ur inn til þess að senda skilaboð"); } </script> it is showing the alert box but the text is messed up :( **Þú verður … | |
I have this qoute.. how am i going to refresh only the php out;.. which generally generate xml.. <html> <head> <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8"/> <title>Google Maps JavaScript API v3 Example: Common Loader</title> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="util.js"></script> <script type="text/javascript"> var infowindow; var map; function … | |
Hello, I can't figure out how to pass the values from dojo to a new php page. This is the meat of the dojo code that I did not write, I don't know dojo. I have another page that includes libraries and has the code that creates a form for … | |
Hi All, I have 1000 divs and 20 are visible and remain all are hidden ,onclik jquery event, I want next 20 divs are visible and so on.Can anybody hep me? Thanks! Zahid | |
Hello I want to chnage the background to the latest radio btn clicked like in the atached image I have made somecode but this is not doing the job I have strated like this `jQuery(':radio:last:checked').length`I thought that by this way I will get one result and I was right then … | |
Ok, I have some sorting/drag and drop code that works fine as far as that basic functionality goes. I need to be able to serialize and save the sorting order to send back to the set method for the database. Here is my js: <script language="JavaScript" type="text/javascript"> $(function() { $("ul.droptrue").sortable({ … | |
Hi there, I am trying to customize a Woothemes shortcode toggle in their 'Canvas' theme, and in my particular case I have two toggles on my Wordpress page. One toggle shows by default, the other is hidden. What I want to do is switch those toggle states around (open the … | |
function name_loop(){ var names_array = []; $('.name_class').each(function(index){ names_array[index] = $.trim($(this).val()); }); return names_array; } the problem with the above code is that it returns only the first element and not the specified array. can someone solve it for me | |
Hi there, I'm having trouble getting a rotating image script working on a site. Unfortunately it's not displaying correctly in Firefox or IE9 and I need some help to fix that and wondered if anyone would be kind enough to help please? It seems to get stuck on the Sharpie … | |
<html> <head> </head> <body> <img src="blue hills.jpg" name="slide" width="350" height="300"/> <script type="text/javascript"> var image1=new Image() image1.src="Sunset.jpg" var image2=new Image() image2.src="Winter.jpg" var image3=new Image() image3.src="Blue hills.jpg" var image4=new Image() image4.src="turf.jpg" var image5=new Image() image5.src="white.jpg" var step=1 function slideit() { <!--if browser does not support the image object,exit.--> if(!document.images) return document.images.slide.src=eval("image"+step+".src") if(step<5) … | |
Hi, I have been working on trying to figure out, how I can get a web page to call a PHP function and have the results returned to the client for processing, for about two weeks. I hope I am in the right forum (ie. Javascript). I will also post … | |
Hi there, I have a Country/City list in my SQL database and access it with PHP using a select element in php. I use the Chosen Jquery Plugin for the styling of these select elements. Now my problem is that i want only the cities of the country selected to … | |
Hello, I used a plugin from CSS-Tricks.com which is located here: http://css-tricks.com/downloads/ It's an Infogrid Accordion. It's working very well, but I'm having problems with the position of the columns. At first, all of them are in the middle, but when I clicked a column, all the others will stack … | |
Hi all, I am using the below code to control the attributes of a jQuery slider on a website I am building. I need to make the following function change based on window size/re-size to make the slider resize and be responsive. Bit of a newbie when it comes to … ![]() | |
I have put together what I believe my homework assignment is asking me to do, but I can't get the form to add the vehicle information. Here is the code. Can someone help me get onto the correct path? Thanks <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> … | |
How could I use ajax or javascript to make that when I click on a button that links to another page make it go to that specific page without refreshing so like the url changes to something like index.php?=2 | |
Hello, I am trying to create dynamic dropdown lists with PHP MySQL and AJAX. When a user selects a category from the first dropdown, the subcategory dropdown should populate with all the sub categories that belong to the selected category. I am using Fuel CMS as my framework. In my … | |
I'd like to apply a global site-wide little javascript window on the very bottom right of the site that will display a window about 40 x 80 wide, just a book icon and the word "Bible", where when a person clicks it, it will open a pop-up window, centered and … | |
![]() | I'm on the first chapter of a book "head first ajax" and I wrote the exact code the book says and it just won't work! there are 4 thumbnails pics on my page (in div id=thumbnailPane) and when u click on 1 of the pics there should be displayed a … ![]() |
Its really good to see that someone has converted JpegCam( project to integrate webcam in a web page [Click Here](http://code.google.com/p/jpegcam/)) php code into java[Click Here](http://ashwinrayaprolu.wordpress.com/2011/05/26/capture-picture-on-webpage-with-java-backend/).. I am also building an application in which i have to use web cam on CLIENT SIDE and store the images in DATABASE on SERVER … | |
Dear all, I am new to javascript.I have a little doubt in basic concepts in javascript. //Example Program class classname(){ //Decalaring Properties var length; var abcd; public function toUpperCase(){ //This Method is used to convert the strings into uppercase } public function toLowerCase(){ //This Method is used to convert the … | |
HI All my requiurement is: I am getting list, list consists of follwing id assetid name assstatusid seriescode matchedstring 10 1 ab 3 34 match1 11 2 some 3 67 mat 12 3 name 3 678 matchstring 12 3 name 3 678 matchstringone 12 3 name 3 678 matchstri 12 … | |
Below is a sample code using the [URL="http://developer.yahoo.com/yui/slider/"]YUI Slider Control[/URL]. How can I get the photo to zoom in and out proportionally as the slider moves up and down? P.S. I am open to any existing working scripts. I have not been able to find any that does a variable … | |
have a calendar with individual divs for each day. Each div has a unique ID. A modal dialog pops up when the user clicks edit image. The user can set the payable hours in the modal dialog and I want those hours that are entered in the dialog box to … | |
I am a newbie, in crafty as well as js, so pardon me if I might have made very silly errors in the following program. What is wrong with the following code? The following code is supposed to create 5*5 matrix where each block would be a 60 pixel high … | |
I want to load three list boxes where 2nd list box is loaded on the basis of selection of 1st list box and 3rd list box is loaded on the basis of selection of 2nd list box.. . | |
i hav loaded data from database to jquery mobile dropdown list. i want to trigger an event i.e query database using the selected item as key. can somebody illustrate how for instance i can alert the value of the new selected id. that alone can give me an idea to … | |
I have some JavaScript code, currently it takes a users location and reorders a HTML ordered list to dosplay a list of items which are closest to the user's location. Can anyone help so that the items in the HTML list, which are in for instance a vicinity of 1KM … | |
this is my javascript code for infinte carausal which is working fine but it is not taking more than 36 entries . <script type="text/javascript"> $.fn.infiniteCarousel = function () { function repeat(str, num) { return new Array( num + 1 ).join( str ); } return this.each(function () { var $wrapper = … | |
Hello, I am working on a site that has big image on its background. So when the page loads, the image loads very slow also. See the picture to understand http://i1235.photobucket.com/albums/ff429/rakwel10/loading-issue.jpg Slider images are also problem. What are the possible ways to solve this? "$(document).ready(function()" is not also working. Pls … | |
How can I write document.write() functions inside a struts form. Although I give the id of each element in a javascript file, above js functions always write outside of the form. I need to add a line above of the s:textarea which is come from the javascript. How can I … | |
Hello, I am trying some code I found on the net for a fade in/ fade out slideshow. It is working fine on FF, Chrome and Safari on Windows. On Chrome Mac, the slides appearing one below the other, on IE8 on Windows, the text under the slide, does not … | |
I want to validate time format by putting time picker on my form, then i search for it in Internet and i found it [here](http://trentrichardson.com/examples/timepicker/). I follow the steps, but it is did't work. In my page i just want to receipt time (hh:mm). i need it to validate the … | |
Hi there. I have a menu which is toggle-able with jquery. By default it's hidden until the menu link is clicked. What I've been asked to do it make it so that when the user clicks it open it stays open from page to page. I'm assuming some sort of … | |
Hey Im using Web Storage for my website and it seems to work locally but not online. Ive tried different thigns (which I shouldnt because it should just work) but it seems not to work. The only conclusion I can come to is that it has been disabled server side. … | |
<?php foreach ($_options as $_option) : ?> <input id="xyys" type="hidden" name="xyys" value="<?php echo($_option['value']);echo ($_option['option_id']);?>" /> <?php if($_option['label'] != 'Corte'): ?> <?php $_formatedOptionValue = $this->getFormatedOptionValue($_option) ?> <dt><?php echo $this->htmlEscape($_option['label']) ?></dt> <dd<?php if (isset($_formatedOptionValue['full_view'])): ?> class="truncated"<?php endif; ?>><?php echo $_formatedOptionValue['value'] ?> <?php if (isset($_formatedOptionValue['full_view'])): ?> <div class="truncated_full_value"> <dl class="item-options"> <dt><?php echo $this->htmlEscape($_option['label']) … | |
Good day all: I'm wondering how does one go about excluding a particular item on a form from being taxed? I have a check box, which onclick, calculates the sales taxes on all items on the form. to perform the tax calculation, I'm using: var tax = ($('#taxbox').attr('checked')) ? (subtotal … | |
I want to change the radio button color when i slect them and then change them back to default when I deselect them I have made some code but this is not working as it should be $(document).ready(function(){ $(':radio').click(function(){ if($(this).not(:checked)){ ($this).closest('td').css('background','none') } else{ ($this :checked).closest('td').css('background','red') } )} }); | |
Hi, I have a form with various elements such as ids, location. I need to pass these values to a php file through a javascript function. Right now I am able to pass only ids. The Form <form action="display.php"> <label>Your ID</label> <input type="text" id="ids" name="ids" value=""> <label>Location</label> <select name="location" id="location"> … | |
Hello ppl, I am learning PHP. I already know some programming languages, so i didnt read whole book i had, but after i read part of the book, i understood that i get the information but can not use it, so my question is-Is there any videos or books, which … | |
Hello, I created 2 lightboxes on my page. When I just had one, everything worked fine. The 2 lightboxes are not displayed at the same time. There are 2 links that open each respectly. <a href="#" class="lightbox1">Open box 1</a> <a href="#" class="lightbox2">Open box 2</a> The following is the HTML/CSS: <div … | |
hi, i posted this in the javascript forums but didn't get any replies, maybe this is a better place. i have a website for properties (rent, sell, etc), using php and mysql. i allow the admin to manage existing properties by selecting the property id from a dropdown that lists … | |
Hey DW fellas I'm having some trouble when I run my code on IE. I tried it on Chrome and Firefox and it works, but it doesn't at IE. I think that is a Javascript problem, but I can't find the solution. So please, if you can give me a … | |
**Hello every one, this is my first post since the day I registered. I need your help as I'm new to the programming world. I'm doing doing JavaScript and so far was going smooth.. But when I tried to work on the exercises that came with textbook, I failed. Here's … | |
![]() | I can't think of how this thing is called and so I can't find any example on google, I'll try to explain my vision best I can. I want to have a list of square divs, each has contant (but that's not the point), so the divs are standing in … |
The End.