15,127 Topics

Member Avatar for
Member Avatar for davy_yg

Hello, What's the php code for changing css body background?. If you press this button then, css body background changes. What to code it?

Member Avatar for davy_yg
0
273
Member Avatar for Dani

I'm attempting to use Gogole Analytics event tracking to track browser viewport size. I'm using event tracking already in a bunch of other user-initiated places with jQuery and everthing works fine. This doesn't seem to be working though: I have this at the bottom of my html page: <script type="text/javascript"> …

Member Avatar for Dani
0
453
Member Avatar for emir_gradacac

Hi everyone! I'm making a chrome extension that displays current page's url once clicked. I've got this so far: //manifest.json { // Required "name": "Marker", "version": "1.0.11", "manifest_version": 2, // Recommended "description": "The ultimate bookmarking tool", "icons": { "32": "icon.png" }, // Pick one (or none) // Add any of …

Member Avatar for emir_gradacac
0
2K
Member Avatar for maggoteer

I'm currently trying to modify 2 scripts to work together. I've gotten everything working except the script isn't passing any, or the incorrect information when it's trying to create a checkbox. Here's the code I have so far: if (strlen($q)>0) { $hint=""; for($i=0; $i<($x->length); $i++) { $f=$x->item($i)->getElementsByTagName('id'); $g=$x->item($i)->getElementsByTagName('item'); $h=$x->item($i)->getElementsByTagName('price'); $y=$x->item($i)->getElementsByTagName('keyword'); …

Member Avatar for iamthwee
0
276
Member Avatar for GlenRogers

I have a page with a menu of categories and subcategories of products. Categories have a class 'category' and subcategories have a class 'subcategory'. When either is clicked some AJAX sends the category to some php to compile the html which the AJAX then sends back to the page to …

Member Avatar for GlenRogers
0
269
Member Avatar for aarmstrong

I'm trying to create a simple menu and when customers click what they want, I want it to calculate and give a final price and display it. <!DOCTYPE html> <html> <head> <script language="javascript" type="text/javascript"> (document).ready(function() { $('#calculateTotal').click(function() { var singleTopping = 1.20, var doubleTopping = 2.20; } } </script> <title>Design …

Member Avatar for <M/>
0
908
Member Avatar for ehpratah

Good Day everyone i'm having a hardtime figuring out how to make this certain idea of mine to work basically im trying to capture the checkbox value and its label but im not getting anyluck..and also im having problem explaning what im trying to do so i decided to attached …

Member Avatar for JorgeM
0
275
Member Avatar for atiqur_29

im very newbie in both php and ajax & i was trying to create a form where if i insert the contact id then the rest of the form field will automatically filled by retriving data from database. to get help from a tuitorial, this what i already done but …

Member Avatar for minitauros
0
2K
Member Avatar for Shikha_1

<script type="text/javascript"> function check() { var select1 = document.getElementById("from"); var selected1=[]; for(var i=0;i< select1.length; i++) { if (select1.options[i].selected) selected1.push(select1.options[i].value); } for (var j=0;j<select1.length;j++) { document.write(selected2[j]); } } </script> <!--[if IE]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> </head> <body> <table width="70%" height="30%" align="center"border="1" style="border-collapse:collapse;"> <tr height="300"> <td height="256"><p><center>YOUR SCHOOL IS FROM </center> </p> <center> …

Member Avatar for Shikha_1
0
245
Member Avatar for Dinh Nguyen

Can anybody tell me Why I click on button to submit form -> it works, but when I use javascript to auto submit -> it failed ? I have this form on aaa.com, it submit to bbb.com/result.jsp (another domain) <form id="myForm" name="myForm " method="post" action="www.bbb..com/result.jsp"> <input name="var01" value="var01 "> <input …

Member Avatar for iamthwee
0
6K
Member Avatar for andreiviziru

Hello! The main idea is that i want to set the variable for screen resolution of the user and pass it to php to manipulate her. How can i achieve that?

Member Avatar for broj1
0
317
Member Avatar for mikejordan111

I am trying to make the javascript read txt file which is working, and I want it to add each row in the txt file in a Column in the table and after 3 Columns start a new row in the table and so on. also while the javascript reading …

Member Avatar for stbuchok
0
766
Member Avatar for my3h

i want to fill up the text boxes with the data from the database vales. But at the same time it should display the values according to the static drop down value selected. I am not getting how to achieve this. Here is my code <form name="form1" action="submit.php" method="post"> <tr …

Member Avatar for iamthwee
0
732
Member Avatar for B0716L

Does anyone know how to make a checkbox on a web page that always stays checked no matter what computer sees it? It would always stay checked on that exact web page? If anyone knows how to do this, that would be great :)

