473,386 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

What's the alert box cannot be displayed?

108 100+
I have a function that takes a base url and appends values dynamically from a form.However, the success alert box is not displayed.. What's wrong with these codes and How to sort this?

Expand|Select|Wrap|Line Numbers
  1.  function validateEncode(url,frm,id){
  2.                alert(url.toString().length)
  3.                Form = document.forms[frm].elements;
  4.                     var URL="";
  5.                     var encodedurl;
  6.                     alert(url);
  7.                    for (i=0;i<=Form.length;i++)
  8.                         {
  9.                             URL+="test"+Form[i].name;
  10.                         }
  11.  
  12.                    //urlObject.setAttribute('href', url+encodedurl)
  13.                   alert("success");
  14.  
  15.              return false;
  16.             }
  17.  
Feb 24 '11 #1

✓ answered by Dormilich

line #7: the last cycle causes an error. change to for (i=0;i<Form.length;i++)

1 1375
Dormilich
8,658 Expert Mod 8TB
line #7: the last cycle causes an error. change to for (i=0;i<Form.length;i++)
Feb 24 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Jonathan | last post by:
Rather than me explain the problem, read this exchange of emails between my web host and myself, then tell me what I can tell them! I had a problem with their admin site all day, and after me...
0
by: Lisa | last post by:
When you use the database wizard to insert results into a FP web page it gives you a box to choose what fields you want displayed. A box on one side the choices to Add>>, Remove<<, Move Up, and...
7
by: Andy Fish | last post by:
Hi, now I know what the alert() function does, but can anyone tell me where I can find the specification or standards for functions like alert() and confirm(). They don't seem to be part of...
2
by: Vishal Somaiya | last post by:
Can some one please explain what this means? 'Cannot widen from target type to primitive type.' Regards Vish
5
by: thomas1107 | last post by:
I am running Visual Studio .NET 2002 Professional on Windows 2000 SP4. When I try to launch the debugger from inside the IDE for VC++ applications I get the following error “Application failed...
6
by: jwwishart | last post by:
For some reason I'll view an aspx page and... 1. Scripts that I add (using the RegisterStartupScript method of the Page object) dont show up in the source(IE->View Source)even thought I know...
4
by: _Raven | last post by:
Okay, I am playing with submitting forms with Ajax. I am trying to adapt this script to my forms: http://www.captain.at/howto-ajax-form-post-get.php I have included my code at the bottom of this...
2
by: windandwaves | last post by:
Hi Folk Consider the following function: function UpdateHtml(url, parameters, onready) { http_request = false; if (window.XMLHttpRequest) { // Mozilla, Safari,... http_request = new...
3
by: The alMIGHTY N | last post by:
I was wondering if anyone else has had an experience like this. I have a Java function about 75 lines long. It's not very complicated... nothing fancy... just dynamically building SELECT menus and...
6
by: ink | last post by:
Hi I am developing on a Symbol MC70 devices and in the past they have always realised an SDK for development including Symbol.Camera Wrapper. However it seems that for the MC35 they are not, or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.