It seems that i cannot access $(this) inside jquery ajax success function. please see below code.
$.ajax({
type: 'post',
url: '<?php echo site_url('user/accept_deny_friendship_request')?>',
data: 'action='+$action+'&user_id='+$user_id,
success: function(response){
//cannot ...
I have a drop-down box that I want to submit data, onchange.
Previously I used:
select_tag name, options_for_select(pairing_options, :selected => 'Y'),
{ :onchange =>
remote_function(
:url => {
:action => 'pair',
:escape => 'false',
:update_grid_item => update_p...
i am using this jquery to make a drag and drop sortable list.
http://jqueryui.com/demos/sortable/
how i can catch the dragged event of elements ?
<script>
$(document).ready(function() {
$("#sortable").sortable();
});
</script>
please help me.am not familiar with jquery.thanks in advance..i need to get the id of dragg...
I am searching for a Tooltip plugin/library for JQuery. It should be able to automaticlly position tooltips, like TipTip, and also support HTML content for the tips.
TipTip does fullfill both conditions, but:
Added HTML support with Tip Tip. You can now add HTML into the Title attribute (though this is not recommended if you want s...
Hi
I have a jquery gallery (galleriffic), which opened nyroModal and a good set size.
I want to post pictures on this page (page open with nyromodal where is gallery).
When I use an iframe, the page size has the wrong value.
jquery code used on the gallery.aspx, which is run as a nyromodal:
<script language="javascript" type="text/jav...
I am using spacetree chart and I require JSON in hierarchical format. See sample required JSON format here. I have ID,ParentID,Name,Description fields in Mysql database table. Now How can I convert data in Hierarchical/nested JSON using PHP?
I know json_encode($array). But, I require nested/Hierarchical php array for this.
Let me know t...
I have a list which is dynamically built, but there are empty list items which need removing.
<ul>
<li>www</li>
<li>www</li>
<li>www</li>
<li></li>
<li></li>
<li></li>
</ul>
How od i do this with jquery? Thanks
...
For some odd reason the part where objects are shown and hidden in my script doesn't seem to be working. I'm not sure if its the fact firefox doesn't like that or whether its the function-based code I have (to save duplicating lines of code)?
There is a working example here and the javascript is here
** Here is the jquery **
$(documen...
Hi Sam!
I think it's JS error!
the servlet will response the josn data like this:
{"start":"2010-04-15","title":"changjiu","url":"http://yahoo.com/","id":115}
but I can't display the eventson my fullcalendar. Why?
the servlet is:
[CalendarMap]
public void doGet(HttpServletRequest request, HttpServletResponse response)
thr...
I'm using a jQuery slider script to show and hide content. The script works perfectly but has one downside: radio buttons inside the sliding div are unclickable / cannot be checked.
If you hit the radio button of "Keuzerondjes" or "Selectievakjes", you'll see a div slides out - and that the radio button you just hit isn't checked. Does...
Hi everybody.
Does anyone know a possibilty to protect a string-wildcard from changing in a textarea?
HTML:
<textarea name="mail_text" id="mail_text">
{salutation} {recipient},
thanks for your email.
Regards
{username}
</textarea>
I would like to catch when someone tries to change one of the wildcards: {salutation},*{recipient}* and...
Is there any easy way to remove all classes matching, for example,
color-*
so if I have an element:
<div id="hello" class="color-red color-brown foo bar"></div>
after removing, it would be
<div id="hello" class="foo bar"></div>
Thanks!
...
Hi guys, I'm trying to write a jQuery function to let users upload many files at once. Here's the function I thought to give the user some feedback about the upload process progress.
function uploadFiles(numbersOfFiles, start) {
$("#info").html(start + " files uploaded");
$.post('upload.php', {
start: start
}, function (d...
well iam trying to get version of IE used by user by using $.browser.version in IE8
iam getting different result when iam writing my url in different formats
http://localhost/test.html----------this is giving result=8
http://192.168.1.2/test.html--------this is giving result= 7
http://www.something.com/test.html--this is giving result=...
Hi folks,
I must be missing something obvious here... I can't get .change() to fire on radio buttons? I have the code below live here!
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Radio Button...
Hello,
<img src="" width="200" height="200" id="test_img" />
<script>
$("#test_img").click(function() {
alert("Hello");
});
</script>
But it doesn't matter what mouse button I'm pressing - right or left. I see absolutely the same result. I want alert to be shown only on left mouse button click.
Thank you and sorry; I'm little n...
I have a function with a chain of filters in jQuery. I am trying to set the focus() on the first element of my last filtered set of elements.
This gives me my desired result set, so I've gotten that far:
$("div[class='st_d']").filter(function() {
return !($(this).css('visibility') == 'hidden' || $(this).css('display') == 'none');...
Hi All guys!
First of, thank's for your time;
then i want go directly to the point by saying that, i don't want to open another "Yet Another Js VS Js" 3d , the web is almost busy of this!
I want also make a premise, i have used both theese js frameworks and i love it and i know, that there are a lot of good js frameworks around, maybe...
Hi,
The basic question is: How do I perform a basic override of a plugin method without editing the original plugin file?
Is it possible to create an override for a specific instance:
Example:
An rtf plugin uses:
$('selector').wysiwyg('setContent',newContent);
In order to display the rtf text as readonly I would like for the same ...
For eclipse 3.5 / 3.6 and JQuery 1.4.2, what are the best practices for a development IDE?
(jquerywtp seems unmaintained, and aptana seems an overkill)
Is eclipse not the right tool for JQuery dev?
...