473,320 Members | 1,856 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,320 software developers and data experts.

missing ) after argument list

10
Hi,
i have to create table's rows dynamically.
I am using bellow code snipet...

Expand|Select|Wrap|Line Numbers
  1. function copySelectedAttr()
  2.     {
  3.  
  4.           var attrValue= document.getElementById('fromEntityAttrBox').options[document.getElementById('fromEntityAttrBox').selectedIndex].text;
  5.         var attrtype=document.getElementById('fromEntityAttrBox').value;
  6.       var newRow = document.getElementById("tlbEntityAttr").insertRow(rowIndex);
  7.                var oCell = newRow.insertCell(0);
  8.                oCell.innerHTML = "<input type='text' name='t' value='"+attrValue+"'/>";
  9.                oCell = newRow.insertCell(1);
  10.                alert("asdsdwf"+attrValue)
  11.                oCell.innerHTML = "<input type='button' name='attrbutton' value='..' onclick='showValues("+attrValue+","+attrtype+");'/>";
  12.  
  13.           rowIndex=rowIndex+1; 
  14.  
  15.  
  16.     }
  17.  
It inserts rows as needed.
But when I click on button it throws error message on firefox saying missing ) after argument list. ie
Error: missing ) after argument list
Source File: http://localhost:8080/portletdriver/dt
Line: 1, Column: 20
Source Code:
showValues(Customer Type:cum,Single);
please help.
Jan 25 '09 #1
1 1566
acoder
16,027 Expert Mod 8TB
The values need to be quoted, e.g.
Expand|Select|Wrap|Line Numbers
  1. showValues('Customer Type:cum','Single');
Jan 26 '09 #2

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

Similar topics

4
by: Conrad Weyns | last post by:
vc7.1 has no problem with the following snippet: template <typename T> class TTest { std::list<T*>::iterator m_It; }; but metrowerks codewarrior 9.2 kicks my butt and online Comeau confirms:...
1
by: soup_or_power | last post by:
I'm passing the return from window.open as a function argument and getting the error "missing ] after element list" when tested with FireFox. Here is the relevant code. Many thanks for your help....
77
by: Ville Vainio | last post by:
I tried to clear a list today (which I do rather rarely, considering that just doing l = works most of the time) and was shocked, SHOCKED to notice that there is no clear() method. Dicts have it,...
2
by: ehsansad | last post by:
I have the following code. function updateTermsList() { var termDivBox = document.getElementById("termarea"); var terms = searchXMLHttp.responseXML.getElementsByTagName("term"); ...
5
by: Vv_vV | last post by:
Hi all, I try to call onchange a function and get "missing ) after argument list" error Probably systaxis issue Thanks in advance for any help! Code: var html = ""; var myurl =...
1
by: salimbouiche | last post by:
Hi everybody, i have the following error when trying to run a javascript function : missing ) after argument list The code is : function addvideo(tag, youtubeid, duration, rating,...
9
by: deedub65 | last post by:
I am getting a "Missing ) after argument list" on two different sets of commands in the same script - they are part of Dreamweaver MX's files, so i am not sure how they got altered - thanks for the...
4
by: Pasquale | last post by:
I am attempting to populate a few select drop down menus from the selection of the first drop down. I am using ajax to submit data via a PHP GET and from the response populate the other drop down...
8
by: A. Anderson | last post by:
Howdy everyone, I'm experiencing a problem with a program that I'm developing. Take a look at this stack report from GDB - #0 0xb7d782a3 in strlen () from /lib/tls/i686/cmov/libc.so.6 #1 ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.