17,115 Topics

Member Avatar for
Member Avatar for allhimachal.com

In the AJAX example below we will demonstrate how a web page can communicate with a web server online as a user enters data into a standard HTML form. [B]Example Explained - The HTML Form[/B] [CODE]<form> First Name: <input type="text" id="txt1" onkeyup="showHint(this.value)"> </form> <p>Suggestions: <span id="txtHint"></span></p> [/CODE] [B]Example Explained - …

Member Avatar for Hangfire
0
175
Member Avatar for linksprocket

Hope some one can assist me Below is my code which works fine. I need to be able to select more than one of the options at the same time. The code at the moment will only select one option rather than all my options. Any advice would be great.

Member Avatar for Hangfire
0
185
Member Avatar for Acute

hi, i'm new in web-development and i'm making a simple chat. How to make a scrollbar of [U]iframe[/U] (which displays all the text you enter) to be always at bottom???

Member Avatar for drewpark88
0
87
Member Avatar for bahman2216

Dear All. I want to show and hide a DIV tag in each row by clicking on check box. my code is here: [CODE]$myCont="container_".$s; $e .='<input onclick="showHide('.$myCont.');" type="checkbox" />[/CODE] and in another file I create DIV with none static id: [CODE]$e .='<div id="container_'.$s.'" style="display:none;">';[/CODE] it is not work in showHide …

Member Avatar for bahman2216
0
86
Member Avatar for mimsc

Hello guys I normally write java...but heres my question [CODE] int propId = Integer.parseInt(request.getParameter("property")); <script type="text/javascript"> function doReport1() { document.forms[0].target = "_blank"; document.forms[0].action = 'http://<%=accountName%>/JAABA/jsp/cpanel/homeSellerReport1.jsp?propId=<%=propId%>'; document.forms[0].submit(); } <div class="marginTopBump5 marginBottomBump9"> <div class="left paddingRight2 paddingTop21">Dear</div> <input type="text" name="custName" maxlength="100" size="40" value="" class="fullBox left" /> <div class="left">&nbsp;,</div> [/CODE] as you can see …

Member Avatar for mimsc
0
148
Member Avatar for loll_l

Please see my Booking Form here [url]http://www.n-v-m.co.uk/Booking.html[/url] The form is very nearly finished but I have no experience with JavaScript at all so I am hoping somebody can tell me how to do the finishing touches. All I require is: 1- On clicking the 'Submit order' button I would like …

Member Avatar for loll_l
0
173
Member Avatar for albertkao

I downloaded the tablekit javascript library and put it in the js directory which is in the jsp directory. i.e. the directory is C:\workspace\com.mycomp.data.war\WEB-INF\jsp\js The jsp page is as follows and display correctly with FF and chrome on Windows Vista. However, the column of the page is not sorted by …

0
69
Member Avatar for sakhi kul

Hi, I am trying to validate a simple form using jQuery. So,I created database company and in that my table manager. here I am trying to add manager record. the code is here- AddManager.aspx file [code] <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Formvalidation.Models.manager>" %> <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> AddManager </asp:Content> <asp:Content …

0
85
Member Avatar for chamika.deshan

Hi I have a loop looping through an "band" object array. I am assigning a anonymous functions for the object property(actually dragging) [CODE]for (var j=0;j<5;j++) { var othis = this.bands[j]; othis.onDragstart = (function() {return othis.onDragstartResizeHandle()}); }[/CODE] onDragstartResizeHandle function [CODE]band.prototype.onDragstartResizeHandle = function() { alert(this.id); }[/CODE] when I drag a band it …

Member Avatar for chamika.deshan
0
98
Member Avatar for chamika.deshan

Hi I have a class page.js page.js ------- [CODE]var band = null; for(var i=0; i<=10; i++) { band = new Band( 100, 100); band.onDragstart = function() { alert(i); }; }[/CODE] each time ondragstart triggers this prints the value 10 for all band objects. if i need to print 0,1,2,3...10 what …

0
75
Member Avatar for gunnarflax

Hi, I'm not good at all at JavaScript but I'm trying, so bear with me. What I want to do is that when I click on a <input type="text" /> tag the checkbox next to it should become checked. I've tried with the help of internet for a couple of …

Member Avatar for gunnarflax
0
257
Member Avatar for deafboyzaudio

Hey everyone, Wanted to say hi, greetings to everyone!!! I was hoping that I could get some help here as my efforts to get help elsewhere have been futile.... I found a good pagination tut at this link: [url]http://www.dynamicdrive.com/dynamicindex17/ajaxpaginate/index.htm[/url] that im using with PHP and a MYSQL database. I can …

0
59
Member Avatar for Heinz Stapff

Hi everyone, I have a table that is written from 'display' window to 'register' window. It is a CART TABLE. It is suposed to cut down on posts to the server and is written entirley with client side javascript. There should really be ony one post to the server when …

Member Avatar for Heinz Stapff
0
652
Member Avatar for Pleasant Day

Below is a Random Quote generator script I found on the net, its a great script, but I want the quote to be in bold, how is that done please? [code=html]<center> <font color="#71025F" size="2" face="Verdana,Arial"> <script language="JavaScript"> // ============================================== var Quotation=new Array() // do not change this! // Set up …

