jquery

[jQuery 1.4] move one div over another

I have two div elements that are twins (i.e. their dimensions and contents are identical). I want to move of those div-s over another, so that their corners are at exactly the same coordinates. What I try to do is: var offset = $('div#placeholder').offset(); $('div#overlay').css('position', 'absolute').css('left', offset.left + 'px').cs...

simplemodal - IE8 $.support.boxModel is not NULL and no object

Hi, I try to use the simplmodal script from: http://www.ericmmartin.com/projects/simplemodal/ I got this error $.support.boxModel is not NULL.. in IE8. jquery.simplemodal-1.3.4.min.js?F This is my implementation scipt.. what I have to change to avoid this error? function loadIframe(url){ $.modal('<iframe src="' + url + '" height...

jQuery: How to parse a multidemensional array?

I'm not sure if the array is too deep or what, but I can't seem to get anything other than the keys and undefines. Help please! I'm using Codeigniter for development. Here is the PHP then the jQuery: $term = $this->input->post('search_term'); $this->db->like('book_title', $term); $search_query = $this->db->get('books'); $retu...

Accessing html form input type=text using jquery from a windows forms webbrowser-control

I have two elements on my Windows Forms application: Webbrowser-Control Button Inside of the webbrowser-control I show a very simple html-form with two input type=text. I press the button and get access to both text fields. Last year at the Qt developer conference there was a quite good presentation: http://labs.trolltech.com/blogs/200...

Textarea maxlength check

Textarea validation, How to limit the characters in a textarea for not exceeding more than 50 characters. <textarea rows="5" cols="15"></textarea> Thanks..... ...

Live testing jQuery selector

Is it possible to conveniently test jQuery selectors on some random web page using some sort of plugin for browser (Firefox)? It would be nice if it could automatically highlight selected elements. ...

Help with handling jQuery autocomplete result?

I need to split the string result of the autocomplete plugin. I know how to split the string and what not, but don't know how to do it in context of the plugin. Here is what I have thus far. Any help would be greatly appreciated: <script type="text/javascript"> $(document).ready(function() { $('.divAutoComplete').autocomp...

Retrieving ids of chid divs using jquery?

Hello, Please have a look on the code below .. <div id="click_me">Save</div> <div id="blocks_sortable"> <div id="block_1"> <h2>Block 1</h2> <div class="items_sortable connectedSortable"> <div id="item_1"> <span>Item 1</span></div> <div id="item_2"> ...

How do I center a DIV in the exact center of a page using jQuery?

I need to center a DIV in the exact center of a page using jquery. My CSS style for the DIV is as follows: #page-content #center-box{ position:absolute; width:400px; height:500px; background:#C0C0C0; border:1px solid #000; } and my jQuery for centering is as follows: windowheight = $(window).height(); windowwidth = $(window).w...

Got a static var which is working, now need to get dynamic var which isnt working

got this variable var zvmlist = { 'Huishoudelijke hulp': 'Huishoudelijke hulp', 'Verpleging thuis': 'Verpleging thuis', 'Verzorging thuis': 'Verzorging thuis', '24 uurs zorg': '24 uurs zorg', 'Ondersteunende begeleiding': 'Ondersteunende begeleiding', }; this var is used in a function to create a dropdownlist. ...

Lock HTML select element, allow value to be sent on submit

I have a select box (for a customer field) on a complex order form, when the user starts to add lines to the order they should not be allowed to change the customer select box (unless all lines are deleted). My immediate thought was that I could use the disabled attribute, but when the box is disabled the selected value is no longer pas...

jQuery for Tumblr?

Hello I'm developing my first Tumblr-theme. Is it possible to just include jQuery from Google Code and then use it? Also, is there any good jQuery-script for showing latest tweet in Twitter? I've read Tumblrs own javascript-method, but if jQuery works, I'm gonna use that of course. Martti Laine ...

Curved corners in the IE's... CSS 3? Conditionals? Images? JS?

Curved corners in the IE's... I'm using a CSS 3 border-radus class called .curved on all my things I want with cool curved corners. The new CSS works in all the normal browsers, however IE is being a right dips**t. Whats the best practice for adding rounded corners nowadays. Shell I target anything with .curved in JS and do it all in jq...

jQuery - Change jqueryvalidate to add class to parent li

I'm currently trying to edit GeekTantra's jQuery Validate plugin to make it apply a class to the parent list item containing the input field if an error message is displayed. Here is the code with my addition of jQuery(id).addClass(redhighlight); I'm fairly new to jQuery so I'm probably making a bloody obvious mistake. /** * @author G...

Jquery class changing works, but doesn't effect another function like it should

So I have content boxes that close and expand when you click an arrow. The content box has two classes for telling whether it is open or closed (.box_open, .box_closed). A hover function is assigned to box_open so when it is open and you hover over the header, the arrow appears. However, I don't want this to happen when the box is closed...

focus doesn't work in IE

i have the following function function change() { var input=document.getElementById('pas'); var input2= input.cloneNode(false); input2.type='password'; input.parentNode.replaceChild(input2,input); input2.focus(); } but focus() ...

KeyTable and jEditable (server submission working, interface updating not)

I have a table. KeyTable is used for navigation jEditable is used to submit to the server The problem is that the value gets submitted to the server (and is saved in the database) but the actual table does not update The server string returns: Parameters: {"row_id"=>"3", "action"=>"post", "col_id"=>"1", "value"=>"text entered into ...

How do I make a textbox take only numeric characters using jQuery?

I need to make a textbox that only allows numeric characters. I've looked through several numeric plugins and can't find one that I like. I'm looking for either a plugin recommendation with the associated URL or syntax showing how to get started on making my own plugin. ...

Disable Esc close for colorbox

Hi, I'm using the colorbox plugin for jquery. I know I don't have to have a close button, and overlayClose: false will prevent the window from being close by clicking the overlay. Is there a way to remove the ESC key-listener event? ...

datepicker send data to database

How i can get picked data in inline mode. With popup its easy to do with input tag <input type="hidden" id="defaultInlineDatepicker" size="60">. And when i can write data to database. But i need calendar on my page inline. <p> <span id="defaultInlineDatepicke" class="datepicker"></span>&nbsp; </p> <script> $('#de...