15,127 Topics
| |
Currently i have this code written [CODE]<? require('db.php'); $demo = new SortableExample(); $list = $demo->getList(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> <script src="js/prototype.js"></script> <script src="js/scriptaculous.js"></script> <script> Event.observe(window,'load',init,false); function init() { Sortable.create('listContainer',{tag:'div',onUpdate:updateList}); } function updateList(container) { var url = 'ajax.php'; var params = … | |
Hello Anyone can pls provide me with a sample code, whereby if I change a field value in a web form (from a drop-down list for example), the value shown in another field is automatically updated to show the needed value for that selected option? | |
[CODE] <html> <body> <canvas id="example" width="800" height="600"> This text is displayed if your browser does not support HTML5 Canvas. </canvas> <script type="text/javascript"> var example = document.getElementById('example'); var context = example.getContext('2d'); for(var j=0;j<8;j++){ for(var i=0;i<6;i++){ context.fillStyle = "rgb(255,0,0)"; context.fillRect(100*j, 100*i, 50, 50); } } </script> </body> </html> [/CODE] how do i … | |
I have the fields of three. There are Criteria, Line, and Customer. I use CodeIgniter as my php framework. In this case, if I want to choose Line fields (dropdown), I have to choose Criteria first, the line fields is disabled until I have criteria choosen. The same thing as … | |
I've looked at all of the lightboxes and I'm not sure if I'm not looking hard enough or if I'm looking in the wrong place. I'm looking for a plugin that I can use that will allow me to do the following. Have 1 row of images (about 5 images … | |
I've looked around and from what I can tell, the code seems right. Basically crating a JS array and passing PHP values to it to use in an onChange to fill a text field. The dropdown gets populated fine but the text field does not autopopulate onChange. I'm not too … | |
Hello. I'm still in the learning process. I'm trying to figure out how this works. I'm trying to change the background and color of the text on hover and make it click able. When it is clickable, I would like the background to change on active, and then when you … | |
Hi im having this problem, i have this danish tv website [URL="http://www.dr.dk/NU/popup/live#/DR1"]http://www.dr.dk/NU/popup/live#/DR1[/URL] thing i dont know if your guys can see it but anyways its page content is: [ICODE] <!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> <title>DR NU</title> <style> *{ margin:0px;padding:0px; } html,body { height:100%; background-color:#000; … | |
Hello All, I am trying to use ModalPopupExtender from a Grid View and i am having problems with it. Can any one please help ? I have a grid view as follows : [CODE] <Columns> <asp:BoundField DataField="Title" HeaderText = "Title"></asp:BoundField> <asp:BoundField DataField="ContactId"></asp:BoundField> <asp:TemplateField> <ItemTemplate> <asp:LinkButton runat = "server" ID="btnEditContact" CssClass="UM_Link" … | |
This is a database dictionary page which has two drop-down boxes. [COLOR="Red"]first [/COLOR]- for the tables in the database(it displays all the table names in the dropdown. Second - for the columns of the table selected in the previous dropdown n then on selecting the column name it should display … | |
I'm looking for cool code editors for Windows 7 Ultimate 32bit. If you have any please tell me! I am using... [LIST] [*]Adobe Dreamweaver CS5 [*]Intype [*]Notepad++ [*]ConTEXT [*]Notepad 2 [/LIST] I don't really give a frogs fat aśś when it comes to how heavy the program is. Whether it … | |
Hi all I'm about to start developing a content managed website and was thinking about using AJAX to handle fetching data from the database. Now I'm mainly developing the website for desktop PC users but I want to try make it degrade gracefully so that mobile users get some sort … | |
hi, i'm trying to manipulate dynamic textboxes using jquery such that when the value of the textbox_1 is, say, 'abcd' a new text box textbox_2 would be introduced and when the value of textbox_2 is again 'abcd' a third one is introduced and so on. ive managed to do this … | |
Hello I am a complete novice so apologies in advance. I want to have a gallery on my website that looks something like the attachment. There is an image in the middle cell of the table and the current image number in the top cell as part of the navigation … | |
I have an html div [CODE] <div id="myDiv"> <table border="1" bgcolor="#FFFFFF" width="600"> <tr style="text-align:center"> <td>Subject Code</td> <td>Subject Title</td> <td>Credit Hour</td> </tr> </div> [/CODE] Now, I want to have a button by which i can convert this [B]<div id="myDiv">[/B] to image or .doc.... can any one help me | |
Hello, I'm trying to code a script using GreaseMonkey that alert's you when someone removes a reputation from you. It's for a mybb forum. So it needs to: Search the source for the usernames > Put each into an array > Store the array and check it only when that … | |
The Javascript that I have included in my php created site is [CODE]<script type="text/javascript"> $(window).load(function(){ setHeight(); }); if(navigator.userAgent.search(/msie/i)!= -1) { } else { window.onresize = function(){ setHeight(); } } </script>[/CODE] Would this cause my browsers (Firefox - IE - Chrome - Opera) to not work? | |
Hi, I want to populate 2 javascript variables with data from 2 form text boxes, the javascript and form text bosex are on the same page using the following code: Form: [CODE] <form name="addSite" method="post" action=""> <label>URL: <input name="url" type="text" id="url" value="<? echo $site; ?>"> </label> <p>Title: <input type="text" name="title"> … | |
Hello, I would like to have a dynamic resize slider for a flash game, I am trying to do something like the slider here [URL="http://www.agame.com/game/funny-cars.html"]http://www.agame.com/game/funny-cars.html[/URL]. Does anyone know how I should go about this, my site is [URL="http://tsgs.tk"]http://tsgs.tk[/URL]. Thanks | |
Hi, I am having an issue getting my select boxes working in IE. My current situation is that I have 2 select boxes, 1 for Styles and another for Substyles. Not all Styles have a Substyle, but each Style has a different Substyle, so when should happen is when you … | |
[url]http://www.facebook.com/photo.php?pid=608407&l=36ae49bbf4&id=100000539331398[/url] check out this picture.. i want to make one of my lists to be shown in this way.. whenever you click the '+' sign, the products under the main products will be displayed, and when you click the '-' sign, the products under the main products will be hidden. | |
Hello, I've been trying to figure this out and I'm not sure why my code does not work? [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('div.ldd_submenu').hide(); $('div.submenu_top').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'color':'#FFF','background-color':'#000000'}); $(this).find('div').show() },function(){ $(this).find('ul').hide(); $(this).css({'color':'#000','background-color':'#ffffff'}); $(this).find('div').hide(); }); });[/CODE] That is my code, and the background-color works. But why doesn't my font color change colors … | |
Hi, i am trying to do like what twitter did. Which is the navigation header on the top will get loaded first when the website is first opened. So i get this html code : [CODE] <div id="top_header"> <div id="header_wrapper"> <a href="index.php"><img src="images/rylogo.png" id="rylogo" /></a> <ul id="navigation"> <li id="nav_selected"><a href="index.php" … | |
Hi Friends, <html> <head> <script type="text/javascript"> <form action="javascript:void(null);" name="theTimer"> <input type=text name="theTime" size="25" /> <input type=button name="start" value="Start" onclick="Start()" /> </form><html> <head> <title>Timer</title> <script type="text/javascript" language="JavaScript"> timerID = 0; tStart = null; tDiff = 0; document.theTimer.theTime.value = "00:00:00"; function UpdateTimer() { if(timerID) { clearTimeout(timerID); } if(!tStart) { tStart = new … | |
Hello all! I have a problem with my jquery. I have hidden some parts of my menu, but I can't seem to hide the div tag. How do I accomplish this? This is my jquery: [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'background-color':'#000000', 'color':'#ffffff'}); },function(){ $(this).find('ul').hide(); $(this).css({'background-color':'#ffffff','color':'#000000'}); }); });[/CODE] This is … | |
good day: I'm using an ajax script that receives a value into an input box and thus performs a function. I need to invoke the function immediately after the input box has a value. Currently the box has to lose focus in order for the function to work. What is … | |
I have a web application (Javascript) that captures keyboard input. The code works independently -- in fact, I've tried several different variations/code snippets that other people have used/recommended. They all work, and are functionally equivalent. But here's the clincher -- [B]my whole program works fine -- keyboard and all -- … | |
I have no idea what AJAX is -- other than the fact that it has something to do with JavaScript :yawn: I'm not that talented with JavaScript other than variables, functions, alerts, confirmation boxes, and simple stuff like that. Any links that would help me learn AJAX would be greatly … | |
HI, I have created a simple list box <select> <option>CustomerPending</option> <option>Network</option> <option>Reason 3</option> <option>Reason 4</option> </select>. My Query is when i select the option from the list it must me entered in to mysql.How to make that stuf.. Thanks, deepak | |
I have a WYSIWYG text area and I want to insert combo-box' value at current cursor location of the WYSIWYG text area. I have a simple textarea where the value is inserting on combo-box clicking. But when I do integrate both files, the functionality wont work. I have both scripting … |
The End.