jquery

JQGrid with Column Reordering

Hey guys, I have a jqgrid and I can reorder my columns with this option in my JQGrid jQuery("#list").jqGrid({ sortable: true, ... }); This functionality let me reorder ALL my columns. But I want that some columns must be on fixed places. Is there a way to solve this? Thanks in advance! Bruno ...

Problem with javascript function while using Jquery.

Hi all, I am very new to Javascript and have only started playing with jquery recently. I have a Javascript function that while used on its own within my project, works flawlessly. as below.. * UPDATE * these 2 functions are declared after the <input> tag and still throw the same error document.getElementById("name_first") is null when ...

Textarea $.post as undefined

Using jquery I'm trying to post textarea content back to a php backend. I can successfully alert out the textarea content, however when I use the $.post, firebug shows it as 'undefined'. The post will successfully send the borrowing id. I have also tried giving the textarea a unique id but to no avail. alert($('textarea').val()); $...

jQuery access variable in <body> tag?

Essentially I need to specify a JQuery variable in my webpage's body tag, and have a function in my head tag read it. This is the function in my head tag (simplified): <script type="text/javascript"> $.noConflict(); jQuery(document).ready(function($) { $('a.paymentAdd').click(function(){ alert ("rowCount 1 = " + rowCount); rowCoun...

jquery no conflict problem

Hi i used jquery many times in noconflict mode as below var $j = jQuery.noConflict(); and it works great every time. Today i used the jQuery 'before after' plugin. I used the same noconflict function but it did not work http://www.catchmyfame.com/2009/06/25/jquery-beforeafter-plugin/ I am not sure that $.fn.extend works with no...

jquery array problem

<?php include_once('db.php'); $location = $_POST['location']; $doctor = $_POST['doctor']; $patient_id = $_POST['patient_id']; if(($location != "") && ($doctor != "")){ $sql = "select Name,Age,Gest_age,Weight from rop_form where Location = '".$location."' and Doctor = '".$doctor."' and Patient_id = '".$patient_id."'"; $result = mysql_quer...

Wrap several elements for accordion in jquery

Hello, I currently have the following html: <h3 /> <p /> <p /> <ul /> <ol /> <h3 /> <p /> <p /> <ul /> <ol /> <h3 /> <p /> <p /> <ul /> <ol /> I'd like to create an accordion but for this I need the following: <h3 /> <div> <p /> <p /> <ul /> <ol /> </div> <h3 /> <div> <p /> <p /> <ul /> <ol...

JavaScript: display div on index.php

Information: I have a site that has a design on index.php, and then you browse other pages(video.php, news.php) inside a frame on index.php. What i want to do: After a action(inserted to mysql.query) has happend inside the frame(video.php), i want to show a #box that is on index.php. How should i do this? And is it possible to do like...

How to show a loading message while jQuery code is running?

I am new to jQuery and I have a piece of code inside the ready function that takes about 4-5 seconds to finish. What I'd like to do is to probably use blockUI to show a "Please wait" message or something while the page is loading. However, if I insert the $.blockUI and $.unblockUI inside the ready function it just runs and disappears r...

What are IE8 add-ons useful for web developer?

Does IE 8 have any other good add-ons/extensions/plugins other than "Developer toolbar", which is useful for web developer/designer/tester? ...

text selection AND bubbling

this is the problem: I'm using javascript and JQuery (not UI) to drag nested objects in my web page. to disable the text selecting I have to return FALSE from the mousedown handler, but this disable also the event bubbling. But I need event bubbling... What can I do?? thanks ...

if response: 1 then window.parent

Hello. I am using this script to insert comment to the database: var http = createObject(); var nocache = 0; function insert() { document.getElementById('insert_response').innerHTML = "To Sek .. " var fID= encodeURI(document.getElementById('fID').value); var kommentar= encodeURI(document.getElementById('kommentar').value); nocache = Mat...

jQuery .load Method causing page refresh AJAX

I have a functional JSP page that accepts URL parameters and updates a table on the page with info based on those parameters. I have a set of different tabs which pass said URL paraneters to the page they are on so it then re-loads and displays this new data. I have been trying to use jQuery .load and .ajax methods so that i can pass t...

jQuery AJAX problem in IE7 (possibly other versions as well)...

Can anyone enlighten me as to why the following code won't work in IE7 but it works just fine in Chrome/Firefox? $(document).ready(function(){ $.ajax({ type: "POST", dataType: "text", cache: false, url: "/ajax/ajax.asp", data: "cmd=check_forfeits", success: function(msg) { return false; } }); }); ...

How to find out which images are shown i.e visible and which images are hidden using jquery?

Hello friends! I have 5 images on my page. These images are layered on each other using Z-index in css class. Out of these 5 images I have assigned a css class to 4 images and for one image i.e. first image img1 I have added css effect using style property in image tag only. Now out of these 5 images first image img1 is always visibl...

How to display running counter in Javascript?

I have a table cell that contains a numerical value. When changing the value, I want to create an effect where the counter moves up (or down) in 100 steps until reaching the new value. I've tried something like the following (with the help of jQuery): function update(element,newValue) { var oldValue = parseFloat($(element).text()...

jQuery function calling

hi, I've got 2 jQuery functions. One calls the other (in theory...). These are: $.testFunction = function(arg1){ alert("testFunction(arg1)"); $.testFunction(arg1, ""); } $.testFunction = function(arg1, arg2){ alert("testFunction(arg1, arg2)"); alert("arg1: " + arg1 + "\narg2: " + arg2); } I've got two functions, beca...

MVC with JQuery: handling Session Expire

Hello, I have a question: How could I handle the session expire on a MVC application that has JQuery Ajax method calls on certain pages. The issue is the following: When the client reaches the session timeout, each of my controllers inherits a class that checks if the session is alive (looking up on some stuff like the site session, d...

HTML tag selector in jQuery

This question is a bit open ended as I'm not sure it's possible or where to start with it. If you are familiar with the Web Developer Toolbar for Firefox you will know the CSS > View Style Information tool where you can mouse around a web page and it will select the <h1>, <div> or whatever html tag you are hovering over. I'd like to re...

Displaying JSON array through ajax (jquery)

I'm pretty new to Ajax and JSON and tried to get this to work but can't seem to get the hang of it. How do I call the json in ajax and display all the info inside the json file? here's my json file { posts: [{"image":"images/bbtv.jpg", "alter":"BioBusiness.TV", "desc":"BioBusiness.TV", "website":"http://andybudd.com/"}, {"image":"imag...