17,114 Topics

Member Avatar for
Member Avatar for Alexandro

I need to parse a element from a XML file: <a> <b>45</b> <c>67</c> </a> <a> <b>98</b> <c>89</c> </a> So I try to read and put in a html element the first value of b with the next code: [CODE] document.getElementById("apDiv3").innerHTML=xmlDoc.getElementsByTagName("b")[0].data; or document.getElementById("apDiv3").innerHTML=xmlDoc.getElementsByTagName("b")[0].value; [/CODE] and I get a undefined message.Where is …

Member Avatar for Alexandro
0
322
Member Avatar for thirunavukaras

I have a link wich opens a the second page with links wich call a javascript function. I have some problem with javascript. i am two aspx page.. in my first aspx page contain the second aspx page name.. i am clicking the second page link the second page is …

Member Avatar for ~s.o.s~
0
114
Member Avatar for Fungus1487

hello, im guessing this question is quite trivial. i have a page setup as follows. MAIN PAGE [CODE] <html> <head> </head> <body> <div id='innerlogin'><iframe src='INNER PAGE'></iframe></div> </body> </html> [/CODE] INNER PAGE [CODE] <html> <head> <script type="text/javascript"> function RemoveDiv(){ d = parent.document.body; d_nested = parent.document.getElementById("innerlogin"); throwaway = d.removeChild(d_nested); } </script> </head> …

Member Avatar for MidiMagic
0
317
Member Avatar for ashneet

