I submitted a form via jquery, but I need the ActionResult to return true or false.
this is the code which for the controller method:
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult SetSchedule(FormCollection collection)
{
try
{
// TODO: Add update logic here
return true; //cannot ...
Who can help me with regular expression , to remove some string with jquery, don't have much experience in regex
<div class="test" >
> > Test Text
</div>
I want to remove " > > " and to leave just the text
Thanks!!
...
Using jQuery, can you show me the syntax for playing a sound?
I would like to return a blip or beep or something upon error.
I found something about a sound plugin at
http://dev.jquery.com/browser/trunk/plugins/sound/jquery.sound.js?rev=5750
And when I did a search for "sound" in the jQuery documentation, it said
There is no page titl...
I'm trying to submit a rails form using a submit trigger that is outside of the form tags. So I have my form:
<% remote_form_for Package.new,
:url => { :action => :rate_shop, :ids_sales_order_id => params[:ids_sales_order_id],
:id => @shipment.id }, :loading => '$("#loading").overlay({api: true}).load(); ' + visual_effect(:appear, 'pri...
I have a div with content and overflow assigned giving it two scroll bars.
On the inside of that div is another one which needs to be anchored to the bottom at all times.
To achieve this, I put a listener on the scroll event to reposition the div at the bottom of the div:
obj.scroll(function(e) {
var uiValue = obj.scrollTop();
...
hello friends I have a question I have a project asp.net mvc which is developed in jquery1.3.2
I need to update whole project with jquery 1.4
can any one tell me the steps to do it this..
Thanks
...
If the user begins typing, and the focus happens to not be on the only input control I have on the page, how can I set the focus to be on that input control in order to create a better user experience?
There are things that can have the focus, such as if the user tabs to a hyperlink or mouse clicks outside the input.
...
What is the difference between those two AJAX calls and why would I choose to use either when using the asp.net mvc framework?
...
I am trying to create a multilevel accordion using nested unordered list.
What I am trying to accomplish:
Show only the "active" ul (other
remain hidden)
When there is a nested ul - toggle
only the nested ul (2222 -> 2.1)
Full code here: http://pastie.org/852421
JS
$(document).ready(function() {
$('ul.menu li ul').hide();
...
Hi I'm trying to pass JS object to a php script through jquery.ajax(), basically:
var bigArray = new Object();
//code
//start loop
bigArray[x] = {name: exname, id: exID, order:e, set: setBox, inc: incBox, example: exampleBox, day: i};
So its pretty much an array of these objects.
var anotherTest = $.toJSON(bigArray);
var ajxFile = "r...
I don't understand what Dusan Jovanovic means when he refers to host_element in his documentation about DBJ-SOUND.
Q: What do I put into:
$.dbj_sound.play( host_element )
...
Ok, so I am using the facebox plugin. One of the examples given is to trigger the popup, trigger a spinner, do an ajax call, when the call returns replace the spinner with the results. Code is here
jQuery.facebox(function($) {
$.get('blah.html', function(data) { $.facebox(data) })
})
A few questions.
I thought that the jQuery and...
I have some code right now that executes when a link is clicked. The HTML is structured:
<a href='link1'>Stuff<span class='color-bar'></span></a>
<a href='link2'>Stuff<span class='color-bar'></span></a>
<a href='link3'>Stuff<span class='color-bar'></span></a>
With the jQuery like so:
$('a').liveQuery('click',function(event){
...
...
I'm loading content via an AJAX call into a table row added to the DOM on the fly. I'm calling the datepicker functionality in my callback function and the calendar shows fine. However, when I click on the date, I get an error: inst is null. Here's my code:
$(document).ready(function() {
$(".edit").live("click", function() {
...
So, I was reading up on John Resig's blog, saw his micro-templating javascript engine and decided to try and implement my own template management system for javascript, to deepen my understanding of prototype inheritance. However, the minute I started writing it, I ran into a problem.
To start off, here is my base code:
function templa...
I have been able to get the clicked pagination item to respond to a css selector. But I can't get it to be :active if the user uses the next and back buttons vs the pagination.
ul.jcarousel-control li a:focus {background-position:0 -11px}
ul.jcarousel-control li a:active {background-position:0 -11px}
That stuff makes it work if the i...
Ive been messing with jqgrids alot of the last couple days, and I have nearly everything the way I want it from the display, tabs with different grids, etc.
Im wanting to make use of Modal for adding and editing elements on my grid. My problem that Im running into is this. I have my editurl:"editsu.php" set, if that file is renamed, on ...
Here is what I have. I have tried several things but I can't figure out what I am doing wrong...
<div class="VoteControls" runat="server" visible='<%# User.Identity.IsAuthenticated %>'>
<img style="cursor: pointer; cursor: hand;" src='<%# (bool)Eval("skull") ? "images/skull.png" : "images/skull-bw.png" %>' alt="Vote Down" class="vo...
I want the next and prev buttons to have two uses.
First: the standard next and prev through the jcarousel. This I have working.
Second, if the user is at the last item in a group, the next button will instead go to the next group.
I have Groups with many Projects
I am running a loop for the projects inside the Group#show view to lis...
Hey guys
Basically what I'm looking to do here is to use jQuery and ASP.NET (not really my choice on ASP.NET ) to track links on the page that have a target="_blank" and then have it post to a MSSQL table. We trying to track ads and such on our site that do that and be able to bring up reports on it from those SQL entries.
Any help wo...