| Error: missing } in XML expression |
|
 |
Index ‹ javascript
|
- Previous
- 2
- Custom input file ?Hi,
I would like to use input type file, but i would like to put any file in it
when i go on the page for example when user go back after try to submit
imagine any form to fill for send information...but after the user
validate....one on the fields is bad...then the user must be correct this
field.....But i don't want another fields are empty. The user must just
correct one fields and keep another fields
any idea ?
- 3
- Very Simple, bug?Hi All- I know no Javascript, but I write on other languages.
Here is a line I took from other postings. But, dump() does nothing (I
am using the console window in Firefox), and the == never evaluates
true, always false. Any ideas - thanks in advance
<img src="WebLogo.jpg" title="" alt="Web Logo"
style="width: 130px; height: 185px;"
onmouseover=" dump(this.src);
if (this.src == 'WebLogo.jpg') {
this.src = 'WebLogoNot.jpg';
write();
} else {
this.src = 'WebLogo.jpg';
nowrite();
};"
>
- 5
- Pass variable window pop up javascriptI've been looking all day for some code examples of how to pass a
variable throught a javascript pop up window. There's nothing decent
out there on the web...so after hours and hours of searching, I've
finally figured out how to do complete the code for passing a variable
to a window pop up and back.
(Main window)
create a window.open() function in your event, mine happens to be a
"Find" button.
<img src="images/Find1.gif" height=21
onclick="Javascript:window.open('Test6.asp?txtManagerName='+document.getElementById('txtManagers').value,
'wroxwindow', 'height=200, width=300, top=250, left=350, resizable=yes,
scrollable=yes, toolbar=no');">
the major problem I had was the exact syntax for passing the variable:
Test6.asp?txtManagerName='+document.getElementById('txtManagers').value
(you can name the value, doesn't have to be:
document.getElementById('txtManagers').value
could be...txtManagers, or whatever your variable being passed is.
(Pop up window)
Use a querystring command (vbscript)
<%
test = Request.QueryString("txtManagerName")
Response.Write "test = " & test
%>
That's it...
sk
- 5
- UT vs UTCOn 17/06/2005 13:33, Dr John Stockton wrote:
> JRS: In article <uMCpe.47253$email***@***.com>,
> dated Wed, 8 Jun 2005 13:54:34, seen in news:comp.lang.javascript,
> Michael Winter <email***@***.com> posted :
[snip]
>> [VK] failed to quote the part that states there are several
>> different definitions of Universal Time.
[snip]
> There is only one current and correct definition of UT, whatever USNO
> has to say on the subject.
I think this too falls under 'deceptive wording'.
> UT0 is defined, and may match UT, I forget; UT1, UT2 and UTC are also
> defined.
I was referring to the existence of UT0, UT1, UT2 and others, rather
than just UT. Perhaps using the word 'variations' in place of 'different
definitions' would have been clearer.
Mike
--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.
- 7
- How to get the exact caret position in the TextArea HTML controlHi Guys,
Please help me, I want to get the exact caret position, in the
TextArea HTML control.
Even if I enter empty lines in the TextArea, I mean just press "Enter"
Key, it should treat as 2 characters, like how Window's EDIT ( MFC
CEdit)control has API to get the information.
regards,
srinivas
- 10
- count chars?Hey,
I got following:
[html]
<form name="Formular" method="post" onSubmit="return chkFormular()"
action="mail.php" enctype="text/plain">
...
...
...
<td align="right" valign="top" class="text"><font
color='red'>*</font>Comments/Questions:<br>
<input name="input" size="1"
style="border-width:0;background-color:#FFFFFF"
onfocus="if(this.blur)this.blur()">
chars left</td>
<td class="text"> <textarea name="comments"
onkeyup="count(event)" rows="8" cols="40" class="flat"></textarea>
</td>
[/html]
[js]
<script language="JavaScript">
var max = 255;
document.Formular.input1.value = max;
document.Formular.comments.focus();
function count(e) {
if (!e.which) keyCode = event.keyCode; // ie5+ op5+
else keyCode = e.which; // nn6+
if (document.Formular.comments.value.length<max+1)
document.Formular.input1.value =
max-document.Formular.comments.value.length;
else {
document.Formular.comments.value =
document.Formular.comments.value.substring(0,max);
document.Formular.input1.value = 0;
}
}
</script>
[/js]
That's supposed to display how many chars are left besides the textarea,
decreasing from 255. But it doesn't display anything, why not? Thank you
guys!
--
chEErs roN
I'm root, I'm allowed to do this! ;)
keep on rockin'
- 11
- bookmarklets not executed in IE7 blank page?!I have the impression that bookmarklets aren't executed at all if
InternetExplorer 7 is at about:blank.
I'm trying to develop one that makes sense in that circumstance.
Is this a security issue? Is there a workaround?
Thanks for any hints.
Meikel
For testing:
javascript:var%20dt78KwZ9=new%20Date();alert(dt78KwZ9.toLocaleString())
- 11
- xmlHttpRequest is not workingI would like to use the xmlhttprequest-object to send an http request
to my server. The http request is used to switch the light on through
home automation.
However it's not working, and I can't find the problem.
Could it be that the apache-server is located on 192.168.0.21 and that
the http request is sent to 192.168.0.21:8080?
Thanks for your help.
Ivan
This is my code:
<script type="text/javascript">
var xmlhttp
function loadXMLDoc(eibMessage)
{
var url='http://192.168.0.21:8080/eibhomeserver?instruction=<eib
type="write" path="/eib/groups/' + eibMessage + '/curvalue" data="1"/>'
xmlhttp=null
// code for Mozilla, etc.
if (window.XMLHttpRequest)
{
xmlhttp=new XMLHttpRequest()
}
// code for IE
else if (window.ActiveXObject)
{
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")
}
if (xmlhttp!=null)
{
// alert(url)
xmlhttp.onreadystatechange=state_Change
xmlhttp.open("GET",url,true)
xmlhttp.send(null)
}
else
{
alert("Your browser does not support XMLHTTP.")
}
}
function state_Change()
{
// if xmlhttp shows "loaded"
if (xmlhttp.readyState==4)
{
// if "OK"
if (xmlhttp.status==200)
{
// ...some code here...
alert("loaded")
}
else
{
alert("Problem retrieving XML data")
}
}
} else {
alert(xmlhttp.readyState)
}
</script>
- 11
- Restricted markup editor for textareaI'm looking for a Javascript editor similar to the obsolete HTMLarea
editor but which can be configured to restrict the buttons and
allowable markup to a tiny handful of named elements on a per-instance
basis. No font selection, or any other WYSIWYG bells or whistles. The
objective is to *prevent* the user from adding any markup except that
which is specified,
It's for a translation editor, where each source paragraph will only
ever contain a subset of other possibilities (elements like
<citetitle>, <xref>, <emph>, etc), but the selection will change from
para to para and may contain nested markup. The page is being
generated dynamically from XML using Cocoon, so each textarea can
easily be separately configured on-the-fly.
In effect I want an HTMLarea equivalent but stripped of all WYSIWYG
gunk except the named elements needed in each instance, plus their
button labels and their rendering (as CSS). My JS isn't good enough to
strip down HTMLarea to do the job.
- 13
- html inside javascripthi,
how do i embedd html tag inside javascript alert message.
for example
alert("hi, have a "+<B> "great day!"</B>);
i want the output as:
hi, have a great day!
with 'great day!' in bold.
kalaivanan.
- 13
- Using Javascript to write out documentsI want to create my own kind of counter, for myself. I have a resume
page on my site. I want to know how many people go there but dont want
to 'go there' myself because I don't want to increase the hit counter
on that page. So I want to create a html page (that I only know about)
that hold a hit count variable. When someone goes to my resume page,
on the OnLoad() I want to go get that variable, increment it and write
it out. So this function in the OnLoad on my resume page has to get a
variable from a different page, increment it, and write it back out to
that page it go it from in the first page.
Can this be done?
Thanks
Ralph Krausse
www.consiliumsoft.com
Use the START button? Then you need CSFastRunII...
A new kind of application launcher integrated in the taskbar!
ScreenShot - http://www.consiliumsoft.com/ScreenShot.jpg
- 13
- How do I test for HTMLImageElement in IE?Hello,
I have the following code that test the target element of a mouse
movement to check if its and Image and the Parent is a Div element. It
works perfect in Fire Fox, however IE does not allow access to test the
target against instance of HTMLImageElement or the Div Element.
Is there a property that I can use to get the object type that will
return "image" or "div" or anthing else that I can use. The typeof
function only returns "object" which is totally useless in my
application.
DragObject.prototype.mouseMove = function(ev){
ev = ev || window.event;
var target = ev.target || ev.srcElement;
var dragObj = target.getAttribute('DragObj');
if ( target instanceof HTMLImageElement && target.parentNode
instanceof HTMLDivElement){
target = target.parentNode;
dragObj = target.getAttribute('DragObj');
}
}
- 15
- dynamic coding.Hello,
I've coded a tab pages somes years ago, with a search engine (with the help
of an other programmer) allowing to search in many divs (any tab show/hide a
div).
Now, I've to change code as new tabs are added. I've a frame where I load
the tabs and fill div with queries, and an other frame where I have the
search form. I'm looking for a way to have dynamic creation of the code,
depending on the loaded divs or tabs.
Here is the javascript code allowing to switch DIV for finding any string in
many DIVS, then show the desired DIV.
...
var oRng1 = win.document.body.createTextRange();
var oRng2 = oRng1.duplicate();
var oRng3 = oRng1.duplicate();
...
oRng1.moveToElementText(win.DIVBrother);
oRng2.moveToElementText(win.DIVCanon);
oRng3.moveToElementText(win.DIVEpson);
...
if(win.DIVBrother.style.visibility=='visible') var bInside =
oRng1.inRange(TRange);
if(win.DIVCanon.style.visibility=='visible') var bInside =
oRng2.inRange(TRange);
if(win.DIVEpson.style.visibility=='visible') var bInside =
oRng3.inRange(TRange);
...
if(win.DIVBrother.style.visibility=='visible') {
TRange.moveToElementText(win.DIVBrother);
strFound=TRange.findText(str);
TRange.select();
}
if(win.DIVCanon.style.visibility=='visible') {
TRange.moveToElementText(win.DIVCanon);
strFound=TRange.findText(str);
TRange.select();
}
if(win.DIVEpson.style.visibility=='visible') {
TRange.moveToElementText(win.DIVEpson);
strFound=TRange.findText(str);
TRange.select();
}
...
TRange=win.document.body.createTextRange();
if(win.DIVBrother.style.visibility=='visible')
TRange.moveToElementText(win.DIVBrother);
if(win.DIVCanon.style.visibility=='visible')
TRange.moveToElementText(win.DIVCanon);
if(win.DIVEpson.style.visibility=='visible')
TRange.moveToElementText(win.DIVEpson);
if(oRng1.inRange(TRange)) {win.tab0.focus(); win.tab0.click();}
if(oRng2.inRange(TRange)) {win.tab1.focus(); win.tab1.click();}
if(oRng3.inRange(TRange)) {win.tab2.focus(); win.tab2.click();}
For now I've 9 tabs, but the customer want to add 3 more, and maybe once
will want to add some new. I'd like to be able to manage this kind of code
dynamically, but don't know how to do.
Anybody may help me change the code above to do it dynamically managing that
the tabs and DIVs come from an access database ? maybe with an array or
whatever.
Thanks.
Bob
- 15
- how to create an Array with parametrized name?hello everybody,
is there a way of creating an array with help of a function that would
accept the name of this array as a parameter and then create global
Array type variable of that name?
so that for example the following code would work as well in browsers as
under Windows Scripting Host:
str = "tableA";
fDoArray(str);
fDoArray("tableB");
tableA[10] = 10;
tableB[11] = 11;
I would appreciate any suggestions and help,
regards,
mirek
- 16
- JavaScript animation not workingHi. I'm a JavaScript newbie -- know little about it, don't have any
tools. I'm trying to create a JPEG animation, with one image of a coin
(tet) morphing into another. I read about this technique in a magazine
article and have attempted to edit the code in Notepad. The code
doesn't work. Anybody feel like taking a shot at correcting me? The
code is short. Thanks.
<HTML>
<HEAD>
<META NAME="Author" Content="Reid Goldsborough">
<TITLE>Thracian tetradrachm animation</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!-- begin script
tetSeries = new Array("tet00.jpg", "tet01.jpg", "tet02.jpg",
"tet03.jpg", "tet04.jpg", "tet05.jpg", "tet06.jpg", "tet07.jpg",
"tet08.jpg", "tet09.jpg");
imagesCache = new Array ()
for (i=0;i<tetSeries.length;i++) {
imagesCache[i] = new Image;
imagesCache[i].src = tetSeries[i]
}
theCount = 0;
function turnPage() {
if(theCount == imagesCache.length-1)
{
theCount = 0
} else {
theCount++
}
document.tet.src = imagesCache[theCount].src;
setTimeout("turnPage()", 300);
// end script -->
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<img name="tet" src="tet00.jpg" width="372" height="365" border="0"
alt="Tet animation">
<body bgcolor="#FFFFFF"onload="turnPage()">
</CENTER>
</BODY>
</HTML>
Coin Collecting: Consumer Guide: http://rg.ancients.info/guide
Glomming: Coin Connoisseurship: http://rg.ancients.info/glom
Bogos: Counterfeit Coins: http://rg.ancients.info/bogos
|
| Author |
Message |
Francesco Moi

|
Posted: 2007-4-17 19:19:19 |
Top |
javascript, Error: missing } in XML expression
Hi.
I get this error message on my Firefox Error Console:
----------------
Error: missing } in XML expression
Source File: http://www.foo.com/js/maps.js
Line: 273, Column: 18
Source Code:
options2 = { title: "John was here", icon: icon1};
-----------------
The JavaScript code (I use Google Maps):
----
coords2 = new GLatLng(34.3155495, -140.013553246338);
options2 = { title: "John was here", icon: icon1};
marker2 = new GMarker(coords2, options2);
-----------
My JavaScript file's got "Content-Type: application/x-javascript"
headers and it uses Ajax.
It's the first time I get this error. Does anybody have any experience
with it?
Thank you very much.
|
| |
|
| |
 |