Member Avatar for yehawdude
0
155
Member Avatar for pawn10

hai, this is pawn actually i have a problem with javascript i have written code for menu stripes i.e drop down menu it's working proper in mozilla but in internet explorer not getting proper the align showing in different style. so please if u have any solution reply

Member Avatar for harrierdh
-1
58
Member Avatar for letlet_pogs

Hello, good day. I am a newbie in AJAX. I am still starting at this programming language. I just want to ask for help. I have a field "From" and "To". If you select "1969" in "From" field, then in "To" field, the user will automatically select YEAR that is …

Member Avatar for letlet_pogs
0
79
Member Avatar for fumnimda

hi i want to get height of a div with[B] document.gtElementById('divid').offsetHeight [/B]in javascript. it works well in firefox but in IE it returns 0. what is the solution? i guess maybe the offsetHeight doesn't work in IE ,but [B]document.body.offsewtHeight[/B] return a number bigger than 0 ! altought it is different …

Member Avatar for arunss
0
78
Member Avatar for sharao

hi frnds, if any one disable javascript in their browser...eventhough how to run our script...i think jquery is one option but i don't know exactly.. if any one knows tell me the process how to run script when disable... Thanks...

Member Avatar for kvprajapati
0
336
Member Avatar for realnsleo

Hi, okay i've spent hours in the web searching for the right image slideshow/gallery to use for my website but in vain! Dont get me wrong the jQuery, Ajax scripts i've seen so far are so good but they all use lists to load all the images at once and …

Member Avatar for realnsleo
0
147
Member Avatar for richholt

If anyone can solve this, I would honestly think you're a genius. I've been using html/css 10+ years and this has bugged me for days! You can see the problem if you view [URL="http://www.dripsplat.com/dev/ttass/courses.php"]http://www.dripsplat.com/dev/ttass/courses.php[/URL] and click the "course outline" link to expand content. Content expands but footer stays where it …

Member Avatar for MidiMagic
0
100
Member Avatar for karin42

Hi! I am attempting to change the innerHTML code of a div and to run javascript code at that time. But I seem to be unable to do it. The actual workings of the whole thing are really convoluted but here is the general idea: [CODE] <html> <head><title>JavaScript test</title> <script …

Member Avatar for karin42
0
202
Member Avatar for desiguru

I want to launch this after 5 seconds once page gets loaded. How can I do this? [CODE]<script type="text/javascript"><!-- window.onload = function() { document.location.href = 'http://www.google.com';} // --></script> [/CODE]

Member Avatar for harrierdh
0
75
Member Avatar for doforumda

hi let me explain what i want I have four pages.two html, one js and one php. First page is loginTab.html. There is a tab called "Tab One" when user clicks on it there is a script inside this html page which calls function and loads an external login.html form …

Member Avatar for doforumda
0
83
Member Avatar for brianzet

