jquery

uptodate marquee

Hii I have a marquee tag that shows news from my database I want to make this marquee uptodate without refreshing the page so I used ajax (update_panel+timer)to do that but the problem that the marquee doesn't revolve after the timer is working notice: my marquee is a literal(componenet) and I put my text with marquee tags inside the l...

Dynamically loading posts with Wordpress

This helpful idea from Andy Gaskell supports 50% of my next question: I'd like to load posts dynamically with WordPress. Fetching them with Andy's function does work, but How do I bind the load to each and every one of the posts? Can I insert PHP generated content (post permalink, for example) to the JS script? Thank you. ...

Disabling checkbox in “multiselect:true” mode for a specific row in jqgrid

I am showing some data in jqgrid and I am using the option “multiselect:true”.In the grid, for a specific row, I want the checkbox not to be show or if it is shown then it should be disabled.Can I do this??I am using jqgrid3.5.2. Thanks in advance. ...

Is JQuery(..).html() buggy in jQuery 1.3.2?

The code here does not return what one expects: jQuery('<div>Look here: [ jQuery0="null" ]</div>').html() Rather, you get: Look here: [ ] The jQuery source code in question: html: function( value ) { return value === undefined ? (this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\...

JavaScript: event.preventDefault() vs return false

When I want to prevent other event handlers from executing after certain event is fired I can do one of those (jQuery examples, but this will work in JS in general): #1 event.preventDefault() $('a').click(function (e) { // custom handling here e.preventDefault(); }); #2 return false $('a').click(function () { // custom ...

How to get selected value after clone with jQuery?

Here is my complete testing code,which failed to get the value: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <m...

jQuery UI Dialog Buttons from variables

I have variables holding the translated labels for buttons inside a jquery ui dialog. I cannot fill the button array key with the variable itself, and can't find any way to let it treat my variable just as string. translations['ok'] = 'ok'; translatinos['cancel'] = 'cancel'; // not working jQuery('#foo').dialog({ buttons: { ...

How to freeze web browser's repaints while changing visibility of elements?

Hello there, I'm by far no JS developer (in fact, hardly developer at all :) but I wanted to try to write a small Greasemonkey script to hide few elements on a certain webpage. Once I've started dabbing at it, I've decided to use jQuery, just to make it easier. Everything went well, the script is working, but now that it's ready, I've s...

What's lost during clone() in jQuery?

html: <div id="container"> <select id="selector"> <option value="">--</option> <option value="Service">Service</option> <option value="Sales">Sales</option> <option value="Marketing">Marketing</option> <option value="Finance">Finance</option> <option value="Engineering">Engineering</option> <option...

How can I revert a 'draggable' upon failed AJAX request?

I have a draggable div, that needs to be dropped on a droppable. If it is dropped correctly, the droppable calls an AJAX request. If the draggable does not have a valid id or the AJAX request fails, the draggable should be reverted to it's original position. Is that something that can be done with jQuery?! Any help is greatly appreciate...

How to make this jQuery snippet more compact?

$selectMenus = $("#experiences").find('select'); $tab.find('input').each(function(i) { var $elem = $(this); var value = $elem.attr('value'); if(!value) value = '&nbsp;'; $parent = $elem.parent(); $elem.remove(); $parent.html(value); }); $tab.find('select').each(function(i) { $('option', this)[$selectMen...

Jquery or vb.net code for checking future date entered in textbox

Hi, I have below code in vb.net. <tr> <td align="right"> <b>Course Date:</b> </td> <td> <asp:TextBox ID="CourseTimeTextBox" runat="server" Text='<%# Bind("CourseDT") %>' /> </td> </tr> I want to check at client end whether the entered date in text box is future date. I mean this textbox should allow future...

JQuery Lavalamp Issue

Hi I keep having problems integrating a JQuery Lavalamp with Submenus. Take a look at http://karen.2kmegs.com the lavaLamp feature only works when hovering on the submenu items. I would like it to move when hovering on the root item like for example Products. My Javascript code is function fademenu() { $('.fade').hover( function ...

javascript add row to javascript generated table

Can someone tell me where to add the small piece of code to have one row added on top of the table containing the numbers. I only need 1 row added, but with the code supplies beneath, 15 cells alre placed on top of eachother, I think the code places a cel for every name. $("#myTable tbody").prepend("<tr><td>...contents...</td></tr>"); ...

.NET/MVC JSON response opens up dialog box to save

I am trying to submit a form via jquery's ajax method in my .net mvc application. I've set the dataType to json and the contentType to "application/json; charset=utf-8". In my controller action, I'm returning a JsonResult. For some reason, the JSON response doesn't get handled correctly and instead I get a dialog box to save a file ...

Jquery: Content Rotator / Slider question

I'm looking to overhaul a website for a friend of mine at http://gaonlinedriversed.com/ They threw together the current site with Joomla. You might want to turn your sound off before going to the site, it has a pretty annoying video that starts up, with no option to mute or pause it (one thing I'm fixing). Anyways, my question: I bel...

How to test the jQuery UI slider widget with Selenium IDE ?

Hi, We are using the jQuery UI slider widget in our web application and we want to automate testing of the UI with selenium IDE. We can't find a way to move the slider with selenium's commands. Can it be done? ...

Jquery .ajax not posting data correctly in asp.net mvc site -- formcollection empty

Hey everyone, I'm using jquery to submit my form (with id "#myForm" here) as follows: $(document).ready(function() { $("#my_form").submit(function(event) { $.ajax( { type: "POST", url: $("#my_form").attr("action"), contentType: "application/json; chars...

MediaBox style pop up

Hey, I asked a similar question last week asking about window pop-ups. I've thought of a possible alternative to window pop-ups and that's mediabox/lighbox style pop-ups. Is it possible to have a link that you click on and it opens a mediabox type window to the side. (Possibly a window you can drag around within the page) Then you clic...

Get HttpContext from JQuery AJAX GET

Hello... My project is using Castle Monorail as a MVC framework. The problem is that Monorail requires that all controllers have a view template. I am trying to get a string back from a method on a controller via an AJAX call. The AJAX GET always returns a 500 error from the server because Monorail cannot find a view template. I have se...