I need to know how to execute this in the best way possible so that the suggestions will load really quick and secured. I want something like how the Related Questions work here after typing a question title.
...
I have an asp.net app consisting of about 15 aspx pages and 30 or so user controls. For the most part it is just a basic CRUD layer on top of a database, so it consists mainly of edit forms and datagrids.
All of my edit forms are laid out in fieldsets, and I am using plain asp:GridViews for my tables (they render to an html table). ...
hi,
here is my code for jqgrid:
/// <reference path="jquery-1.3.2.js" />
/// <reference path="json2.js" />
/// <reference path="jquery.simplemodal.js" />
$(document).ready(function() {
loaddata();
$("#list").jqGrid({
datatype: "local",
colNames: ['Date', 'Product', 'Code', 'Title', 'Additional Information'], ...
how remove html table rows after 2nd row?
if in table have 5 row, 1 and 2 are safe, 3,4,5 must be remove
...
Is there a way I can get the selected element's parent using only jQuery's/sizzle's CSS selectors?
I need to be able to get an element's parent while using jQuery, but I'm unable use jQuery('#myelement').parent() since I'm receiving the selector as a string and the "user" needs to be able to move back up the tree.
I can't see anything ...
I have a hard coded URL like so:
https://bupacouk.bwa.local.internal.bupa.co.uk/cash-plan-quote/quoteAction.do?getBenefitLevelDetails=getBenefitLevelDetails&productPolicyId=7841#a1
When Javascript is enabled i don't want the hash value on the end so how do i remove it?
When Javascript is disabled it needs to be present.
Thanks.
...
if in html table have 5 row, 1 and 2 are safe, 3,4,5 must be saved as html structure to a variable. like this
var after2ndContent= '<tr><td>3</td></tr><tr><td>4</td></tr><tr><td>5</td></tr>'
...
I'm using the below code for a rollover effect, seems to be working okay!
What I'm interested in is taking this to the next step in a modular way. What I mean is that rather than stipulate every single possibility, how could I start to produce what I suppose would be a plugin?
Many thanks!
$(document).ready(function() {
$('#damar...
jqGrid('navButtonAdd',"#pager2",{caption:"Save All",title:"Save & Create Receipt",onClickButton:function () {
var s;
s = jQuery("#list2").jqGrid('getDataIDs');
alert("selected");
$.ajax({
type: 'POST',
url:'http://localhost:3000/order/receipt',
data: {ids: s},
});
}});
With ...
I am trying to see if an option was selected in a selectbox and if not, I want it to alert a string. I was referring to this link(http://stackoverflow.com/questions/149573/check-if-option-is-selected-with-jquery-if-not-select-a-default), but its not working.
Here's my code:
<select id="language" name="language">
<option value=""></op...
hi;
i'm testing jquery history plugin (http://plugins.jquery.com/project/history) firefox fine working. but i'm testing ie7 browser has error reporting to "Access Denied". What solution this problem ?
Error Line :
var iframe = ihistory.contentWindow.document;
Best Regards
...
Hy, is there a way to find the first letter of the last word in a string? The strings are results in a XML parser function. Inside the each() loop i get all the nodes and put every name inside a variable like this: var person = xml.find("name").find().text()
Now person holds a string, it could be:
Anamaria Forrest Gump
John Lock
As ...
Element.implement({
addLiveEvent: function(event, selector, fn){
this.addEvent(event, function(e){
var t = $(e.target);
if (!t.match(selector)) return false;
fn.apply(t, [e]);
}.bindWithEvent(this, selector, fn));
}
});
$(document.body).addLiveEvent('click', 'a', function(...
Hi, i have a form like:
<form id='new_key' action='/foo/bar' method='post'>
<input type="text" id="u">
<input type="submit" value="submit">
</form>
I can bind a jquery event to this element like:
<script type="text/javascript">
$('#new_key').ready(function() {
alert('Handler for .submit() called.');
return false;
});
It works a...
Hi Guys
I'm currently getting all the Select elements that exist in a form with the following:
$("form").submit(function(event)
{
// gather data
var data = GetSelectData($("form select"));
// do submit
$.post($(this).attr("action"), data, ..etc)
});
Instead of passing in $("form select"), is there a way I can say som...
see this code
(function($) {
$.fn.me = function(settings) {
settings = $.extend({ Until: false }, settings);
$(this).click(function() {
if(settings.Until) {
var parent = $(this).parentsUntil(settings.Until);
} else {
var parent = $(this).parent();
}
...
Hello everyone.
Seems I've outdone myself. All the while I was creating this pretty little 'latest news' widget that fades on mouseover of each anchor. Then my colleague says, "Hey, Chris, these links don't work"
...oops. I would like to find out if I can have these anchors take the user to the relvent page on click. Currently Cycle i...
I have a map with 4 layers, each layer having markers for various shops. What I need to do is this.
User chooses shop from select
Script grabs shop name and then finds the correct data for that shop from json.
I have a rough idea of how the script should look but don't know how to write it correctly.
$('#shopselect').change(function...
Hi friends,
In my project site I am merging a base image (a map) with markers (the same marker always but repeated) according to a table in MySQL using the php function imagecopymerge.
I want to migrate this to jQuery since the refreshing of the image flicks, which is very ugly.
Could you please guide me to the best solution?
Thanks...
I'm trying to validate a input field with the JQuery validation plugin.
The numeric range [range()] depends on the value of a select box.
For example when the select box is "A" the range should be between 1 and 10. But when its "B" it should be between 5 and 10 and so on. I did try this with reading out the value of of the select box and...