How would you format a Json response to include nested, one to many related data?
My simple JQuery Autocomplete example. The Linq2Sql is within. The first part of this question answered here. This uses a repository with Linq 2 SQL to send the response:
public IQueryable GetProductIDs(string myPrefix, int limit)
{
return from z i...
Hi all, I'm using this script (http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/) to valdate my form etc, which also has a submit function.
Here's the code which sends the form to be processed:
jQuery("#adminForm_1").validationEngine({
ajaxSubmit: true,
ajaxSubmitFile: "/index.ph...
I got image which is partialy overlapped by DIV, this particular image got its border set with CSS in external file to change color when mouse is over image.
problem is when i move mouse from image to div overlapping it, then image losts hover and border is going back to normal state.
How to tell to element with particular ID that mous...
I'm using jQuery and use $.ajax to send out request.
My computer is pretty slow(which can be fixed by adding updating the memory),
and the request times out frequently.
But I've found that although it's timeout,
process at server side doesn't terminate.
Is is normal or something wrong?
...
I have a select that I want to run various functions on depending on what's selected. I've also used the flexselect plugin http://rmm5t.github.com/jquery-flexselect/ to transform the select box into a combo box. The result is an input box.
I want to run a function when the input box text changes, not on blur, but right away. I don't see...
Hello,
I have a hard-coded JSON string.
var test = "JSON STRING HERE";
I am using jQuery. I know there is a function like getJSON, but that makes an AJAX call. I want it to parse the hardcoded string so that I can use $.each(test, function(a,b){}))
Thank you for your time.
...
I have 3 radiobutton on my page. There are 3 buttons also on the same page. i want to show different buttons when each is clicked.
<input id="Radio1" type="radio" name="grp1" class="abc" />
<input id="Radio2" type="radio" name="grp1" class="abc" />
<input id="Radio3" type="radio" name="grp1" class="abc" />
Update: There is only one b...
Sorry that i don't have an example.
However i'm creating a scrolling box (scrolls left and right) I have bind mouseDown functions to 2 images (these are used to scroll the box). the functions are "scrollLeft()" and "scrollRight()".
These funtions work as planned (moving the box left and right). However i have a problem with the mouseUp...
Iam using this plugin.
How do I show all the options available in the dropdown for an input field when it receives focus? Right now , I have to type something for the plugin to filter the options.
What I have right now
var $sessionTimes = "00:00 00:15 00:30 00:45 1:00 1:15".split(" ");
$(".autocompleteTime").autocomplete($sessionTime...
Hi all,
I'm trying to pass a function as an option through a jquery plugin that I'm building myself.
At the moment when initializing my plugin with the following option:
$.fitAjaxSubmit({
formId: "new_team",
postUrl: "/teams/create.json",
redirectUrl: "/teams/",
saveBoxText: "Saving Team...",
beforeSubmi...
Hi All,
Can anyone tell me how can i use a varaible foe button text in jquery dialogs .
I want to make a dynamic button name.
...
Hi
I am using WYSIWYG - jQuery plugin 0.4 for tinymce editor. whenever i am loading the editor, IFrame tag is created which is displayed is getting with textarea tag which is hidden.
The problem here is the last character is getting truncated whatever we typed in the editor.
I am seeing that hidden tag textarea is getting the value fro...
Hey everyone,
I have a list of search results in a <div> element with a static height and overflow: auto; in the style. I would like to load only the first x number of search results (e.g. 20), and load another x results as the user scrolls to the bottom of the element containing the search results.
Can anyone explain to me how I would...
$('.rotateme').cycle({fx:'fade',speed:2500,timeout:3000,next:'#arrowright',prev:'#arrowleft',sync:1,pause:1});
Hai dudes, the code above is what I am using for an image slider, where images fade in a cycle (that was obvious).
Anyway, this is what happens:
When it's cycling through the li elements, the previous button returns me to th...
I have three radio buttons
<input id="RadioJ" type="radio" name="grp1" class="abc" />
<input id="FaroK" type="radio" name="grp1" class="abc" />
<input id="MartreLK" type="radio" name="grp1" class="abc" />
Which is the shortest possible way to do this:
IF RadioJ checked
do this
else if FaroK is checked
do that
else if MartreLK
d...
Hi all,
Here is my simple function
$('#save_button').click(function() {
$(this).attr('disabled',true).val('Saving');
$('#new_record_form').ajaxForm({
url: '/',
type: "POST",
dataType: "json",
beforeSubmit: function(){ alert('Boo!'); },
success: function(){ alert('Hello!'); }
})...
I got such code:
$('.mainp').find('A[href$=jpg]','A[href$=jpeg]','A[href$=gif]','A[href$=png]').fancybox();
And it works only for .jpg files. When I change it to:
$('.mainp').find('A[href$=png]').fancybox();
It works for .png files. So what I'm doing wrong, that fancybox() is not working with all type of files?
...
I am having a page load within a content div when the document is ready. However, I also have some links that load different pages into that same content div whenever the user clicks on them. I am trying to establish the height of the content div to control something else, however once the height of the div is set on page load, I cannot ...
i'm trying to do a search engine for a briefing system.
I'm using a many to many relationship style setup with 3 databases representing the relationships.
comms_briefings is where the data is stored for the briefings
search_tags is where the tags are stored
briefings_tags is where the relationship is formed
i have this code already w...
Has anyone been able to get uploadify to work with codeigniter?
Everything I try it will not upload.
...