- Screen name: jlopes151
jlopes151's Profile
14 Posts
23 Responses
0
Followers
Show:
- Expanded view
- List view
Private Message
- Any way to clean this up I have project cleaned,Syntax error on token "Invalid Regular Expression Options", no accurate correction available
Multiple markers at this line
- Type mismatch: cannot convert from
any[] to any
- Missing semicolon
Syntax error, insert "}" to complete
ObjectLiteral
- Type mismatch: cannot convert from
any[] to any
-- Type mismatch: cannot convert from
any[] to any
- - Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Type mismatch: cannot convert from
any[] to any
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Syntax error, insert ")" to complete
Arguments
- Missing semicolon
- Missing semicolon
- Missing semicolon
- Missing semicolon
- A table like the following haw would I access the cells of a row?<table id='mytable' >
<tr>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>Boston</td>
<td><input id='ch0' type='text' value=23 checked /></td>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>Charlestown</td>
<td><input id='ch1' type='text' value=33 checked /></td>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>New York</td>
<td><input id='ch2' type='text' value=3 checked /></td>
</tr>
<tr>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>Los Angles</td>
<td><input id='ch0' type='text' value=23 checked /></td>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>Funky Town</td>
<td><input id='ch1' type='text' value=33 checked /></td>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>Harbor Point</td>
<td><input id='ch2' type='text' value=3 checked /></td>
</tr>
<tr>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>London</td>
<td><input id='ch0' type='text' value=23 checked /></td>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>Alston</td>
<td><input id='ch1' type='text' value=33 checked /></td>
<td><input id='chkbx0' type='checkbox' checked /></td>
<td>Green Town</td>
<td><input id='ch2' type='text' value=3 checked /></td>
</tr>
</table>- Just thought I'd put this question out there. Some background, I have an app that has several pages that make a number of Ajax calls to load data. I have a page that has several components, 5 that make two calls each and 1 that makes one call. I also have one page that makes one call to list record data.The page with the many Ajax calls is my apps edit page. If I load the list of records choose one to edit make a few changes and close the edit page, then reload the list of records page. In one ot two cycles no problems. If I cycle thorouh the edit to the list of records four or more times I could see a Bad Gateway error.No sure any one has had a problem slamming a server with multiple Ajax calls.
- 24-Apr-2012 04:39 AM
- Forum: Using jQuery
I create a dynamic multi-select in another function of my JS and want to get a count of thoses options in another function. I'm trying to keep the number of JS var to a minimum. So code in my JSP I have a <select id='foo'/>In a function FullFoo() I get my data for the foo select from a call to a Spring handler that returns a small amount of text data 10 items. I set the id of each option with foo + # leaving for example foo0, foo1, foo2 .... as the optioin id. So after having created the multi-select in another function I want to get the number of options in foo. I'm getting user selection data and want to give the user the option to change their selection so I need to walk the choices of foo comparing the users selection, then setting the foo option to selected. In order to do the loop I need to know how many options are available.I use $('#foo option').length to get number of options in foo. The problem is this works most of the time every now and then it returns zero. Even though I can seen there are a number of options in the multi-select. So<select id='foo' multiselect><option id='foo0' value='1'>One</option><option id='foo1' value='2'>Two</option><option id='foo2' value='3'>Three</option><option id='foo3' value='4'>Four</option></select>var fooCount = $('#foo option').length ;The select is generated each time the page is opened along with getting the user selection.A co-worker has suggested I use $('#foo').get(0).option.length to get the count but I think this is no different than $('#foo option').length . I may have to go the route of adding a JS var after having had createed the multi-select.- Well not in one select. What I want is two html selects that I can pass data to and from. I have seen it done before and never thought I would need to add one or two in a project. I do now and can't find the code to do it. What I need it to add all or a few from one html select to the otherThanks for any help
- I'm getting all the data in the filter here is the modified demo code I'm using, not sure how to drop code in this site. The insert code button had no effect on the crnl. Ok so I'm using a Spring Controller calling to a MySQL db through MyBatis and returning data as JSON objects on an intranet environment.
$(
"#city" ).autocomplete({
source:
function( request, response ) {
$.ajax({
url:
"showAllCountries",
dataType:
"json",
data: {
featureClass:
"P",
style:
"full",
maxRows: 12,
name_startsWith: request.term
},
success:
function( data ) {
response( $.map( data,
function( item ) {
return {
label: item.country,
value: item.country,
id: item.country_id
}
}));
}
});
},
minLength: 2,
select:
function( event, ui ) {
log( ui.item ?
"Selected: " + ui.item.label + " " + ui.item.id:
"Nothing selected, input was " + this.value);
},
open:
function() {
$(
this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" );
},
close:
function() {
$(
this ).removeClass( "ui-corner-top" ).addClass( "ui-corner-all" );
}
- 1. Can jQuery jump documents? Meaning can a jQuery call in one page activate an event in another? I have a set of pages were a Navigation page contains an iframe that contain a table if the user clicks a row in the table I want to activate a navigation.2. I have set a class on the above table row and I want to chage the class at runtime. Is there a way to travers the row and find the class to be changed?Thanks
- The code is standard $(document).ready(handler); and it doesn't fire in my script I have alert(document) to test the document object is defined and it is. I put an alert in the ready and it doesn't fire.I put an alert outside of the ready and it fires.Any one had this problem.
- The datepicker opens a expected in IE but I must click in the input then click outside the input then back in the imput before the datepicker opens. I'm using the onfocus event to open the datepicker.
Thanks for the reply.- Ok so I have a datepicker on an input, set to open in an onClick.function() {$('#inid').datepicker();}The calendar only displays when I click once, move out of the input then click the input again. It only happens after the initial open of the page. After I do the click in then out then in again the datepicker works as expected on the first click.scratching my head on this one.
- 26-Aug-2011 11:26 AM
- Forum: Using jQuery
Ok not my code but, still there's no complaint during the edit of the code.$(id).detach() jquery 1.4.2but at runtime I get an error that the property or method is not supported??? The object $(id) is not nullAny thoughts..I have a Spring MVC project that uses jQuery a page with two inputs that will be used as
params to two links. One link populates the ui table will the other generates a file.
The button that generates the file is to cause the download dialog to open on completion.
It doesn't what happens is the file gets downloaded to the users temp folder with out
any notice to the user. I use $.ajax({type: "GET",url: url,cache: false}); to submit
the process. If I use an anchor I get the download dialog. My question is there a way to
fix the ajax call, do I need to add some thing?One of the project requirements is that both process be activated via default ui buttons.
Is there a to simulate the click of an anchor via a button?- 11-Aug-2011 03:36 PM
- Forum: Using jQuery UI
Also can't get the Month value of a date get an error that the gtMonth method is not supported. Looks like I can't use the Javascript Date object if I have the JQuery datepicker installed.- Do't see a widget, tried setting the style nothing working.Any thoughts?
- «Prev
- Next »
Moderate user : jlopes151
© 2012 jQuery Foundation
Sponsored by
and others.