Hi everybody I want to append an id from my mysql database to jQuery. I dont know how to figure this out in ANY way :-S :-( This is my code: [CODE] <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("li.card").hover( function () { $(this).append($("<div id='popup'>This is has id nr. <?php …

0
68
Member Avatar for tetnao

I am using both InPlaceEditor and InPlaceCollectionEditor on my page. InPlaceEditor is working fine, changes into a textbox when I click on the div that is suppose to call InPlaceEditor, but InPlaceCollectionEditor isnt quite working. The div tagged to InPlaceCollectionEditor still highlights when I hover over it, but when I …

0
43
Member Avatar for gamestoenjoy

Hi, I am currently learning AJAX, and I want to write an simple example program (it is only for practice, it has no real meaning). The program sends request to to PHP and gets response from it, then it should write the response using message box, all should happen on …

Member Avatar for gamestoenjoy
0
368
Member Avatar for doforumda

how can we add preloader in ajax code. what i want is when user press button then .gif preloader displays until the data loading is completed. how can we do this? any examples will be appreciated.

0
64
Member Avatar for ffs82defxp

Okay I am relatively new to javascript, and my project is to create an xhtml page that contains <iframe> and javascript that monitors the changes in a web page's source code. Okay. I got everything down, except I don't know how to do an onchange event that works with javascript. …

0
56
Member Avatar for pac-man

hi all, I'm a newbie to AJAX (spent most my time on the C++ forum) but I'm in need of some advice. I plan on building a web-application in PHP with AJAX functionality. Now, I've never touched AJAX before and wanted to know which route would be more convenient a) …

Member Avatar for kvprajapati
0
135
Member Avatar for handyman_uk

I am placeing this thread here as i believe it id a java script problem not being a programmer i havnt a clue anyway i am working on a website still needs lots of work but it works fine in firefox but only shows the background in IE sorry to …

Member Avatar for handyman_uk
0
72
Member Avatar for anuj_sharma

Hey Guys, I have often noticed that most times when we register to a website it asks for a long length password. Why is this so?? What not use shorter length passwords as it would be much more easier to learn. I hope i am not asking a silly question.

Member Avatar for Graphix
0
72
Member Avatar for SKANK!!!!!

like theres two pages. page one calls page two and displays the output of page 2 on page 1 via ajax. now can i click on page 2's output(on page one) and have it execute another javascript function to call AJAX(a third page) ? or what? if so... how?

Member Avatar for Graphix
0
90
Member Avatar for doforumda

hi i just created ajax tabs. it works fine but it contains too many functions for just three tabs. I want to know any other way to reduce these amount of functions. i am new to ajax. my code is below data.html [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> …

Member Avatar for Graphix
0
88
Member Avatar for gizmocreations

I have come across several websites that use genie scroller. However, when I go to the website it looks like that is no longer sold. Does anyone know of something similar? I have run across a few things, but nothing that works like Genie Scroller.

Member Avatar for Graphix
0
79
Member Avatar for davidjcolbran

OK, I have a JS which validates the correct format for postcodes (or zip) on an html form - works fine. But what I want to do is to use a JS to see if a website visitor is eligible for a particular service on their postcode / zip - …

Member Avatar for davidjcolbran
0
1K
Member Avatar for team_ferrari22

Hi, In Google Chrome the [COLOR="Green"]'chrome.tabs.captureVisibleTab(integer windowId, function callback)' [/COLOR] method will return a data URL of the JPEG encoding of the visible area of the captured tab. We want to save that content as image to hard disk without opening/passing the contents into new html page. Does anybody know …

0
71
Member Avatar for Rec3000

Hi all. I'm trying to implement a rotating image system written in Javascript into a PHP website. The PHP page and the Javascript both work fine independently, but integrating the JS is proving tough and giving me errors. Here is the top part of the PHP page: [CODE]<? include ("./application.php"); …

Member Avatar for Rec3000
0
146
Member Avatar for sbedaniweb

How do I associate a button with a function andn still have it display text, click to calculate,and start a function in JavaScript

Member Avatar for d5e5
0
77
Member Avatar for phuong_bg

I really like the drag-drop box from bbc.co.uk, but I don't know how to do it. Can anybody help me to create a page like that?

Member Avatar for harrierdh
0
80
Member Avatar for LloydFarrell

Hi all, I am trying to rotate adds that are from tradedoubler !! I have created a mysql db as follows id,add,link,title and i can succesfully connect via a php include and rotate my query to show a different add each time the page loads [code] $sql = mysql_query("SELECT * …

Member Avatar for LloydFarrell
0
225
Member Avatar for venus_me11

i really need help.. i want to have a realistic bus seating reservation like in some airline reservation we have today... not just like using ordinary tables with rows and columns... i dont know how and where to start.. please help..

Member Avatar for Graphix
0
82
Member Avatar for lifeworks

Hi Simple problem. Ive designed a calendar for booking our boardroom - and I want it to refresh live - so using a timer and an ajax call. Thing is, if you select a new day (also using an ajax call), when it refreshes it needs to refresh with the …

0
77
Member Avatar for feoperro

Hi, I have pasted my code below, please paste it into a JSP and tell me why it gives the error "Unterminated String Constant" [CODE] <html> <head> <title>Debugging</title> <script language="javascript"> function changeOn(object, objectId) { alert('in function'); if (object == 'bookingsButton') { alert('first if'); document.getElementById(objectId).src = 'Images/BookingsOn.png'; } else if (object …

Member Avatar for feoperro
0
205
Member Avatar for venus_me11

I want to have this kind of look [url]http://kleankanteen.com/faqs/faqs.html[/url] when i click the (+) button, the solution/answer will appear and when i click the (-) button, the solution/answer will disappear here is the sample that i want please help.. i dont know if this is javascrip, ajax or something...

Member Avatar for venus_me11
0
88
Member Avatar for smartness

Is it possible to Copy data from a <input> box the the main windows (the input is opened in a pop-up). I've seen date-time pickers can do that, but can't find the function!

Member Avatar for smartness
0
166
Member Avatar for sandipan.rcciit

hi frnd, i have a html form with some text fields and i have a check box that when i click on it the data form 1st text box come to the next one. its working fine when i write the text in text box. but if i use php …

0
75
Member Avatar for julzk

Hi, I have the some php/mysql queries that pull data from my database and then echo out json_encode($rows);. In turn I display the data in my divs from JSON array's. My query is, I am trying to work out how to incorporate the an auto refresh on each of the …

0
62
Member Avatar for team_ferrari22

Hi, We are developing a Google Chrome Extension to capture whole web page as image. Most of the available Extensions will open a tab/window on the click of a button,where they are showing the captured web page as image(in new html page).And are telling to right click on the image …

0
75
Member Avatar for feoperro

Hi, I was wondering if it's possible to vertically align a table, using the page as reference to alignment. I don't want to valign the content INSIDE the table, but align the table itself so that it is always situated in the middle (vertically) of the page. Thanks, -Ashton.

0
120
Member Avatar for hajjo

I want to resize a page dynamically so that it removes the scrolls i want to resize both heights and widths.. I want to bring the size of heights and widths of the scrollls..and resize based on it making overflow:hidden wont solve it.. because it will remove scrolls but wont …

Member Avatar for hajjo
0
65

The End.