15,127 Topics
| |
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 … | |
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 … | |
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 … | |
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 | |
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", … | |
[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 … | |
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 … | |
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 … | |
[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? | |
| 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! |
| 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. |
i've printed sent some text into window.open. is there any method to read the data from that [U]window.open[/U] page? | |
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 … | |
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 … | |
| 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> … |
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, … | |
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 … | |
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 … | |
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) | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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, … |
| 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. … |
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 … | |
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. … | |
| 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 … |
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 … | |
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 … |
The End.