15,700 Topics

Member Avatar for
Member Avatar for cwarn23

Hi and I'm no noob 2 ajax and have used it many times before. But for some reason this script doesn't want to work on any browser except Internet Explorer. Can anybody see what I have done wrong in this code as I have searched and searched for hours and …

Member Avatar for cwarn23
0
160
Member Avatar for beanboy

hi, JAVASCRIT the actual program reads and prints values from a checkbox tree and this piece of code does it. [CODE] dhtmlXTreeObject.prototype.getAllChecked=function(){ return this._getAllChecked("","",1); } dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){ return this._getAllChecked("","",0); } dhtmlXTreeObject.prototype._getAllChecked=function(htmlNode,list,mode){ if(!htmlNode)htmlNode=this.htmlNode; if(((mode)&&(htmlNode.checkstate==1))||((!mode)&&(htmlNode.checkstate>0))){if(list)list+=","+htmlNode.id;else list=htmlNode.id;} var j=htmlNode.childsCount; for(var i=0;i<j;i++) { list=this._getAllChecked(htmlNode.childNodes[i],list,mode); }; if(list)return list;else return ""; }; [/CODE] the values are returned …

0
56
Member Avatar for cooterbrown

Hi, I posted this on the web development forum and did get headed in the right direction, but it looks like it should be here as another member suggested.... I have a calculating order form, which is at [url]http://www.bcdcoatings.com/orderform.htm[/url] which I partially inherited. The problem is that the second drop …

0
50
Member Avatar for vairvixen

I'm really new at JavaScript, but I thought an image map with rollover images would be a relatively basic feat... I have a large map with hotspots over individual states. I want the user to hover over a hotspot and for the main image to change, displaying information for that …

Member Avatar for vairvixen
0
184
Member Avatar for Potato.Head

How can I capture the maximize and minimize of a browser? It is possible to capture this events? I'm searching the web and I didn't found any results. I want to be know if the user maximize/minimize the browser ? Is this Possible? Thanks for the help

Member Avatar for Troy III
0
92
Member Avatar for ritu verma

