jquery

Datepicker with jQuery

I once saw a datepicker where the month and year where in 1 (and the same) select box, how do I do this (with options/hardcoding) The css file also gives a clue of this possibility (select.ui-datepicker-month-year) so does anybody know the answer ? And also, I know you can show the first/last days of the next/previous month as well, but...

dynamic form using jquery ajax load posting to the same form

I want to load form dynamically using following : HTML : <div id="add_new" style="display:none"> <form id="addrecord_form" name="addrecord_form" method="post" action=""> <label>Type:</label> <select name="type_select" id="type_select"> <option value="A">Type A form </option> <option value="B">Type B form </option> ...

jQuery Ajax Loader

Greetings, I would like to know what should I do to make appear a ajax loader... actually I am calling a function in ajax... everything is going well here is how it's being done $('#txtEmail').blur(function() { $.post("ajaxAvailability.aspx",{ email:$(this).val() } ,function(data) { if(data=='false')...

JQUERY, Sliding UI Nav Element as seen in the iPhone. How to?

http://www.freeimagehosting.net/image.php?31bf32005c.png I'm interested in using the nav seen on the iPhone. Look at the screenshot, I'm talking about the Nav with "Top Stories News Money" You can select an item in the nav to refresh the bottom panel. Or you can click and click to view more items in the nav. Know of any plugins to a...

jQuery.Cycle showing small images at first load

Hello, I've got problem with jQuery.cycle plugin. At first load of page (when imgs arent cached) its showing small imgs, like thumbnails. You can see it at http://onlinevideo.sk/ - just wait when the second img shows - it's small. Reload/refresh solves it, but it's not real solution, you know. Does anybody knows what's the solution of ...

stop toggle behaviour of jquery accordion 'active' callback

Hi, when I do : $(#my-accordion).accordion('activate', N); ... to open a specific section of the accordion, the behaviour is not as expected. It does not 'activate' that section programmatically (force it to open). It simply toggles the Nth section of the accordion. Why on earth would they call this function 'activate' instead of 'tog...

jquery each div problem

Hello, I need to obtain all the divs with a given id but the jquery each function only obtain the first one. Example: <div id="#historial">some html code</div> <div id="#historial">some html code</div> <div id="#historial">some html code</div> <div id="#historial">some html code</div> script: $("#historial").each(function() { alert(...

JQUERY, isn't working in the FaceBox Modal

Hello, I'm using a JQUERY Plugin for mdoals called Facebox. The issue I'm having is for some reason, the JQUERY I'm writing isn't able to modify the Facebox Modal once it's open. Here is the code snippet: <script type="text/javascript"> jQuery(document).ready(function($) { $('a[rel*=facebox]').facebox() }); function sendvie...

returning JSON and HTML from PHP script

Hi searched through the questions here, but couldn't find anything. I'm new at writing PHP and jQuery, so bear with me. What I'm trying to do is send an ajax request using jQuery to my script which runs a mysql query on data from my database and serializes it into the JSON format using php's json_encode. The response is then parsed with...

div display if block jquery

i am trying trying to find out if a div style display is block then do something here is an e.g this is just a guess i am tryng to do it in jquery if("#toshow":"display" == "block"){ }else{ } ...

trying to reuse javascript code by moving it from view to js file

i have a bunch of code where i dynamically create dropdown boxes in javascript. To prepulate the list of dropdown items, i often have code similar to below where i "inject" in the array of data items from my model so i have <%= myHTMLhelper.ShowArray(Model.List ofItems %> code inside of a javascript function. This works perfectly exce...

parse a character out of a string in javascript

if i have a number of string like this var info = "Information4Table" var next = "Joe5Table" var four = "ERweer11Table" var nice = "ertertertn14Table" and i want to parse out the number between the first word and the string "Table". So for the first item, i want to get "4" and in the last i would want to get "14". what would be the ...

Jquery not intercepting a form submition - Asp.net Mvc & Fancybox

Hello guys, I'm developing an application that uses Jquery to intercept my form submissions to make instead an Ajax Submission. So far so good! Everything works great.. If the client doesn't have JS enabled, the app keeps working flawless. Well, today I created a new form but JQuery doesn't intercept the submission. It's true that I ch...

change cells text in a jqGrid

i have a colModel looks like this: { name: 'TypeId', index: 'TypeId', align: 'left', width: 50, editable: true, edittype: "select", sortable: false, hidden: false, jsonmap: 'InspectionTypeId' }, how can i change the cells text not changing the value? ...

how do i do a find to get any div that has an id that starts with a certain string

i have some dynamic code that will make a list of divs. i want to get back a list of items to loop through that have an id with the same start of the string. For example, i might have <div id="table1" . . . <div id="table2" . . . <div id="table3" . . . how, using jquery, can i get a list of all divs that have an id that starts with ...

Jquery Validation Plugin: Disabling the onclick function of the form until validation is filled in

Hello I am using the jquery validation plugin I have the following code in an onClick function of my form submit button. onClick="parent.$.fn.fancybox.close();parent.location.reload();" When the form detects a field is not filled in, it successfully halts submission of the form, however the onClick event still fires. Is there a way...

What's a jquery plugin for alternating images that comes with a number navigation menu?

Basically I have a list of images that are to be displayed as a slide show. I was looking for a plugin that has numbers that display each slide, and can also be used to navigate between them. Thanks for the help. ...

jquery - get td element in table

I would like to click on a anchor tag (a href) in a table and extract the contents of the next cell (or any specifc cell in that row) $(".clCode").click(function(){ alert( $(this).text() ); return false; }); <table> <tr> <td class='clCode'><a href="#">Select</a></td><td>Code123</td> </tr><tr> <td class='clCode'><a href="#">Sele...

Jquery not responding for external loaded page

Hello, I've been lookings days for solving a problem, but i can not find the trick.. When i load an external php page into a div and click afterward on a link come with the external php code, this link does nothing. Please take a look at this code. index.php Test <script src="jquery.js" type="text/javascript"></script> <...

PHP variable as part of a jQuery function doesn't work, but plain text does

I have the following jQuery code in my PHP file (edited Jan 19 2010 @ 10:40 MST): <?php $count = 0; foreach($attachments as $attachment) : echo '<script type="text/javascript"> $(\'#a_'.$count.'\').click(function() { $(\'#d_'.$count.'\').show(200); }); // if "no...