Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
Break on ErrorCopy j.p.colModel[h].formoptions is undefined error
18/05/2010
03:05
Avatar
Ed Valentine
Member
Members
Forum Posts: 32
Member Since:
23/10/2009
sp_UserOfflineSmall Offline

I am doing an ADD and I am getting this error in Firebug when I hit submit.

Any suggestions on what I am missing?

Thanks.

19/05/2010
05:13
Avatar
DaElectric
Member
Members
Forum Posts: 16
Member Since:
15/05/2010
sp_UserOfflineSmall Offline

Dont mean to be an ass but what your doing wrong at this point is not posting examples of your code.

I suggest throwing an example up on jsbin.com and sending us a link to it.

28/05/2010
23:29
Avatar
Steve-O
Member
Members
Forum Posts: 3
Member Since:
28/05/2010
sp_UserOfflineSmall Offline

I'm getting the same error in firebug. 

I am trying to save edited field data to an xml file after hitting the submit button, but the page just hangs and give the 'formoptions not defined' error. 

I've looked into the 'formoptions' options but I don't want to "reorder the elements in the form and to add some information before and after the editing element".  I just am looking to change the data and save it to my DummData.xml as a string.

Here is the code.

<%@ include file="/WEB-INF/jsp/include.jsp" %>

<link rel="stylesheet" type="text/css" media="screen" href="../decorations/layout/smoothness/jquery-ui-1.8.1.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../decorations/layout/ui.jqgrid.css" />
<link rel="stylesheet" type="text/css" media="screen" href="../decorations/layout/help.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js"></script>
<script type='text/javascript' src='http://ajax.googleapis.com/aja.....pt&gt;
<script type="text/javascript" src="../javascript/otherIncludes/i18n/grid.locale-en.js"></script>
<script type="text/javascript" src="../javascript/otherIncludes/jquery.jqGrid.min.js"></script>

<script type="text/javascript">
jQuery(document).ready(function(){
  jQuery("#list").jqGrid({
    url:'../javascript/otherIncludes/DummyData.xml',
       datatype: "xml",
        mtype: 'GET',
    colNames:['Time','Patient', 'Pharmacist','Notes','Status'],
    colModel :[
               {name:'Time', index:'Time', width:80, align:'center',editoptions:{readonly:true,size:10}},
               {name:'Patient', index:'Patient', width:50, align:'center', editable:true,editoptions:{size:10}},
               {name:'Pharmacist', index:'Pharmacist', width:50, align:'center', editable:true,editoptions:{size:25}},
               {name:'Notes', index:'Notes', width:50, align:'center', editable:true, edittype:"textarea", editoptions:{rows:"2",cols:"20"}},
               {name:'Status', index:'Status', width:50, align:'center', editable:true,edittype:"select",editoptions:{value:"Booked:Booked;Complete:Complete;Deferred:Deferred"}},
          
                          ],
    pager: jQuery('#pager'),
    rowNum:16,
    viewrecords: true,
    editurl: "../javascript/otherIncludes/DummyData.xml",
    caption: 'Appointment Schedule For DD/MM/YYYY',
       xmlReader : {
           root: "Rows",
           row: "row",
           page: "Rows>page",
           total: "Rows>total",
           records : "Rows>records",
           repeatitems: true,
           cell: "cell"
               },  

             
  });
  $("#bedata").click(function(){
              var gr = jQuery("#list").jqGrid('getGridParam','selrow');
              if( gr != null ) jQuery("#list").jqGrid('editGridRow',gr,{height:280,reloadAfterSubmit:true},);
              else alert("Please Select Row"); });

}); 
</script>
 <script type="text/javascript">
    $(function() {
        $("#datepicker").datepicker();
    });
    </script>
    
<br><br>
<h1>Appointments For Which Day?2</h1>
<form name="form1″ action="" method="post">
<input type="text" id="datepicker"><input name="Submit" type="submit" value="Submit">
</form>
<br>

<table id="list" class="centerTable" ></table>
<div id="pager"></div>
<input type="BUTTON" id="bedata" value="Edit Selected Row" />

Thanks for any and all help!

==UPDATE==

Nevermind guys im passed this issue.  I just set some formoptions to see what happened and formoptions actually controls the display of the form, not the grid as I thought. 

So no more formoptions not defined errors, but still having problems... my submit button in the form does nothing, literally. 

Thanks anyway guys and gals.

14/09/2010
05:11
Avatar
wangzhen
Member
Members
Forum Posts: 8
Member Since:
10/09/2010
sp_UserOfflineSmall Offline

Hello! I have the same problem that Break on ErrorCopy j.p.colModel[h].formoptions is undefined error. How to stop it?thanks.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
78 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information