I know how to fetch the records from DB,But i want to ask u just small thing. SQL TABLE [code] roll name marks 1 Ritu 10 2 Sneha 20 3 Ruchi 30 [/code] CODE BEHIND PAGE Default.aspx [code] protected void Page_Load(object sender, EventArgs e) { cmbRoll.Items.Add("--Select--"); cmbRoll.Items.Add("1"); cmbRoll.Items.Add("2"); cmbRoll.Items.Add("3"); cmbRoll.Attributes.Add("onChange", …

0
73
Member Avatar for lkofman

[code=html]<html> <head> <title>Ajax demo</title> </head> <body > <script type= "text/javascript" > var req; function validateUser() { alert("validate catched") if(window.XMLHttpRequest){ req=new XMLHttpRequest(); } else if (window.ActiveXObject) { req=new ActiveXObject("Microsoft.XMLHTTP"); } else{ alert("Your browser does not support XMLHTTP!"); } alert("request catched") var idField=document.getElementById("userid"); var url="localhost:1234/a/validate?id=" ; url+=idField.value; req.open("GET",url,true); req.send(null); } </script> <H1>Ajax …

Member Avatar for lkofman
0
137
Member Avatar for lifeworks

Hi I hope this is an easy one... Im a bit of a noob when it comes to mootoools, but have created a menu which hides itself and slides in from the left... I'd like to have it start hidden first though... can anyone tell me what i need to …

Member Avatar for lifeworks
0
111
Member Avatar for stvrich

I am just wondering if someone can tell me what this message means, even roughly. The following is the error message box that pops up when I try to access/open a yahoo email account. The error (in english) is followed with some script referred to. I am very "curious" what …

Member Avatar for stvrich
0
126
Member Avatar for beanboy

[CODE] <html> <body> <input type="text" value=""> <input type="reset" value="reset"/> </body> </html> [/CODE] why is my reset button not resetting the text box?

Member Avatar for anuj_sharma
0
156
Member Avatar for feoperro

Hi, I would like to assign the substring of particular text to a javascript variable so that I can use the variable in an if statement. Can anyone help me here? Thanks!

Member Avatar for Airshow
0
85
Member Avatar for feoperro

Hi, I've got a textarea like this: [CODE] <textarea name="myTextArea" rows="4" cols="20"> </textarea> [/CODE] For some reason every time the page starts, the text area is populated with a couple spaces inside it. Any way to clear it on startup? Thanks, -Ash.

Member Avatar for feoperro
0
97
Member Avatar for beanboy

i've printed sent some text into window.open. is there any method to read the data from that [U]window.open[/U] page?

0
62
Member Avatar for beanboy

Dear Helper, javascript code: [CODE] dhtmlXTreeObject.prototype.getAllChecked=function(){ return this._getAllChecked("","",1); } dhtmlXTreeObject.prototype.getAllCheckedBranches=function(){ return this._getAllChecked("","",0); } dhtmlXTreeObject.prototype._getAllChecked=function(htmlNode,list,mode){ if(!htmlNode)htmlNode=this.htmlNode; if(((mode)&&(htmlNode.checkstate==1))||((!mode)&&(htmlNode.checkstate>0))){if(list)list+=","+htmlNode.id;else list=htmlNode.id;} var j=htmlNode.childsCount; for(var i=0;i<j;i++) { list=this._getAllChecked(htmlNode.childNodes[i],list,mode); }; if(list)return list;else return ""; }; [/CODE] [CODE] <a href="javascript:void(0);" onclick="document.write (tree2.getAllChecked())">Get list of checked</a><br><br> [/CODE] You may guess, the list is displayed in alert box. but …

Member Avatar for Airshow
0
138
Member Avatar for QuickBooksDev

Script works in MSIE but not FireFox (part of a VB.NET 2005 web site) There must be a place in FireFox or a JavaScript settings somewhere that allows errors to continue. The below works in MSIE var _rate = "ctl00$ContentPlaceHolder1$txtrate"+index; var rate = document.getElementById(_rate).value; index = 1 to 10 for …

Member Avatar for QuickBooksDev
0
185
Member Avatar for feoperro

Hi, I'm trying to do the following: 1. Click on a row (ANY cell of that row) 2. Depending on where I clicked, a javascript function should get the value of EACH cell in THAT row, and populate it to text boxes. Below is my code thus far: [CODE] <html> …

Member Avatar for Dukane
0
163
Member Avatar for cj1

Hello all. I am unable to solve two problems creating a contacts form using dreamweaver CS3. My other problem is posted under the heading, "Modify code created with Dreamweaver CS3, to compare two text feilds". For this posting, can someone please tell me how to modify my code, pasted below, …

Member Avatar for McFant
0
217
Member Avatar for phutisemenya

hi, All i have two options form; one hold $selection that select suburb from datadase and other $suburb which “Selected Records”. when a suburb is double clicked, it should automatically be added to the corresponding selected section; and be removed from the selection list. The same with a record that …

0
71
Member Avatar for penepepe

Hi there! i've got an html form and i want to make sure some fields are not empty before it gets submitted. i've read many examples and i've written some code but i have no idea why it doesn't work (it's as if the javascript script didn't exist). i don't …

Member Avatar for penepepe
0
135
Member Avatar for onejavaone

html code: [CODE]<ahref="javascript:void(0);"onclick="alert(tree2.getAllChecked());">Get list</a>[/CODE] this calls script code [CODE] dhtmlXTreeObject.prototype.getAllChecked=function(){ return this._getAllChecked("","",1); }[/CODE] how to get the list to the nxt jsp page (not to alert box)

Member Avatar for peter_budo
0
35
Member Avatar for zido85

Hello, I have a little problem, and i want to ask if someone can help. My problem is, Im using AJAX to get PHP page result (the result is called from MySql and inserted in a table) in a DIV contained in my main PHP page where i m using …

0
73
Member Avatar for scarypajamas

Oh, so I know you can include html files inside html files using: [CODE]<!--#include virtual="myfile.html" -->[/CODE] The problem is, I might want to change the html I include based upon variables passed between web pages. For example... [CODE] <script type="text/javascript"> var name = getValue("myValue"); //getValue returns the value of a …

Member Avatar for Thirusha
0
175
Member Avatar for leviathan185

My issue may be similar to daved83's issue where my script works as designed in firefox but when used in IE6 (the only IE i have tried so far but matters because it will only be used on IE6 at this stage) his was in AJAX and I am new …

Member Avatar for essential
0
160
Member Avatar for Altairzq

Hello, I'm new at Ajax and Javascript. Can anyone help me on this? I'm calling 2 Ajax funcions, one after the other, with a delay time in between. The first call executes a script that inserts a row in a MySQL database. The second call execustes a cript that lists …

Member Avatar for Airshow
0
159
Member Avatar for feoperro

Hi, Is there a way to reference a table cell in a table that will have X amount of rows? I want to use javascript preferably... The only methods I know of are "getElementById" and "getElementByName" - Problem is, since the cells are only known once the page is run, …

Member Avatar for feoperro
0
162
Member Avatar for feoperro

Hi, I'm trying to set table cells according to co-ordinates [x][y] - does anyone know if this is possible? Here's what I've done so far: [CODE] <html> <head> <title> Trial & Error - Table Cells </title> </head> <body> <script type="text/javascript"> function getRow(t) { var col=t.cellIndex; //Gets column number clicked on. …

Member Avatar for feoperro
0
264
Member Avatar for daved83

Hi everyone, I hae created a dropdown menu using ajax where each option is populated dynamically based on the previous choice. It works great on Firefox thanks to help I got on this forum. It doesn't work on IE however. I believe this is because IE doesn't recognise the innerHTML …

Member Avatar for Troy III
0
104
Member Avatar for Terry56

Hi to all, Hope you all will be fine.Please tell me what's wrong with this code, why it is not working on internet explorer 6 even i check the browsers which the user is running, works fine on some browser but not on all browser and on also different versions. …

0
66
Member Avatar for feoperro

Hi, I have a javascript function that sets the value of an input area on my page. I need to update the function so that it also sets the value of the input area on a separate page. Currently, I am using a frameset, so I can see both pages …

Member Avatar for feoperro
0
77
Member Avatar for atplerry

i am designng a site the uses CSS and the CSS Uses Javascript, On the first load of the page the popup block the css from displaying it content which i guess is the java script and the pop up do distort my page at first load until i remove …

0
86
Member Avatar for leviathan185

I have written some code for template generator but I am having issue getting the formatting when it is generated in the <textarea></textarea>. I want to have it to look like Service Affected: {then populated text} Service Status: {again populated text} Current/Next Actions: {populated text} it ends up printing out …

Member Avatar for leviathan185
0
237
Member Avatar for flockit

Hello, I want to stick one DIV to the bottom! I've managed to do that but when I scroll down the DIV doesn't scroll smoothly! Below is my code:- [CODE] <div id="x"> <center> <div id="footer" style="width: 95%; background-color:#66CCFF; border: 1px normal black; top: 100px; position:absolute; align:center; height: 50px" align="center"><center>A</center></div> </center> …

Member Avatar for mail2saion
0
176
Member Avatar for KlNTARO

Greetings. I'm stumped with a particular problem involving an ajax script that works for Firefox, Opera, Safari, and Chrome... but unfortunately does not work with any version of IE [I](*actually I haven't tested IE6 or less yet, but who cares about those anymore*)[/I]. On the HTML side, a list of …

Member Avatar for farhan386
0
176
Member Avatar for coollife

reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/; what is the use of / operator and ^ what does + used for why \ please explain in depth Thank u

Member Avatar for farhan386
0
66
Member Avatar for gokul.raja

Hello, I need to know this one. How can we get printer status using JavaScript and also how can we give MS word document print command using JavaScript.

Member Avatar for farhan386
0
236
Member Avatar for eduardor2k

Hi to everyone, i'm new to javascript and to daniweb, what i want to do is to put all the properties from all the divs of the page, to all their child elements, this way, for example. [code] <div style="background-color: #000000"> <b>Text</b> </div> [/code] would change (using javascript) [code] <div> …

Member Avatar for Airshow
0
310
Member Avatar for revata

I have this email validation which checks to make sure a "@" sign is present but doesn't check for "." I just need to add this to the function which I thought would be pretty easy but has proved otherwise. Here's my script: [code=html] <script type="text/JavaScript"> <!-- function MM_findObj(n, d) …

Member Avatar for Thirusha
0
83
Member Avatar for leviathan185

Hi, I seen an IDE a while ago that stated that you do not need to install or require Admin Priviliges to use on any PC. I can no longer find it. Does anyone know of such an IDE?

Member Avatar for leviathan185
0
245
Member Avatar for Chad Gary

I have the following nested javascript collection (below) and I'm trying to access the information within the collection using prototype so I can properly style and layout the data. I'm stuck and would like to know if anybody could assist. [CODE]var teams = { "team1:" { "QB": "Alexander Hamilton", "RB": …

Member Avatar for Chad Gary
0
205
Member Avatar for coollife

[url]http://www.braiform.com/Menu-Two/Hanger-Catalogue/?id=29[/url] check the above website . on mouse over of any image a pop up appears and displays the image information i want to achieve the same thing in my project Please tell me which language is used for this purpose and how to do that.

Member Avatar for coollife
0
260
Member Avatar for pocketmaster

I need to modify the invetory program to be CARS not cd's, dvd's or computer equipment. I have the program for cd's, what would it take to change the pruduct to CARS?

Member Avatar for ithelp
0
69
Member Avatar for vishalkhialani

Hi, My aim is to have one div element move up when there is a mouse over and another div element to become visible when the same mouse over effect takes place. I managed to do this you can see the video here [url]http://www.youtube.com/watch?v=kmdx4p_FE4M[/url] and the code I used is …

Member Avatar for Hoaxygen
0
62
Member Avatar for jaiprakash22

Hello everyone, I am developing a product (java based) which requires heavy time scheduling. I wanted to use a DHTML ajax calendar package. Does anyone have any experience in any of the packages out there? I am particularly interested in [URL="http://web2cal.com"]web2cal events calendar[/URL]. I downloaded their free example and tried …

0
49
Member Avatar for cy133r

i create an autocomplete textBox with Ajax/PHP that read data from a data base.it works properly but there's a problem about one letter (k). when i type this letter in the box, it doesn't show anything in the dropdown list (while there are some words begin with "k"). i guess …

0
46
Member Avatar for nostalgia149

I have used the following codes for the slideshow alongwith a bit more of these....but need some changes. [code] var photos=new Array() photos[0]="images/8-x-10-tasveer-5e.jpg" photos[1]="images/93vande-mataram.jpg" photos[2]="images/2008_slumdog_millionaire_005.jpg" [/code] now wht i need is that all these images should appear from the database.. i tried doing this with some naive codes but failed.. …

0
83
Member Avatar for rahul8590

the follwong is the basic java script i wrote and its not working (giving the desired output as i wanted ) [code] <html> <head> <title>hello </title> </head> <body> <h1 align='center'> Using Arrays </h1> <script language = "JavaScript"> emp = new array(5) emp[0] = rahul emp[1] = rahul1 emp[2] = rahul2 …

Member Avatar for Dukane
0
137
Member Avatar for Ana D.

Hi, I'm playing with javaScript and AJAX and using the source code used in this page: [url]http://www.codeproject.com/KB/webforms/MultiSelectDropDown.aspx[/url] (Actually I copied the code on the Default.aspx to the page I was working on, which has a MasterPage and translated Default.aspx.cs from C# to VB.NET) However, I'm having an "Object Required Error" …

Member Avatar for Ana D.
0
350
Member Avatar for sivakumarl

Dear Friends, we are facing a problem with alt attribute in Java script.While retrieving alt attribute in IE its working fine but in FireFox we are getting as undefined.Please give solution for retrieving the alt attribute in firefox. please find the below code for how i am retrieving... <html> <head> …

Member Avatar for sivakumarl
0
149
Member Avatar for KikoLtd

hello, i have created a bottom bar like facebook's. I want to have some menus on that bar so when i click they will drop up and have some text inside (code). i don't know how to do that and i don't know how to have image and text in …

0
41
Member Avatar for daved83

Hi everyone, I hae created a dropdown menu using ajax where each option is populated dynamically based on the previous choice. It works great on Firefox thanks to help I got on this forum. It doesn't work on IE however. I believe this is because IE doesn't recognise the innerHTML …

0
47

The End.