17,115 Topics

Member Avatar for
Member Avatar for Pinchanzee

I'm having trouble with some basic AJAX, I'm very new to it but have found a similar chunk of javascript that I've altered to my needs (kind of). I have a <div> that I want to change upon the click of a link. It contains a list of entries, ordered …

Member Avatar for Pinchanzee
0
180
Member Avatar for nats01282

Hello i am trying to create a script that will allow for the user to click a link and pop up page opens up with the content from the same page e.g [CODE] <?php $option = $_GET['option']; ?> <SCRIPT LANGUAGE="JavaScript"> <!-- Begin function topWindow(){ popup = window.open("page1.php?option=<?php echo $option; ?>","scrollbars=no"); …

Member Avatar for diafol
0
382
Member Avatar for brianjoe

Hi people :) I'm in the process of developing a website where there is going to be music on. (Dont worry, the users that will come to the website already know that there will be music - it's the point of the website). But I'm thinking that it would be …

Member Avatar for RoyalElite96
0
349
Member Avatar for hsmukunda

Hi html layout not rendering properly in internet explorer. I have attached the screenshot of the layout rendering in firefox and internet explorer. Please see the area of red rendering in internet explorer and gap between yellow bar and red in firefox where as the same gap is not rendering …

Member Avatar for hsmukunda
0
124
Member Avatar for itisnot_me