Martin Honnen

|
Posted: 2007-4-17 19:55:00 |
Top |
javascript >> Error: missing } in XML expression
Francesco Moi wrote:
> I get this error message on my Firefox Error Console:
> ----------------
> Error: missing } in XML expression
> Source File: http://www.foo.com/js/maps.js
> Line: 273, Column: 18
> Source Code:
> options2 = { title: "John was here", icon: icon1};
> -----------------
>
> The JavaScript code (I use Google Maps):
> ----
> coords2 = new GLatLng(34.3155495, -140.013553246338);
> options2 = { title: "John was here", icon: icon1};
> marker2 = new GMarker(coords2, options2);
Can you show us more context, in particular more lines before the line
273? Or post the real URL.
Firefox supports E4X (ECMAScript for XML) and somehow the error message
sounds as if your code is interpreted as an XML literal.
--
Martin Honnen
http://JavaScript.FAQTs.com/
|
| |
|
| |
 |
| |
 |
Index ‹ javascript |
- Next
- 1
- 2
- javascript bg imageHello
I have to change a div's background image on the fly. The problem is
that the url is built on the fly too.
var url = link.replace("a", "b");
Thus the location of the image is contained in the variable url. How
do I pass this to the function?
document.getElementById('img_div').style.backgroundImage = "url( '" +
url + "') ";
This of course didnt work. I have tried a lot of alternatives, putting
\ almost everywhere. But none worked. is there a solution to this?
- 3
- Diond6ab7be0ff12d616edc597ccebf06ca0 http://www.kcxesd.org <a
href="http://www.nkltre.org"> http://www.nkltre.org </a> <a
href="http://nqdwgl.org"> http://nqdwgl.org </a>
[url=http://www.bwmuus.org]http://www.bwmuus.org[/url]
[url=http://www.bwmuus.org]http://www.bwmuus.org[/url]
[url=http://www.bectcd.org]http://www.bectcd.org[/url] <a
href="http://www.fkrbpd.org"> http://www.fkrbpd.org </a> <a
href="http://www.kgsisp.org"> http://www.kgsisp.org </a> http://hilxhr.org
http://nkltre.org a4d20a8afbc395002366bd667860c4d3
- 4
- Firefox forgets onmouseout eventHi there,
I am writing a page showing thumbnail images: Whenever the user hoovers
the mouse over an image, after some delay it should be replaced with the
full image displayed in different (bigger) size. The thumbnail should be
displayed again as soon as the mouse leaves the image area.
Right, all you need is onmouseover, onmouseout and setTimeout(). Set the
image to absolute positioning to take it out of the normal page flow.
Then have it resized and repositioned as you like.
Sounds easy, so here is the testpage:
https://bugzilla.mozilla.org/attachment.cgi?id=163278
From the fact that the page is hosted on bugzilla, you can conclude
that it works on Internet Explorer but not on Firefox. :-/
Try for yourself:
- "Fullscreen" your browser window.
- Open the page
- Move the mouse over the little icon at the bottem left corner
- Wait a few seconds
- If the page reflows, increase the browser window size or decrease font
size (sorry, there's just too much text on the page), reload and try again.
- Move the mouse off the icon.
- Check the Text in the debug log (last message is top). It sould tell
you that "mouseOver" and "mouseOut" have occured. But the latter is missing.
Im seeking help (confirmation, workarounds, suggestions,...) on this
bug# 265051
https://bugzilla.mozilla.org/show_bug.cgi?id=265051
Comment on bugzilla are welcome, too.
Cheers
Daniel Kabs
- 5
- 6
- IE6: setInterval, this==window arrghAt line
this.timerId = setInterval (function(){this.step()}, 100)
I get error dialog
Error:Object doesn't support this property or method.
If I change it to
this.timerId = setInterval (function(){this==window}, 100)
I see true, the sad fact that 'this' is window and not an anim.
What are some proper ways ?
I would like to avoid
this.timerId = setInterval ("Anim.step ( ' "+ this.o.id + " ' ) ", 100)
and avoiding the need for a global hash array (Anim.anims) to keep tracking
of my anims (key:td id, value:anim instance) that would have to be looked up
during each step.
--------
function X (s,cp) {
// cp - cell id prefix
document.write (
'<P>' + s + '</P>'
+'<TABLE BORDER="1">'
+ '<TR>'
+ '<TD ID="cell_1"'
+ ' onMouseOver="X.over(this)"'
+ ' onMouseOut="X.out(this)"'
+ '>this cell gets handled</TD>'
+ '<TD ID="cell_2"'
+ ' onMouseOver="X.over(this)"'
+ ' onMouseOut="X.out(this)"'
+ '>me too</TD>'
+ '</TR></TABLE>'
)
}
function X.over (o) { o.style.background='Black' }
function X.out (o) {
o.anim = new Anim(o);
o.anim.start();
}
var Anim = function (o)
{
this.o = o
this.count=0
}
Anim.prototype.start = function ()
{
this.step();
this.timerId = setInterval (function(){this.step()}, 100)
}
Anim.prototype.step = function ()
{
this.count += 4
if (this.count > 15)
this.stop()
else {
level = anim.count * 16 - 1
anim.o.style.background = 'rgb('+level+','+level+','+level+')'
}
}
Anim.prototype.stop = function ()
{
clearTimeout (this.timerId)
}
-----
--
Richard A. DeVenezia, subclassing Text Pad Control
http://www.devenezia.com/downloads/sas/af/index.php?id=22
- 7
- 8
- My DIV mask inputHi everybody,
I have a problem with different TAB. Each TAB contains some DIV, each
DIV have input.
When I change of TAB, i have a problem, i can't acces to my input. These
inputs are mask by my last DIV. I can access to inputs with the TAB touch.
This proplems occurs only on IE 6, in Mozilla an Opera, i haven't problem.
You can find an example below this link
http://www.enstimac.fr/~darras/onglet/index.htm
Thanks for your help
and sorry for my english
BYE
Franck
- 9
- Parse querystring using javascript?
If my url is, say,
http://mysite/mypage.asp?fruit=apples&veg=cabbages&sweet=cake, then how do I
get the value of "fruit", "veg" and "sweet" params using clientside
javascript?
In ASP I can use Request.Querystring("fruit") etc, but I need to get it
using clientside javascript this time.
Help?
Thanks,
Owen
- 10
- How can I be notified when the document load is complet in JavaScriptHi,
How can I be notified when the document load is complet in JavaScript?
I am referring to the whold document load is complete, mean all
images/external files/frame/iframes have been loaded.
I think there is a window.addEventListener() function but I am not sure
which event to listen to.
Thank you.
- 11
- DML and xmlhttpI wonder if someone wrote some code to manipulate data (insert, update,
delete) using xmlhttp and AJAX approach and standardized some procedures.
I mean, for example, standard way to manipulate data with PHP or
VBScript (most common) are a form with a action page that process POST
or GET and so on...
It is cool to do this all via xmlhttp.
I developed some code but nothing standard...I was thinking about
object-oriented approach...
Any contribute appreciated.
Best regards.
--
Gibe si ?fatto passare perch?Rossi dietro ?come una purga, prima o
poi una cagata te la fa fare...!
- 12
- Safari read/write cookies with javascript?I am using a standard javascript that I downloaded from
javascriptsource.com to read from and fill in a form using cookies.
The page tests well in every browser except Apple's Safari (from
10.3.2)
Unfortunately, my clients daughter uses Safari so I have to get it to
work with it, even though most of his clients use IE.
What do I need to do to change the code so this will all work in
Safari?
The test pages can be seen at
http://www.mvldesign.com/form_cookie.html
When I run these pages on IE and look in the cookies I can see that
the cookie has been written as expected. Plus the form fills in on the
next page. In Safari I see that the cookie has not been written plus
the form doesn't fill in which is the whole reason for the code.
If there are any other sources of code that I can use with all
browsers including Safari I'd love to hear about them. Or any other
tutorials or ideas.
Thanks
Sam Wuebben
- 13
- Iterating comboboxes (<SELECT>) using javascriptG'day all
I apologise in advance for the newbiness of this question, but the
answer has eluded me for 3 days now - hopefully one of you gurus out
there might be able to help .......
I have a page that dynamically draws checkboxes with a combo. I'm then
attempting to use the following code to iterate through each combo box
and change the value to match the text box.
Here's the code that calls the functions, and the
functions themselves......
**Code that fires the event
<input class="ctlstandard" type="text" name="txtSeats" id="txtSeats"
onblur="setOptionCombos);"/> <font color="<
%=session("BrandTextColour")%>">*</font></td>
**The function
function setOptionCombos(){
var lSeats=frmMain.txtSeats.value;
if(isNaN(lSeats)){
for (i=0;i<frmMain.cboTourOptionQty.length;i++){
frmMain.cboTourOptionQty[i].selectedIndex=lSeats-1;
}
}
}
This works if there are two combos on the screen, but does not when
there's only one. It seems the event doesn't, although all get changed
quite happily when there's 2 or more.
If there are 2 combos, the expression
frmMain.cboTourOptionQty.length=2
If there's only 1 combo, the expression
frmMain.cboTourOptionQty.length=100 (the number of options in the
list)
Any help or thoughts would be greatly appreciated :)
Cheers,
Doug.
- 14
- Arrgh.. Insane looping for focus()Here is some javascript checking I have for form validation. The
problem is is that it loops..... How can I make it stop ? IF I click
on the last name text box, it scolds me, saying the first_name needs
to be filled out. I click ok, and it says the last_name needs to be
filled out...i click ok and it says the first_name needs to be
filled.. wash rinse repeat !!!!
function MM_findObj(n, d) { //v4.0
var p,i,x; if(!d) d=document;
if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document);
if(!x && document.getElementById) x=document.getElementById(n);
return x;
}
function MM_validateForm() { //v4.0
var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
for (i=0; i<(args.length-2); i+=3) { test=args[i+2];
val=MM_findObj(args[i]);
if (val) { nm=val.name; if ((val=val.value)!="") {
if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain
an e-mail address.\n';
} else if (test!='R') {
if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
min=test.substring(8,p); max=test.substring(p+1);
if (val<min || max<val) errors+='- '+nm+' must contain a
number between '+min+' and '+max+'.\n';
} } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is
required.\n'; }
} if (errors) alert('The following error(s) occurred:\n'+errors);
document.MM_returnValue = (errors == '');
document.forms['form0'][nm].focus();
}
<form name="form0" method="post" action="palm-beta.asp?action=add">
<table class="table_content" border="0" cellpadding="3"
cellspacing="0">
<tr class="box_left"><td><b>First Name</b></td></tr>
<tr class="box_right"><td><input type="textbox" name="First_Name"
maxlength="20" size="21"
onBlur="MM_validateForm('First_Name','','R');return
document.MM_returnValue"></td></tr>
<tr class="box_left"><td><b>Last Name</b></td></tr>
<tr class="box_right"><td><input type="text" Name="Last_Name"
maxlength="20" size="21"
onBlur="MM_validateForm('Last_Name','','R');return
document.MM_returnValue"></td></tr>
<tr class="box_left"><td><b>Email Address</b></td></tr>
<tr class="box_right"><td><input type="text" Name="Email_Address"
maxlength="50" size="51"
onBlur="MM_validateForm('Email_Address','','RisEmail');return
document.MM_returnValue"></td></tr>
<tr class="box_info"><td> </td></tr>
<tr class="box_info"><td><input type="submit" name="addemail"
value="Submit" class="button"></td></tr>
</table>
</form>
- 15
- newbie Links Not working in ASP pageThis should be simple, But I can't get the link to work.
<a href="javascript:abcd('mytest')"> Testing</a>
Right now the links not firing
Buttons not firing either.
This is an ASP page with a javascript function of abcd.
TIA
Steve
|
|
|