17,115 Topics

Member Avatar for
Member Avatar for anuj_sharma

Hey Guys, I want to add options to a dropdownlist based on the selection of item in another dropdownlist. But i want the items to be retrieved from the database in the second dropdownlist and i want to do this using Ajax. Please suggest, if possible with some codes.

0
81
Member Avatar for servis

i have a simple form validation onsubmit event. The requirement is very simple, if validate.php brings any error it shows errors and it stops form for further processing else form submit and action runs process.php. But, unfortunately ajax function is not working onsubmit event.. any help please..... files are attached …

Member Avatar for Graphix
0
2K
Member Avatar for ronpickard

I’m finding it very difficult to elaborately describe the page flows in a lengthy XML format which is very complex , does any software provide XML transformation to mould results suitable for user s to view?

Member Avatar for lar_56
0
49
Member Avatar for druveen

hi i am getting field names in $productname through post method that i have to insert into while loop.... while($res=mysql_fetch_array($result)) { $resproductname=$res $productname;']; } is there any way to do that ...plz help...thanks in advance...

0
60
Member Avatar for vishalonne

Hi Really this forum is great I got lots of help from here. So, I cam back with lots of expectation. I am using IE6 and FF3.6 Please see my code its plain HTML with Java Script. This code is generating row in table at Run time. But once I …

0
64
Member Avatar for Zurompeta

Hello all, I have a weird issue here. This chunk of code used to work, but no matter what I try, I just can't get it to work again. Basically, the AJAX response receives a string, the following is an example: [CODE]"1,5,5,1;2,5,5,1;3,5,5,1"[/CODE] So then I split the string by ";" …

0
61
Member Avatar for dle

Hello, I'd like to ask if anyone can help me create an ajax content listing effect like truelocal.com.au, their 3-level content box rocks. Looking forward to hearing from you soon. Thanks.

0
47
Member Avatar for dylank

Hello DaniWeb! I am having a particular problem with my Javascript page, which should change the form that the user is at. Can anyone proofread my code to check for errors? The code does not change the form (Also it does not run the PHP page, or at least does …

Member Avatar for dylank
0
172
Member Avatar for dylank

Hello DaniWeb Community! I am trying to create a web page that utilizes Ajax and PHP to connect to my mySql database and look up a username and password. You have all most likely seen the web page that has the template code on it: [url]http://www.phpeasystep.com/workshopview.php?id=6[/url] This code is nice …

Member Avatar for mwasif
0
4K
Member Avatar for servantofgod

Anyone know of any javascript ad rotators that produce the ad rotator you see in buy.com, with the 1 2 3 4 5 play pause buttons?

Member Avatar for MCDeveloper
0
117
Member Avatar for MDGM

Hi all I need a javascript code that removes all the title="*" attributes in a page, where the star (*) represents a wildcard for the content of the title attribute. So the following would occur: <a href="#" title="test">test</a> would be replaced with <a href="#">test</a> just like: <a href="#" title="">test</a> would …

Member Avatar for MDGM
0
193
Member Avatar for ErlendHL

Hi! I am testing AJAX, and I have just made a nice AJAX function. But I also want to use AJAX through Flash, so that I can get updated info from a .txt file on my server to the Flash movie. [URL="http://erlendhl.ueuo.com/sl/p/"]Here[/URL] is the AJAX test page. So I can …

0
59
Member Avatar for cmsc

i'm trying to redirect using javascript. I wonder, can I use my own file when redirecting? like for example, I made a sign-up form which validates the input, then if the form is already valid [which means every field is filled up] it will redirect to a page I will …

Member Avatar for Traevel
0
81
Member Avatar for scru

Hey. I'm looking for a solution that will create, fill and display a container in javascript directly beneath a specific element (no whitespace, margins w.e)

Member Avatar for abanksob1
0
260
Member Avatar for ErlendHL

I have read about AJAX for a while now, and tryed to use GET and POST, but with not so good results. Code in index.html: [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Sending data to the maaan and back!</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript"> //var val = …

Member Avatar for ErlendHL
0
116
Member Avatar for Cragdo

Hi Folks, I'm hoping you can help me with a strange IE problem. My clients site at [url]http://www.cmrbuilding.com[/url] works fine in Firefox, Safari, Opera etc but when it comes to IE, though it works in IE6, the site has a huge extra, blank area that scrolls to the right and …

Member Avatar for Cragdo
0
146
Member Avatar for dylank

Hey guys at DaniWeb! I have spent a lot of time debugging this PHP/AJAX page, and it finally (sort of) works. Index.php can read and write to processLogin.php so I have a page that can log you in without refreshing the page. However, I cant figure out how to set …

Member Avatar for Stefano Mtangoo
0
2K
Member Avatar for ulrik04

hi I'm making a full AJAX site with prototype, and I want that every time a hyperlink is activated, the event is canceled and a AJAX script loads the page instead. This is the code I'm using: [code=javascript]Event.observe(window, 'load', function(){ Event.observe($$('a'), 'click', function(e){ Event.stop(e); window.location.hash = $(Event.element(e)).readAttribute('href'); new Ajax.Updater('main', $(Event.element(e)).readAttribute('href'), …

Member Avatar for pcmaniac
0
108
Member Avatar for network18

Hi, I am customizing jquery scrollshow, it can be found originally [URL="http://flesler.blogspot.com/search/label/jQuery.ScrollShow"]here[/URL] As you can see in the original script there are only images which scroll, now I have the description to show below each image which should also scroll as the images scroll. This description will include - 1. …

Member Avatar for network18
0
148
Member Avatar for darktangent

I am implementing a popup with javascript which fire when the page is closed . I am using the unload() page handler. The problem is that the popup does not stays ... it popups for a while but then the new page loads. I want it to stay there until …

Member Avatar for almostbob
0
395
Member Avatar for ushur

Lemme just start by saying i know nothing about js or pretty much anything else. I've been playing this online browser based game and it's cool and all but it has this tiny chat window. Is it possible to make the thing bigger? Before i start to learn how to …

Member Avatar for samaru
0
98
Member Avatar for druveen

Hi, I am reciving the (ajax) response res and diplaying in <div id=homepage> , i want to know is there any way to call a js function after i have recived/displayed the reponse inside <div id=homepage> . or Run JavaScript after AJAX load

Member Avatar for samaru
0
51
Member Avatar for rajeesh_rsn

Hai, I need to refresh a page "ONLY ONCE" if a visitor visit. I want to do this because if a visitor hit back button in their browser then i need to display fresh content not from the browser cache.. Please help Thanks Rajeesh

Member Avatar for Graphix
0
99
Member Avatar for zm15

I can't seem to figure out where my code is going wrong for my page. It appears fine in firefox, but IE things get messed up when you scroll down the page and mouse over the last few pictures. Here is my page: [url]http://www.landmarkmg.com/rental_communities/index.html[/url]

Member Avatar for kateross
0
147
Member Avatar for Pro2000

Peace, Can you help me with Show And Hide?: I made an Input text I want to hide it, And I want to show it if I click on a button. How can I do it? Thanks.

Member Avatar for sumit1893
0
174
Member Avatar for darktangent

I do not know that is this the perfect forum for the question or not, but as i am implementing it in the JavaScript, i have posted it here. I am implementing a pop up box when a user leaves a webpage, now what i want to do is to …

0
66
Member Avatar for K-Mos

Hi, I need to refresh one div in my HTML page and not the entire page, is this possible? Please help

Member Avatar for MCDeveloper
0
61
Member Avatar for sunaruna84

Hi friends I have used this script for avoid right click in my webpage. I want to disable " savepage as" in file menu. any javascript have for handle this problem. please let me know ur suggestion. [CODE] <script language="JavaScript"> document.onmousedown=click; function click() { if ((event.button==2)) { alert("Sorry you didnt …

Member Avatar for sunaruna84
0
188
Member Avatar for ausmaya

Hi, 1.I want to change the image when the user click's over the image i'm getting error.. "error:javascript:gonext();" like this is status bar can any one solve me pls>> suggest some code to change the image when user clicks [code=html]<!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>image …

Member Avatar for grungy coder
-1
155
Member Avatar for cloud09

Say I have a variable number of form fields that can: a) contain only numbers - if the user tries to enter anything but a number the text is deleted b) no two fields can contain the same numbers c) no field can be left empty before the form is …

Member Avatar for Will Gresham
0
150
Member Avatar for skorm909

ok so im starting out in html and know the pure basics of javascript... (know a little bit of c++ but that wont help me here i think) well anyway i need to make a website and from what im understanding is that javascript basically does animations (i think) on …

Member Avatar for grungy coder
0
119
Member Avatar for canadatom

Here is my javascript code: [CODE]var xmlhttp; var result; function load() { xmlhttp=null; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=state_Change; xmlhttp.open("GET",getLauncherPath,true); xmlhttp.send(null); } function state_Change() { if (xmlhttp.readyState==3){ if (xmlhttp.status==200){ result = "readyState = …

0
65
Member Avatar for paptamas

Helo. I have a TD element, with a SPAN element inside. I use td-s onmouseover and onmouseout events for a small animation. My problem is, that, when I move the cursor over the SPAN element, the onmouseout event for TD element is fired. I want to prevent this. With other …

Member Avatar for Graphix
0
206
Member Avatar for peter_budo

I'm looking to find out a way to drag and drop table rows between two tables. I reused jQuery example for[URL="http://jqueryui.com/demos/sortable/#portlets"] portlets[/URL], but that did not work to full satisfaction. [attach]13597[/attach] In above screen shot I added border, but that is just for illustration of the issue. Problems: [LIST=1] [*]As …

Member Avatar for peter_budo
0
607
Member Avatar for ausmaya

Hi, This is the code for form validation to check whether the username has six characters.i'm getting error.In form element i have added action="registration.aspx" i think it is for validaiton in server.. wat is the purpose of it??? can anyone pls suggest free links for webdeveloping ebooks using javascript?. how …

Member Avatar for parry_kulk
0
182
Member Avatar for Philip435

Hey I have div that is editable and I need to know when the div is in focus and when its leaving focus. how do I do it?

Member Avatar for Graphix
0
56
Member Avatar for Lalit Chattar
Member Avatar for rayarman

Hi, I have the following HTML code: [code] <form> <label for="searchtxt">Find a Question...</label> <input type="text" name="searchtxt" id="searchtxt" maxlength="200" size="92" /> <input type="submit" id="searchsbmt" name="searchsbmt" value="Search" onclick="return getquestions(0,5);" /> </form> [/code] the function getquestions is sending some variables via ajax and returning to populate a div. when it finishes, it returns …

Member Avatar for Graphix
0
335
Member Avatar for saraahparveen
Member Avatar for shiv0013

can we overwrite a javascript function in address bar? if so give me an example plz....

Member Avatar for almostbob
0
54
Member Avatar for fielding

Howdy, I'm trying to hide a few css elements until a form has been completed. We have a ecommerce site we need to hide the price and 'add to cart' until the user has submitted their e-mail in a text form. Any help would be appreciated!

0
58
Member Avatar for fielding

How do i go about making these multiple scripts work on a single page? [CODE] $(document).ready(function() { var str = ""; $("select option:selected").each(function () { str += $(this).text() + " "; }); $(".display_text_here").text(str); }) .change();[/CODE] This one i would like an IE conditional [CODE]$(document).ready(function() { $(".select") .mouseover(function(){ $(this) .data("origWidth", $(this).css("width")) …

Member Avatar for fielding
0
92
Member Avatar for barryw33

Hi, I am trying to sign off a website but have one final obstacle to overcome and then all good. the problem I have is I have private chat on a dating website. the site is in russian and english. the php page for the chat needs headers so that …

Member Avatar for barryw33
0
144
Member Avatar for jaydee123

I have a very simple flash program that plays music. It consists of a play pause button and a timer that shows the current position of the song. I'm trying to make it possible to pause or play the song using a regular form button. [CODE]<div class="musicplayer_playpause"> <script type="text/javascript"> AC_FL_RunContent( …

Member Avatar for ShawnCplus
0
104
Member Avatar for canadatom

Hi Guys, I am new to Ajax, I am trying to output results by using perl script calling from Ajax, [code] function launcher(){ new Ajax.Request(getLauncherPath, { method:'post', parameters: { tag: "yadayada", uid: "12345", pwd: "blah", action : "blah" }, onInteractive: function(transport){ var response = transport.responseText; $('launcher').update(response); }, onFailure: function(){ alert('Something …

0
43
Member Avatar for preetg

hi............ m using javascript and css for creating horizontal menu for my project.... but i m facing prob regarding their direction..... i want sub menu should open in right direction but not below the main menu items. ........ help me out. [CODE=javascript] var cssmenuids=["cssmenu1"] //Enter id(s) of CSS Horizontal UL …

0
78
Member Avatar for hno

HI I have seen this pattern in [url]http://www.altsoftware.com/index.php[/url] . there are news menu in the left side . Please visit this site . The news will be change with a really beautiful pattern in every 5 seconds I think it has been written with jquery but I don't know how …

Member Avatar for macneato
0
78
Member Avatar for Corbula

I have made a table and am able to sort the contents of it, using yoast's table sorting. ([url]http://yoast.com/articles/sortable-table/[/url]), (althought i used a different script because the yoast script didn't sort numbers very well). But now i need to know if it's possible to make it so when you click …

0
87
Member Avatar for preetg

hi............. m inserted records in database successfully but now i want that whenever record added in database a dialog box will be shown on the screen.............. " RECORD ADDED" m using javascript code for this but it is not working............ plz help me to do this ............. <HTML> <HEAD> <TITLE>Apprentice …

Member Avatar for phpbeginners
0
220
Member Avatar for Venom Rush

Hi all I have a form where a user can upload a file. I do a check to see if it's a zip file. If it isn't then its supposed to stop the file from being uploaded. Only thing is, the file still uploads regardless of getting the error or …

Member Avatar for Venom Rush
0
96

The End.