Is is possible remove all content before a specific string with jquery? For instance say I wanted to strip all the text before the word "subcommittee" in this example below. How would I do that?
With losses mounting among hoteliers, fishermen and others whose livelihoods have been curtailed by the spill, frustration is "rapidly ...
I have a infinite carousel that I want to move when I hover over the next and previous buttons. Right now hover only fires this once. I want the carousel to continue moving while the mouse is within the next or previous buttons.
Any Suggestions?
jQuery.fn.carousel = function(previous, next, options){
var sliderList = jQuery(this).chil...
Is it possible to call a php class function DIRECTLY using ajax?
Something like below... except ajax...
myclass::myfunction();
I've been using the jquery library to work with AJAX.
$.get('control.php', {func: funcName, arg1: arg1});
The above is similar to what I'm trying to achieve MINUS the control.php;
I'm not sure if this is...
I am using combination of php+jQuery for captcha validation and later sending mails and do other stuff. The pseudo code is something like this:
captcha_code = jQuery.post(.....execute captcha script and get status)
if(captcha_code == "correct"){
send_mail_using_php_script;
}
Now I have no idea whether spammers can directly execute...
can some one guide me to a good tutorial for jquery ckeditor integration?
...
Hi,
I've been trying to figure out why the following script's success function isn't running. Everything in my form works perfectly, and the form contents are being emailed correctly, but the success function isn't being called.
If anyone could review my code and let me know why my success function isn't being called I would very much ...
So, I need to construct a front-facing query builder for a database, but I'm having trouble finding existing code for what I can't imagine is a rare requirement.
Basically, I have non-SQL fluent people needing to build queries on the fly and view the results.
I found this: http://plugins.jquery.com/project/SQL_QUERY_BUILDER (Demo: htt...
Is it possible to configure jrails so that it only replaces the ruby on rails helper methods for some parts of the site?
I am currently in a project where we are doing a staggered migration to jQuery so the site wide choice is not an option in this case.
...
Hi
I have a checkbox and I am using jquery. I want to popup a dialog box when a user checks the checkbox. However if they uncheck the box nothing should popup.
How can I do this? Also I need to use jquery live or livequery as the checkbox is not displayed on page load.
...
Hi.
I have this select list:
<select url="/Admin/SubCategories" name="TopParentId" id="ParentList">
<option value="">Please select a parent category</option>
<option value="1" selected="selected">New Store</option>
<option value="2">Extensions</option>
<option value="3">Remodel</option>
<option value="4">Bespoke Signage</opti...
I have models like this:
class User(models.Model):
Switch = models.ForeignKey(Switch, related_name='SwitchUsers')
Port = models.ForeignKey(Port)
class Switch(models.Model):
Name = models.CharField(max_length=50)
class Port(models.Model):
PortNum = models.PositiveIntegerField()
Switch = models.ForeignKey(Switch...
Hi
I am using jquery ui 1.8 and I have a model dialog that popups up and if a user clicks on a checkbox another one comes up.
This requires them to say "yes" or "no" so I removed the "X" on the dialog and put closeOnEscape to false.
However I noticed when I did that the model dialog underneath it would close when they hit escape. So n...
When I minify jquery using YUI compressor, it works fine.
When I then add gzip compression (and serve this version via mod rewrite), the gzipped version throws this error:
illegal character in jquery.min.js on line 1
Line 1 is:
�������M�����������s�8�0�?�!sz�dKr�=�
This results in a "jquery is not defined" error.
I am using the follo...
I could be misunderstanding what is happening but from what I can tell I am getting a DOM element and not a jQuery object when I use .each().
The below will not work as this refers to a DOM element and not a jQuery object
$("span[id$='_TotalItemCost']").each(function() {
var someText = this.text();
});
Modified to transform this ...
This is my Javascript:
$(document).ready(function() {
$('#like').bind('keydown', function(e) {
if(e.keyCode == 13) {
var likeMsg = $('#like').val();
if(likeMsg) {
// Send the AJAX request to like.php
$.ajax({
url: 'like.php',
succ...
Hi Folks,
I've scanned trough the documentation but I can't find out how I to get the field to get the datepickers value AND let it be editable using my keyboard numpad. So filling/editing the date without using the datepicker.
I hope my question is clear cause I don't know how the formulate it otherwise..
Greetings
...
Hi, i have a form(id="search_options") and i tracking changes in form by:
$("#search_options").change(function() {
// Bla Bla Bla
});
In this form i have many inputs and one of is select(id="project_category") and i want to catch if user changed project_category select or another input. How can i done this ? Thanks
...
is there a simple way to find out if a checkbox is checked in jquery.
something like .checked or ischecked
...
I've got a form that I clear on focus. I've selected the whole form and it works great except that the submit button goes blank when I click it.
how can I exclude my input of input#submit from the following code?
$(".wpcf7-form input, .wpcf7-form textarea").focus(function() {
if( this.value == this.defaultValue ) {
this.value = ...
I'm trying to be able to dynamically expand / collapse multiple divs with the same code....
it's controlled with the click of a span (toggle) and then i'm trying to get the next id(the div that would slide up and down)
$('span').toggle(
function() {
$('#albumholder').slideToggle(600);
$(this).html('-');},
functi...