I dont really have code for this but here it goes. First of all I have basic knowledge of JavaScript and have moderate knowledge of php. What I am trying to do is when someone click on a link. It will display a hidden form via Javascript modifying CSS(which I …

Member Avatar for MidiMagic
0
61
Member Avatar for ashneet

Here is a function I made: [code]function dis_sub(CID,ALI,NAME,PIC,EID) { SUB_CAT+CID.ALI.value = ALI; SUB_CAT+CID.NA.value = NAME; SUB_CAT+CID.IDD.value = EID; }[/code] It is saying that I have syntax error right after the = sign. Also SUB_CAT is not a variable.

Member Avatar for ashneet
0
83
Member Avatar for ndeniche

i've seen several threads about javascript books... but, since there are other people that learn faster from internet tutorials... could someone point me out where to look for javascript and ajax tutorials?

Member Avatar for ndeniche
0
88
Member Avatar for Lbruce

Hello, does anyone know how i can validate a date field using javascript. The field is a text field that accepts a date in the format yyyy-mm-dd. i appreciate your help. Thanks.

Member Avatar for ~s.o.s~
0
101
Member Avatar for chrisw09

I have a form that consists of indexed fields like: [code] <input type="text" name="formItems[0].part" value="TK02"> <input type="text" name="formItems[0].price" value="13.0"> <input type="text" name="formItems[0].qty" value="1"> <input type="text" name="formItems[1].part" value="AG-1"> <input type="text" name="formItems[1].price" value="7.0"> <input type="text" name="formItems[1].qty" value="10"> [/code] In netscape/firefox, i can access the qtyOrdered value using: [code] document.forms['ShoppingCartForm'].elements['formItems[0].qty'].value [/code] How do …

Member Avatar for digital-ether
0
107
Member Avatar for Caled

Hello, I'm developing a small, web-based music sharing application. I used to create static HTML contents. But now, I need a dynamic site that retrieve information from databases (also write data to database). As a beginner in PHP and MySQL, I hope someone from here can help me out.. Here …

Member Avatar for atplerry
0
95
Member Avatar for Cragdo

Hi folks, I been asked to post data from a form to a msg broker system being tested by an external team. I have been told that all I should do is post the data using http request in the following format to a server. [code=javascript] var http =new HttpClient(); …

0
143
Member Avatar for muruganasm

hi i have write the php language code. The login form creation. The validation part is ok.. but data is not pass to one page to another page. I have used `$_REQUEST` and `$_Post` method but not working.. any body replay me.. the following codes.. THe First file is login.php. …

Member Avatar for Cerberus
0
93
Member Avatar for joruo

i have been trying to add javascipt in my php script to implement dynamic form filling but it seems not to work. the javascript code works well without the php script what could br wrong? [code=javascript] var alive1 = new Array("Yes","No"); var alive2 = new Array(""); var loss = new …

Member Avatar for johny_d
0
96
Member Avatar for Pro2000

Hello there, I designed 3 buttons and a form contains a Text Input, I want to make those 3 buttons add tags inside the Text Input,Explain: Example: I am a user, I wrote in that Input a text,the text is: "Hello How are you, bla bla bla..." I want to …

Member Avatar for Pro2000
0
244
Member Avatar for mp54214

Hi, Can anyone say, why the following TEXTAREA-enlargening javaScript does not work in Firefox even though it works ok in IE7? <html> <head></head> <body> <form name="form1" method="post" action="" id="form1"> <br /> <br /> <textarea name="TextBox1" rows="4" cols="15" id="TextBox1" onClick="enLargeTbox(this.name)" onMouseOut="ReduceTbox(this.name)"></textarea><br /> <textarea name="TextBox2" rows="4" cols="15" id="TextBox2" onClick="enLargeTbox(this.name)" onMouseOut="ReduceTbox(this.name)"></textarea><br /> <textarea …

Member Avatar for GiorgosK
0
112
Member Avatar for Mikecool509

Hello, I am trying to integrate a link in a Visio diagram to a specific remote desktop session. Basically, I want to be able to click a server in my drawing, and have remote desktop come up with a connection to that server. I know that the syntax of the …

Member Avatar for digital-ether
0
81
Member Avatar for saswati_mishra

Hi, I have an html page which is designed using tables. I would like to know that if I click on a button located in one cell of the table, it should open another page in a new cell of a different table without refreshing the entire page. I tried …

Member Avatar for Kelicula
0
92
Member Avatar for ReverendBoltron

I have been working a bit in PHP and JavaScript and AJAX lately. I am very new at it all, so any help would be greatly appreciated. [B]Here is the question: [/B] What is the best way to make sure keep data from an AJAX call, and cut back on …

Member Avatar for ReverendBoltron
0
123
Member Avatar for ket7880

Hi I created few pages website and is have some display problem with different browser. Link color and mouse over color is not displaying as i want in IE6 I am sending the .CSS file and Templates code. Pls help me. Thanks Template Code:- [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …

Member Avatar for MidiMagic
0
150
Member Avatar for Arch_Bytes

I found that my code keeps returning the no properties found error once more so I go ahead and try to debug it.. I used an alert box to see what value my component stores.. Unfortunately for me, it said that its value is UNDEFINED.. what is this supposed to …

Member Avatar for MidiMagic
0
125
Member Avatar for sillyboy

So I tried to google my problem, but for a change I didn't get any worthwhile answers. What I want to do is to have an external js file to define some functions (which will be used for form validation). Then I want to use the external functions inside each …

Member Avatar for sillyboy
0
102
Member Avatar for karlm

Hi guys, first & foremost, my apologies if this is posted in the wrong zone - feel welcome to move it if necessary. OK, and on to my situation... I'm attempting to rewrite my navigation bar (vbulletin) to use images as oppose plain text. I used to frontpage2003 to start …

Member Avatar for karlm
0
141
Member Avatar for roryt

As you may have probably gathered Javascript isn't my strong point ;) I want to be able to swap a class of one div when a link is in the :hover state. Therefore I should be able to swap a background image. Thanks for you help.

Member Avatar for roryt
0
91
Member Avatar for DavidB

Here is a basic question (I thought I knew how to do this, but apparently not). (I am using Firefox 2.0.0.4, in case that is a factor). I am writing a Javascript page and want one of the text fields to default to a blank when the page is reloaded. …

Member Avatar for ~s.o.s~
0
127
Member Avatar for s s paul

Hello I want to pass the database retrieved username after user logs on & hence to check login correctness I am using php & jsp [code=php] <?php $conn= mysql_connect("localhost", "root", ""); if(!$conn){ exit("Error in SQL"); } mysql_select_db("college", $conn); $val1=$_REQUEST['login1']; $val2=$_REQUEST['password1']; $sql = "SELECT * FROM tlogin WHERE tid='$val1' AND tpasswd='$val2'"; …

Member Avatar for doubledub
0
88
Member Avatar for Spycat

Hello, I am running a homeowner's association website (1 page only). The manager asked if I might be able to allow her access to make announcements from time to time. I think this would be a good idea, but I don't want to give her carte blanche access to the …

Member Avatar for Resonate
0
123
Member Avatar for Daemn

Hi, I've been brainstorming features for my forums and how I should layout ads. I came across many "banned from AdSense" topics, so I made sure to read all the policies and guidelines well. As far as too many clicks and click bots go, I don't want to get banned …

Member Avatar for guruwebllc
0
84
Member Avatar for shockeye

My company provides a property listing service that is implemented via javascript and an iframe. This particular case is a lot more customized than most, passing variables from our site to their URI for more seamless integration (usually we just pass all URI variables in the iframe). Here's the unexpected …

Member Avatar for shockeye
0
127
Member Avatar for thornside

I have two frames. The links in the left frame open up in the right. I would like to know if it is possible when clicking on links in the right frame, to put focus on the corresponding link in the left frame. Thanks in advance.

Member Avatar for digital-ether
0
116
Member Avatar for Shamail

Hi, I am trying to create a web based text editor(the one just like in yahoo mail) and the feature i am trying to implement is of highlighting the text with different colors as you can do while composing email in yahoo.. can anyone please help?? Thanks,

0
60
Member Avatar for Racoon200

Iam making a game, the error is that in the "d" loop (for...) the value "holeBalls" stays always the same. [code] for (d=holeNum;d<=holeBalls;d++) { document.getElementById('hole'+d).value++ } } [/code] what i want is that holeBalls here, gets the value of "'hole'+id" because now what happens is that (this is a kalah …

Member Avatar for Racoon200
0
103
Member Avatar for tehgreatmg

I need help with writing a hit counter in javascript. I am new to weboage design so I really dont know how to go about doing this.

Member Avatar for digital-ether
0
981
Member Avatar for MetalHobin

I couldn't find a userscript for greasemonkey that removed that pesky banner at the top of the page, so I wrote this one, I've made it available here [URL]http://userscripts.org/scripts/show/10228[/URL]

Member Avatar for digital-ether
0
88
Member Avatar for loquela

Hi there, I've been using PHP and MySql for some time now but I am quite new to Javascript. I would like to know how it is possible to insert data stored in a MySql database into Javascript code. For exmple, I am working on a travel guide site and …

Member Avatar for digital-ether
0
944
Member Avatar for awanti

hi everyone, Iam doing a question bank and solution project.My problem is how to set time when a student is solving a paper.I tried using javascript but when a postback occurs the timer is reset.

Member Avatar for NET-Developer
0
53
Member Avatar for akash_msrit

hi, i have a jsp page, in this page i am displaying data retrieved from mysql database. Now [B][U]the problem is i must color table cell based on cell value[/U][/B]. how to implement this.please give me an sample or working code foe this problem.( any code is accepted) preferably html …

Member Avatar for ~s.o.s~
0
100
Member Avatar for bball7210

All, I am currently developing a UserJS "plug-in" for Opera in Linux using verision 9.21, build 641. I have encountered some bizarre problems and have been able to isolate and reproduce one using the code posted below. The basic issue throughout my code (and reproduced below) is that a command …

Member Avatar for ~s.o.s~
0
110
Member Avatar for sasi81

Hello everyone.. I have a problem i.e., unable to register an ocx file from server.The sample code is enclosed. Could anyone pls help me out.. <HTML> <HEAD> <TITLE> Draw a Square </TITLE> </HEAD> <BODY> Here is a sample square from ActiveX: <OBJECT ID="Sample"CODEBASE="http://my server address......../Sample.ocx" HEIGHT="101" WIDTH="101" CLASSID="clsid:0342D101-2EE9-1BAF-34565634EB71"> <PARAM NAME="Version" …

0
69
Member Avatar for schwarznavy

Hello, I'm not a Javascript expert -- not even a novice. But reading this forum and others, I've managed to get code in my page that allows me to have a big image, and three thumbnails. When I click on the thumbnails, a bigger version of them replaces the big …

Member Avatar for MidiMagic
0
97
Member Avatar for johnroach1985

Hi. I am creating an asp.net web site. Using GridView the website creates a table. Now my question is I want to write a javascript function that colors the text "NO" red within the table cells. Waiting for your reply.

Member Avatar for johnroach1985
0
312
Member Avatar for HTTL
Member Avatar for HTTL
0
75
Member Avatar for trbjr

Experts, My javascript application worked well until I upgraded. I use IE 6.0.29 with SP2 installed. My Firefox browser is 2.0.0.4. Prior to Firefox upgrade all worked well. Now my application in IE works and Firefox gives me error messages that read: [field name] has no properties. The strange thing …

Member Avatar for trbjr
0
122
Member Avatar for nufanvandal

Hi guys, Wasnt sure exactly where to post this, but I need assistance in exactly how I would take a regular ol' clip art map of the United States, add Markers to specific areas, then when a user scrolls over a marker have a pop up box with some text …

Member Avatar for ~s.o.s~
0
67
Member Avatar for danizzil14

Ok, I'm an amateur Computer Graphics artist, as in I don't make money off of it, but I plan to make it a career, I've been reading some different lit on the subject and it suggests making a digital portfolio. (ie. a website) One source suggests that I should use …

Member Avatar for ~s.o.s~
0
130
Member Avatar for ovidiu61

Hello everyone, I have a question for you. I would like to call a function situated on a server side servlet or in a jsp file with a javascript function (client side) and to show the results returned by the servlet's function. Do you have any ideas?

Member Avatar for ovidiu61
0
134
Member Avatar for moody

[B]I'm using this JavaScript from Dreamweaver that looks like this:[/B] [code] function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; …

Member Avatar for schwarznavy
0
125
Member Avatar for Racoon200

Hi. Iam doing my first game and its going very well. Its the classic African Kalah (with egyptian rules) There is a problem. And you gotta know the basics of kalah to solve it. hole1(4)--hole2(4)... there are 12 holes. When i click the first one, the next 4 holes get …

Member Avatar for ~s.o.s~
0
100
Member Avatar for Arch_Bytes

I have this jsf page that saves to the database. After saving it goes to a particular page. This page is then supposed to display the message that the changes were saved to the database. These are two different pages and go through several controllers. so what i did was …

Member Avatar for ~s.o.s~
0
201
Member Avatar for exoscale

in the following script ~this pointer~(self variable) is used to bind XHR to the object that calls the function. but i am wondering why it is required. anonymous function assigned to the onreadystatechange event method could create a closure that would make xmlHttpReq accessible even XHR is not bound to …

Member Avatar for MattEvans
0
118
Member Avatar for danizzil14

Ok, so I'm basically an ametuer Computer Graphics artist, and I plan to start creating a portfolio site... Here's my problem, I want to make a site thats interactive, (ie. Fancy button animations, Menu Animations) What synatx should I use? BTW: I'm intermediate/advanced when it comes to HTML coding.

Member Avatar for iamthwee
0
168
Member Avatar for Inny

G'day, Been trying to make this cool spellchecker work in my board but it simply refuses for some reason. Even if I include the other onload event with this one, it still refuses! Is there another way to impliment the code besides body onload? [code]<script type="text/javascript" src="http://www.jacuba.com/service/checker/-/-/" defer="defer"></script> <body onload="if …

Member Avatar for pkuthari
0
134

The End.