Member Avatar for B0716L
0
276
Member Avatar for ghosh22

Hi Sorry I am posting again. I am trying to make a web form for my new website. I am doing the coding myself because I cannot afford to hire a coder for me. I need some help from you. Please forgive me for all my idiotic questions! Now, here's …

Member Avatar for almostbob
0
202
Member Avatar for mario90

hello i have this little image script that work on greasamonkey, the script is good and work like a charm it help me to block images i dont want to see but i wished it has interval timer becasue i run it over site with dynamic content ..the targeted pics …

Member Avatar for mario90
0
211
Member Avatar for wmhintz

Hello geniuses, I have inherited a ColdFusion application which uses four lines of AJAX in order to populate a drop-down based upon the selection made in a previous drop-down. The first drop-down is a list of car "makes", for example: Ford, Chevrolet, etc. The second drop-down is to be populated …

Member Avatar for paulkd
0
309
Member Avatar for dandeliondream

Hi, I am trying to create a menu like the one on http://www.momentumww.com/ When you scroll to section 'About', the menu 'About' button will be highlighted in white instead of black. Anyone has any idea how to do this?

Member Avatar for theHop
0
109
Member Avatar for cgull

Hello, This is the first time I am trying to use jQuery DataTable. I read a lot of articles, but I can't make it work. I hope someone can help. I need to build a table that displays Rugby games scores. The table I am building should look like this: …

Member Avatar for cgull
0
313
Member Avatar for Dani

We use hashes a lot in our URIs to jump people around to a specific place on the page. For example (www.example.com#part1 and www.example.com#part2). However, we have a static fixed header at the top of the page, and so if it tries to jump you down, it ends up plopping …

Member Avatar for Dani
0
307
Member Avatar for GlenRogers

Hi, I use some jquery/ajax to try and get the id of a link button and display all the products associated with that id. I'm using the exact same code that worked for me on another site, but nothing happens when i click a button! This is the menu of …

Member Avatar for GlenRogers
0
179
Member Avatar for furlanut

Have I got this totally wrong ? It should be simple. Whatever I try I return the COMPLETE A-Z and never the selected letter only. It seems I am not able to change the variable $name at all. The relevant code I have made is: <?php $alphasearch=''; $spanSearch = range('A','Z'); …

Member Avatar for furlanut
0
125
Member Avatar for Larrywaz

This piece of Java works perfectly so that onmouseover of the text an image is placed above the text, my problem is I can't come up with a piece of code for onmouseout to remove the image and restore the site to the way it was before the onmouseover. Right …

Member Avatar for Larrywaz
1
3K
Member Avatar for vegaseat

A simple way to create rainbow colored text on your web page. Just cut and paste the code into Notepad, save as Rainbow.htm and run it on your browser.

Member Avatar for Troy III
3
594
Member Avatar for Rachael_1

Hi, I am new to Javascript and PHP and I am trying to duplicate some data and store it in a database when users clicked on the "copy button". [Click Here](http://i.stack.imgur.com/9oy70.jpg) With reference to the image(click on the link above), upon clicking "copy trade" the data will be replicated into …

Member Avatar for Rachael_1
0
229
Member Avatar for Octet

Hello Daniweb, I am trying to implement a show/hide feature for a website, to help organise the content more effectively. At the moment I am using a simple JS function that changes the .style.display of a div to either none or block. The problem is that because the content is …

Member Avatar for Octet
0
161
Member Avatar for NardCake

Hello! I've been very interested in the V8 JavaScript engine recently, so I fetched the source and built it successfully, so far so good. I also successfully compiled the [Hello, World!](https://developers.google.com/v8/get_started) program Google provides. I've also read the [embedders](https://developers.google.com/v8/embed) guide. Other than that I can't find any documentation or examples …

Member Avatar for NardCake
0
156
Member Avatar for harry010

I have a select element that I populate with data returned from an AJAX call. It workds most of the time but its unreliable. Sometimes it works the first time I click the link and sometimes not (mostly it works). I can see that the server is returning the correct …

Member Avatar for harry010
0
281
Member Avatar for rakwel10

Hello My input field has 2 state. If the user don't scroll the page or the page is in the homes page, the value of the input field is empty. When user starts scrolling, the value will be filled. My problem is when I scroll, the text inside the input …

Member Avatar for paulkd
0
236
Member Avatar for MrXortex

Hello. This is a particle system made using Javascript (CoffeeScript) http://cssdeck.com/labs/53gonama3x How do I add more colors to the particles? Like Rainbow colors or RGB? Thanks. <Moved to JavaScript forum>

Member Avatar for somjit{}
0
91

The End.