ok so i have this in query: [CODE] $(document).ready(function(){ $("input#copy").click(function(){ if ($("input#copy").is(':checked')) { // Checked, copy values $("input#owner_address").val($("input#subject_address").val()); $("input#owner_city").val($("input#subject_city").val()); $("input#owner_state").val($("input#subject_state")); $("input#owner_zip").val($("input#subject_zip").val()); } else { // Clear on uncheck $("input#owner_address").val(""); $("input#owner_city").val(""); $("input#owner_state").val(""); $("input#owner_zip").val(""); } }); }); [/CODE] That works fine for input:text boxes but doesnt work for dropdown menus. How to …

Member Avatar for itisnot_me
0
91
Member Avatar for ddellostritto

Hi all - I'm looking for a flexible way, via ajax to verify if a *field* is available. I found a script that works: [url]http://web.enavu.com/tutorials/checking-username-availability-with-ajax-using-jquery/[/url] The problem is that this is a little unwieldy: for every field (input) that you want to verify w/ajax you have to have a different …

Member Avatar for ddellostritto
0
91
Member Avatar for saravind84

Hi All, I have a ASP.net web application developed using C#. It has got a button on click of which an excel file is shown to the user. User can save or open the file. But this operation takes about a minute to complete. I wish to implement Ajax in …

Member Avatar for khadakbist
0
152
Member Avatar for brynFlew

Hello, does anyone know a simple way to focus on a different text field after the user enters data in the first text field? Thanks.

Member Avatar for brynFlew
1
326
Member Avatar for vigneshvdm

[B][COLOR="Green"]hi evryone !! i am designing sites in sharepoint 2010 and i need to use the javascript in vb.net!! and how to display an alert message in a web page using vb.net!?! please help :) thank u :) [/COLOR][/B]

Member Avatar for codeorder
0
95
Member Avatar for coolvision

Hi, I need a Java / Ajax Web Form Code, which can work on the sites pages without server side and work on the fly. I want to use Form Code on different pages and every page I can define a different email address to whom from data will be …

Member Avatar for Taywin
0
76
Member Avatar for apollokid

Hi, was wondering if someone could help me out.. :D See I want to remove my script for thickbox depending on the url path. It is not working so wondering if someone could help me out? so the url in the link would be: [url]http://example.com?nolb[/url] here is the code: [CODE] …

Member Avatar for Taywin
0
79
Member Avatar for tcollins412

i am wring a website and i need help with some javascript. first ill give you the code [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <script type='text/javascript'> function showdiv(name){ var divname=name; show(); } function show(){ document.getElementById(divname).style.display='block'; document.getElementById(divname).style.overflow='visible'; var lastdiv=divname } function closediv{ if (lastdiv) { document.getElementById(lastdiv).style.display='none'; …

Member Avatar for Taywin
0
186
Member Avatar for bhanu1607

Hi to all, After comming alert, cursor should not go to the next field. i am a beginner to script functions. can any one give me solution . [CODE] <script> function validateDate(strdate) { if(strdate.length < 8 || strdate.length > 8) { alert("Error:Enter Valid Date"); } else { ValidateNum(strdate); } } …

Member Avatar for Taywin
0
116
Member Avatar for jeffcogswell

Last week, I took a look at Node.js, a powerful server-side implementation of JavaScript. But one thing I found lacking was the way to easily create a web server. Essentially, Node is an implementation of CommonJS, which adds operating systems features to JavaScript. But Node is not a web application …

2
891
Member Avatar for lifeworks

Hi Im processiing a json response [code] link_cart.setAttribute('id',bits[i].product_id); link_cart.onclick = function(){ add_to_cart(bits[i].product_id); } [/code] In the first line, the product_id value is correct, the json is a list of products, but it doesn't behave strangely, But the second reference in the onclick handler, displays a value of 22, which is …

Member Avatar for lifeworks
0
132
Member Avatar for saravind84

Hi All, I have a ASP.net web application developed using C#. It has got a button on click of which an excel file is shown to the user. User can save or open the file. But this operation takes about a minute to complete. I wish to implement Ajax in …

Member Avatar for Shanti C
0
109
Member Avatar for fantasma

Hi there! I have this function in jQuery that is suposed to toggle a div, according to each different record I click, in order to toggle an upload form. However I can't seem to get it to work properly. Anyone could help? I really need this working today :( jQuery …

Member Avatar for fantasma
0
142
Member Avatar for peck3277

Hi guys, Just wondering if anyone can help me with some IE/JQuery issues. I have created a drop menu using the below code. It works in opera, safari, chrome and firefox. I have tested it in ie7 but the menu appears to the right(probably a css issue) and when it …

0
71
Member Avatar for parkz16

Hi, I am using the Google Maps API to integrate mapping into a web application. I am using HTML and JavaScript. I am having difficaulty integrating the directions function. I have a form which collects the users address/current location which is supposed to display a set of turn by turn …

Member Avatar for SolidSolutions
0
153
Member Avatar for sillverstixx

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

0
47
Member Avatar for Ritesh_4

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?

Member Avatar for Shanti C
0
200
Member Avatar for anilashanbhag

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

0
71
Member Avatar for devinodaniel

I'm trying to get my page to redirect back to another page after the form has been submitted to its self via $_SERVER[PHP_SELF] . I've tried using the header(Location) script but to no avail. Anyone know of an easy way to do this? Right now.. when my page is submitted …

Member Avatar for devinodaniel
0
1K
Member Avatar for mizzievie

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 …

0
87
Member Avatar for jrivera

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 …

Member Avatar for jrivera
0
186
Member Avatar for CanadianGSX

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 …

Member Avatar for CanadianGSX
0
247
Member Avatar for andrewliu

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 …

Member Avatar for andrewliu
0
342
Member Avatar for Webbanditten

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

0
67
Member Avatar for yohoprashant

I was trying to build an autocomplete text box in jsp page using Jquery plugin. But i am facing problem. Whenever i was trying to display the list, it is not displaying. When i was requesting for the jsp list page from JQuery Autocomplete, System.out is working, it is giving …

Member Avatar for MIENORCO
0
678
Member Avatar for laptop545

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

0
67
Member Avatar for samuelhenry

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 …

Member Avatar for samuelhenry
-1
1K
Member Avatar for Arcrammer

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 …

Member Avatar for Joshua Kidd
0
119
Member Avatar for Venom Rush

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 …

0
67
Member Avatar for kekkaishi

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 …

Member Avatar for kekkaishi
0
146
Member Avatar for mtolan8164

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 …

Member Avatar for mtolan8164
0
89
Member Avatar for six_sic6

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

Member Avatar for six_sic6
0
91
Member Avatar for buggyboy

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 …

Member Avatar for Taywin
0
312
Member Avatar for programmer12

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?

Member Avatar for Taywin
0
109
Member Avatar for toasty525

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

Member Avatar for Taywin
0
120
Member Avatar for 84hd0ns

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

Member Avatar for 84hd0ns
0
109
Member Avatar for AdriftUniform

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 …

Member Avatar for AdriftUniform
0
166
Member Avatar for WinterDawn10

[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.

Member Avatar for WinterDawn10
0
151
Member Avatar for andrewliu

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 …

Member Avatar for andrewliu
0
123
Member Avatar for samsons17

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

0
93
Member Avatar for deepakkrish

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 …

Member Avatar for vsmash
0
70
Member Avatar for andrewliu

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 …

Member Avatar for andrewliu
0
124
Member Avatar for mbarandao

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 …

Member Avatar for mbarandao
0
326
Member Avatar for CathInfo

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

0
60
Member Avatar for Arcrammer

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 …

Member Avatar for McLaren
0
167
Member Avatar for deepakkrish

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

Member Avatar for Agarsia
0
72

The End.