15,127 Topics

Member Avatar for
Member Avatar for jrw89

Hi all, I am trying to get an object to be aware of its own changes e.g. have it execute one of its functions but only when a variable has been changed from outside the object. Google gave me lots of references to XMLHttpRequest.onreadystatechange and this resource at MSDN: [URL="http://msdn.microsoft.com/en-us/library/ms536957%28VS.85%29.aspx"]http://msdn.microsoft.com/en-us/library/ms536957%28VS.85%29.aspx[/URL]. …

Member Avatar for jrw89
0
178
Member Avatar for amby

Hi, I am calling web service through jquery ajax call for the first time and getting an error. Can please somebody help me in this i would really appreciate it. Below is the code: [CODE]<%@ Page Language="C#" AutoEventWireup="true" CodeFile="userNTID.aspx.cs" Inherits="Default2" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html …

Member Avatar for amby
0
184
Member Avatar for khan17

hi, im trying to automate a click on a link using javascript for which i have to navigate to a website first and then trigger a click on a link present there. for example i ve mentioned the [url]http://www.bing.com[/url] here and after navigating to bing home page it should automatically …

0
44
Member Avatar for Th3nutz

i've embeded google maps on my site with a marker setup were i wanted, but i cannot use "Get directions" to open in the same div that i use. Is it possible to do that, or my only options are _blank, _self etc. [CODE]<script src="http://maps.google.com/maps?file=api&v=2&sensor=true&key=ABQIAAAAsoAP0MDLt21HBpoCAZ0DLBQD344IlC21WoKHBucdD45AbVnqaxQoNHNKFtJHrVaqBr2Dwfh1G1O2-g" type="text/javascript"></script> <script type="text/javascript"> function initialize() …

Member Avatar for JayAugust
0
81
Member Avatar for vantrax

i have tried to implement a counter for my site which was a free hosted one from 000a.biz using ajax.It has worked in my LOCALHOST But it doesnt worked in my server. The html file is(main.htm): [code=html] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Tcats Inc.</title> <meta http-equiv="Content-Type" …

Member Avatar for Airshow
0
128
Member Avatar for baseballfury

Hiya Guys, Been working on the w3schools livesearch example but you can only select the option via a link. I'm trying to do it so i can submit a value to return database results. The external php code is below if anyone wants a look: I got it returning the …

Member Avatar for baseballfury
0
533
Member Avatar for rochellebeth

I can usually figure out problems like this with some testing or google searches, but nothing is working for me this time. I've installed a comments page on a website for a friend of mine, I got the code for the page from phpjabbers.com (and they aren't very much help!) …

Member Avatar for rochellebeth
0
126
Member Avatar for jrw89

