15,127 Topics

Member Avatar for
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
53
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
48
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
181
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
89
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
70
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
135
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
108
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
123
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
154
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
84
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
93
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
59
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
136
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
183
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
161
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
215
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
69
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
134
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
33
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
71
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
173
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
157
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
158
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
160
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
260
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
102
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
64
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
76
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
82
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
234

The End.