When I call json object from php file it returns undefined. I can see all data writing alert(data) but when I write alert(data.books) it returns undifined.
$JSON = '
{
"books": {
"book1": "firstbook",
"book2": "secondbook"
}
}
';
and I call it with jquery
jQuery('#login').live('submit',function(event) {
$.ajax({
u...
Hi All
I'm using a jQuery text-resizing script, from here - http://demos.cool-javascripts.com/jquery-fontsize-controller.html. The scipt is as follows:
function fontSize(container, target, minSize, defSize, maxSize) {
/*Editable settings*/
var minCaption = "Make font size smaller"; //title for smallFont button
var defCaption = "Make fo...
I have two dropdown box. 1st box having list of values. When I click add button the selected value from dropdown1 shift to dropdown2. Then when I click "add all" button all the values from list will shift from dropdown1 to dropdown2 through jQuery. Here I am having problem.
After add the values from box1 to box2 when I click submit butt...
Hey all, its your typical slider - both automated and controlled by user click. Problem is when you click, if you are on last slide,it shouldn't show right arrow, and if you are on first slide, it shouldn't show left arrow. If you are anywhere else, it should show both arrows. However, when on last slide it still shows right arrow. Howev...
Hi, this is probably simple but has been driving me nuts. I have searched all over for this and found people that have mentioned it but no solution provided.
I have a simple viewmodel that has a boolean property with no data annotations on, other properties do but these do not effect the problem.
Public Property AcceptSurvey As Boolean...
I saw a tutorial on the net about how to create a nice jQuery animated vertical navigation bar. It has a demo page that has a white clean background, this bar on the top left and some handwritten wording in the middle of the page. Please remind me that link.
It looks similar to this one:http://nathanborror.com/
...
Hi,
I'm attempting to assign items to an array on a users action, so for example, user clicks "Add", this will add the selected id into the relevant section of the array.
The array won't be created at first so I set up an empty array:
var Options={};
On the users click, I then want to assign a key to match the option selected from a...
As per my previous question, I have a working animation which fades in and out each element within the div slideshow. The problem is that I want this animation to continue from the beginning once it has reached the last element. I figured that was easy and that I'd just place an infinite loop inside my JQuery function, but for some rea...
I'm using cross-slide and JQuery successfully in IE 7-8 on this site. I've just set up the same here, but - although the solution is identical (although I know the markup isn't - view source for details) - it fails to show images in IE 7-8 (although it's fine in FF + Safari).
I know about the trailing comma array IE bug, and I've tried ...
Hello,
I'm trying to change my form to ajax form with jquery, but I get an invalid label error in javascript console.
My js code :
<script type="text/javascript">
$(document).ready(function() {
$('#jsonForm').ajaxForm({
clearForm: true ,
datatype: "json",
error:function(data){alert('Error:'+data);},
...
I have a parent DIV (.box) and a child (#display). I would like fade out the parent if the child is hidden. But it still doenst work :S
if( $('#display').is(':visible') ) {
$(this).parent(".box").fadeTo(100,1);
} else {
$(this).parent(".box").fadeTo(100,0.7);
}
...
I am trying to do something like this
01 ...do some heavy duty stuff
02 //delete some rows <tr>
03 $('...').fadeOut(function () {
04 $(this).remove();
05 });
06 ...do some heavy duty stuff
07 ...add some rows <tr>
However the fadeOut's call back function doesn't get fire immediately. Because of this my logic of adding new row...
Hi,
I'm extracting data from a webserivce.
This is my select statement to retrieve the data:
string cmdstr = "select title, titlefr, racpnr, racpmodeltype from onl_wgn where show = 1 order by onl_kl, racpnr";
I got 4 groups of onl_kl. Now I want to show each group in a tab of the jquery tabcontainer.
I can pass the data in a datas...
In jQuery you can use $().jquery; and you can know your framework version, is there an equal script for prototype?
Thank you!
...
i need some help with this, i'm trying to generate some html with javascript, but always get the same, this is my javascript code
var datePickerHTML = function(id){
var html = "<div id='"+id+"' class='ui-datepicker'>";
html += "Hello World, my ID is "+id;
html += "</div>";
return html;
}
var UhmaCalendar = function(c...
I have form with Tinymce. I am saving text writen in tinyMce using ajax call.
when I press the save button it does not save the latest value which i entered in tinymce.
i.e. when i load the page, default value in the field is "aaaa". I update it to "bbb" and press the save button. but it saved the value "aaaa". Now I change the value ...
Hi all,
i had asked a question about refering objects in a function that is inside jquery each function but that first function is defined before in a array.
In my question everything went ok (because i was testing with one element only), when i put 2 elements, it didn't worked, it is calling the first always.
I think that is because a...
I have a series of records with ids assigned to them. I.e.
record1, record2, record3 etc
I'm trying to get the id of the link being clicked using:-
$("a.removeTier").live('click', function() {
var tier = $(this).attr('id').match('/\d+$/');
alert(tier);
});
The variable tier, should only contain the numeric value within ...
I have a button that has its location generated dynamically via jquery:
<a id="final_location"
href="/pre_config/step4"
class="proceed-btn right">Proceed To Next Step >>></a>
$('#final_location').click(function() {
location.href = this.href + '/' + escape($('#type_of_station').html()) +
'/' + ...
Hello,
Is it possible, via jQuery, to select a multiselect to a select, differently?
The issue I'm having is that I have a general js called that does something to an id. However on some pages it has a different purpose.
Therefore I would like about to recognize the difference.
$("select#categories[multiselect]").doOneThing; //multis...