Hi all. I have the following form: [CODE=html]<form id="registrationForm"> <input id="forename" type="text"></input> <input id="surname" type="text"></input> <input id="emailAddress" type="text"></input> <input id="password" type="password"></input> <input id="confirmPassword" type="password"></input> <input id="agreeToTerms" type="checkbox"></input> <input id="clickToRegister" type="button" onClick="javascript:SpeakAtServer(FormToJson('registrationForm'))" value="Register"></input> </form>[/CODE] ...with the following JavaScript... [CODE=javascript]FormToJson = function(sourceElement) { var JsonToServer = new Object(); if (document.getElementById(sourceElement).childNodes) { var …

Member Avatar for Eumenio
0
131
Member Avatar for amby

hey i am new in javascript, i was having problem in including jquery in this file in Visual Studio but i resolved it by using ResolveUrl but after that its giving error "; expected" in the line1 i-e [CODE]<[COLOR="Red"]%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2"%>[/COLOR] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 …

Member Avatar for amby
0
195
Member Avatar for peck3277

Hi guys! Hope someone can help me out here. I'm using javascript to validate a form and if it's false it displays a message. If it's true in passes it to a php file to process it. The problem im having is even if it fails validation it still passes …

Member Avatar for Airshow
0
133
Member Avatar for anakanya

I have an html page with a random url that I want to be clicked programmatically in javascript [code="javascript"] <html> <head> <script> function ClickURL() { document.getElementById('xyz').click(); } </script> </head> <body onLoad="ClickURL()"> <a href="www.somewebsite.com" id="xyz">Link </a> </body> </html> [/code] This only works in IE - it does not work in FireFox. …

Member Avatar for almostbob
0
4K
Member Avatar for Rakesh Nagekar

Hello friends Iam KNR, Iam facing a problem with javascript validation, I am getting validation with alert boxes but i require inline validation like in .NET means the error msg has to be displayed after control please help me Thanks in advance KNR

Member Avatar for shadowgmax
0
77
Member Avatar for Vigasdeep

Hi friends, Please help me with this, any javascript guy, Please > this script is working in every browser [B]except Internet Explorer[/B]. It says an unknown runtime error ? :( [CODE]<script language="javascript"> var count=1; function extend() { var a = "sname"; var b = "sgender"; var c = "sbranch"; var …

Member Avatar for Airshow
-1
145
Member Avatar for adobe71

[B]1.[/B] I want to put javascript in webpage that shows gif image on moving cursor anywhere on the page and [B]2.[/B]I want to get the value of one textbox and put this value to another textbox.

Member Avatar for adobe71
0
63
Member Avatar for mrcniceguy

i`m using the jquery library in ma web....so i`m wondering which method of calling the library is more recomended. i mean to download the libary and call it directly from the server or to link to googleapis???? Any suggestions will be appreciated. <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> OR <script …

Member Avatar for mrcniceguy
0
86
Member Avatar for ErlendHL

I have studied some AJAX, and tried to understand it. The AJAX works; i just want to write a right php document too. With the AJAX, I load the php file write.php. Here is what is in write.php: [CODE]<?php $NAME = 'data.txt'; $HANDLE = fopen($NAME, 'w') or die ('CANT OPEN …

Member Avatar for danishanila
0
568
Member Avatar for lifeworks

Hi I think what Im trying to do is possible, just not sure how... On a button click - Ive created an object, with some properties in it. If I want to access those properties when clicking another button... how do I do that? [code] function build() { var circ …

Member Avatar for Airshow
0
103
Member Avatar for s2xi

Hey, I've been playing around with the jDigiclock weather+time script from [URL="http://www.radoslavdimov.com/jquery-plugins/jquery-plugin-digiclock/"]http://www.radoslavdimov.com/jquery-plugins/jquery-plugin-digiclock/[/URL] the only problem with this awesome script is that it get the location of the user from the static input directly from the script. How can I access the users locale and feed it into the variable that …

Member Avatar for Airshow
0
198
Member Avatar for Davife

As part of data entry I am checking the validity of a date field and using the onchange event to trigger the check. As you will note it also compares start and end dates, but that's not the issue. The issue is that after a bad date is detected and …

Member Avatar for Davife
0
106
Member Avatar for rouse

I am looking for a correct way to test a JavaScript regular expression for phone number and email address. This includes the RegExp string and the syntax. First the syntax: I am confused about using the quote mark (“) in defing the RegExp. Is it [code] var email_test = new …

Member Avatar for rouse
0
171
Member Avatar for albertkao

After the apply button is clicked, the data entered by the user disappeared in the text form. How to keep the data appearing on the text form? The server use jsp and the Spring framework and the client use the Prototype javascript library.

Member Avatar for Airshow
0
103
Member Avatar for ErlendHL

Hey! I am making a chat program. I have a function Chat(); [code] function Chat(){ var fullMessage = document.getElementById('name').innerHTML +' '+ document.getElementById('message').value+'\n'; fullMessage = fullMessage.replace(/\'/g,"'"); fullMessage = fullMessage.replace(/\\"/g,"&quot;"); fullMessage = fullMessage.replace(/\[/g,'*lsb?'); fullMessage = fullMessage.replace(/\]/g,'*rsb?'); sendRequest('http://3rlend.com/pjattappend.php','F=allMessages.txt&D='+'fullMessage','POST',true); document.getElementById('message').value=""; } [/code] sendRequest(url,params,method,Asynch); i an AJAX function. Now when I try to execute Chat();, …

Member Avatar for ErlendHL
0
1K
Member Avatar for teawithmilk

Hi guys, I am looking for a way to change an image when a link is hovered over. I should make it clear that it is not the list/link image i want to change but an image along side in order to "illustrate" the content. Can anybody suggest a starting …

Member Avatar for almostbob
0
81
Member Avatar for UberJoker

I am able to get the file names with current script. $dir = "var/www"; $dh = opendir($dir); while (($file = readdir($dh)) !== false) { echo "<A HREF=\"$file\">$file</A><BR>\n"; } but the www folder is local. i wanted to get the file names on my windows server which has the following address …

Member Avatar for sunsetrainbow
0
108
Member Avatar for what_5626

hi, as the title has saiad, if the user click "ok" for exp it will link to [url]www.google.com[/url] and if the user click "cancel" it will link to [url]www.yahoo.com[/url]. below is my code [CODE] function calcFunc(){ var val1 = document.calcForm.selectQuantity1.selectedIndex; var val2 = document.calcForm.selectQuantity2.selectedIndex; var val3 = document.calcForm.selectQuantity3.selectedIndex; var val4 …

Member Avatar for Graphix
0
111
Member Avatar for phpdev

Hi all! this is my first post in this site.. the following code works fine with ff but not with **ie 8** - i had given [B]'windowname' [/B]in the place of **'_blank'** for ff, but that did not allow ie to open the window, so replaced it with blank, now …

Member Avatar for Suresh Vanam
0
143
Member Avatar for J217

I have beautiful floating number effect, written in JavaScript, which is not working on website under Firefox 3.x. It does work in any version of Internet Explorer. Can anyone help me fix it? Here's my site: [url]http://home.wlu.edu/~feldmann/[/url]

Member Avatar for almostbob
0
74
Member Avatar for rouse

I am writing a contact form using jQuery AJAX POST and PHP. The form works well and sends the email. What I want to know is how to get the return values for error and success on the same page where the contact form is rather than having the message …

Member Avatar for rouse
0
115
Member Avatar for Th3nutz

Hello guys i'm new with programming and i've been wondering if i could use AJAX with this: i have 4 words with links and when i press them i want to show some images and a text. Is this posible ? Here is the code that i use (i only …

Member Avatar for Airshow
0
93
Member Avatar for Tekkno

I have the following AJAX script: [code=javascript] function callAHAH(url, pageElement, errorMessage) { document.getElementById(pageElement).innerHTML; try { req = new XMLHttpRequest(); /* e.g. Firefox */ } catch(e) { try { req = new ActiveXObject("Msxml2.XMLHTTP"); /* some versions IE */ } catch (e) { try { req = new ActiveXObject("Microsoft.XMLHTTP"); /* some versions …

Member Avatar for Fungus1487
0
162

The End.