Hello all,
I'm trying to run a simple getJSON to a PHP file using:
$.getJSON("loadThumbs.php", { usrID: 25 }, function(data){
alert(data.filename);
});
And when the alert messages pops up it reads "undefined."
Here's my PHP file (loadThumbs.php):
$usrID = $_GET['usrID'];
$sql = "SELECT id, isDefaultProfile, filename, usrID FR...
I've got a simple $.ajax request that I am trying to fetch some HTML content with in my ASP.Net MVC app.
// Load the claim table
function GetClaimTable() {
$.ajax({
type: "GET",
url: "claimtable",
data: {},
datafilter: null,
dataType:'text',
succ...
With the JQuery Validation Plugin is it possible to print 'Ok' when the field is correct? When there's an error, I can show a customizable error message. Is the same thing possible when there's no error in the field and it's content is valid (I mean it's not empty) ?
UPDATE
Here's an example of what I want to achieve : Example. When th...
Hi all,
I have an within which I have a LinkButton, and I am trying to handle its client side click event before its partial postback event occurs. I am using jquery for this, and its click event is not firing at all.
The code works fine without updatepanel, but fails with it.
<asp:UpdatePanel ID="ContinueTestPanel" runat="server">
...
Hi all,
I have several functions which use jquery that are called across different pages. I'm wondering if it's possible to define these functions in a single file, and then call them in different files which are included after the initial file.
Here's an example:
## default.js
$(function() {
// jquery specific functions here...
...
I'm looking for a sensible way how to style select boxes, checkboxes and/or radiobuttons with CSS. I know that you can't do it with plain CSS because of how browsers' rendering engines work.
But are there any javascript ways to style these HTML elements? And do they work across major browsers?
...
Is there any open source Ajax Scheduler (with week and month view) for jquery or asp.net? Thanks.
...
Hi all.
JQuery events are annoying me. The thing is that I very often use
javascript (after ajax requests, etc.) to draw up new elements
(buttons, divs, etc.). I've got a list of elements
which you can press on an edit button so you can manipulate the one
linked to the selected edit button.
Now if someone submits a form to make a n...
Hello,
I am relatively new to JQuery and I would like to be able to show a menu on mouseover.
Here is the html
<td class ="comment_div"> <?php echo("$comment_data['comment']); ?> <br/>
<span class="comment_actions"> Approve | Delete | Spam | Edit</span>
</td>
Then the JQuery
$("comment_div").hover(
function()...
I'm trying to create a jQuery special event that triggers when the content that is bound, changes. My method is checking the content with a setInterval and check if the content has changed from last time. If you have any better method of doing that, let me know. Another problem is that I can't seem to clear the interval. Anyway, what I n...
I have this $.ajax (using jquery) code, it originally was the $.get that is now commented but for some reason I'm always getting the error and I can't find anything wrong with it =/, am I overlooking something?
$.fn.randomContent = function(options){
var contentArray = new Array();
var dType = "html";
var defaults = {
x...
I have some code that does this:
function A(){
$.ajax({
...blah blah...
success: function(data){
return data;
});
}
and then I'm trying to use the data later:
var x = A();
x.doSomething();
but x is never stored, since A() takes a while. Is there any way to avoid this?
...
On this page: http://sparqtraining.com/
The alt text for the thumbnails presents after the onmouseover event in a box underneath all of the pictures. How did they do that?
...
Hello,
I am trying to add a jquery progress bar inside a ul li tag.
<ul>
<li>
<a href="test">test</a>
<div id="progressbar"></div>
</li>
</ul>
I use display: block for the anchor tag and I tried the same for the div tag but with no luck. The div elements displays below the anchor tag. I would like the progress bar to be o...
I successfully disabled the right click event on the page that I am working on using jquery. I want to create a customize right click menu. How can I do this? Does this need relevant css setting to get it working (i.e. "position")?
...
I use expose in one link, with this code and it works:
$(document).ready(function() {
var triggers = $("a[rel]").overlay({
expose: {
color: '#212121',
loadSpeed: 200,
opacity: 0.9
},
closeOnClick: false
});
});
The link is:
<div id="triggers"><a href="" rel="#pop_member">Click here</a></div>
But I...
I believe I have found a bug in WebKit. It involves outerWidth(true) (and I assume outerHeight(true) ) in jQuery.
In every browser but Safari and Chrome, the third box is 200. In Safari and Chrome, it is (almost) the width of my screen.
Click here to see my results:
You can test is for yourself here: http://ramblingwood.com/sandbox/w...
From where I can get latest updates for CSS and jQuery regularly? i.e. some feeds etc etc...
baljit
...
<body>
...
<div id="target"></div>
...
<a>click me</a>
</body>
When user clicks,make the vertical srollbar align with <div id="targe"> smoothly
EDIT
Is it doable without other plugins?
...
I searching for an useful Plugin or Idea for my app for reverse search.
I am not sure if it is he right english Word for it...so let me explain:
I got a list of ingredient in my cooking app.
If i choose to create a new receipt i have to scroll through the whole list of ingredients.
I want to be able to add an Letter to the ingredient...