jquery

Draggable and hide

For a project I need a box, which often can find in Desktop application Editors. The box has three areas. One Content area, a tilebar and a sidebar. If a person drag the tilebar, the sidebar grow up. The sidebar need a minimal widht. By a cklick on the tilebar the sidebar dissapear. The contentarea use allways 100% of the available width...

jqTouch - Making an image trigger an animation, rather than a <li>

Playing around a bit more with jqTouch and am running into a problem with images that should link to a separate page. My code is <div id="home" class="current"> <div class="toolbar"> <h1>Title</h1> <img src="images/logo.png" /> </div> <div class="images"> <a href="#largeImage"><img src="/images/thumbnail_1.jpg" /></a> <...

Simple $_GET question

Hey, i am currently creating a pagination script using php and jquery and for some reason can't display the $_GET that im trying to grab. There is no form, but looking at the firebug console I get a url like this: pagination.php?id=category Just wondering how I can get that 'category' and just echo it out. ...

How to Scroll an iFrame using javascript

I have several iFrames that load an external webpage, although only 1 appears at a time, hence all have the id="iFrame" I want to add to buttons (not the scrollbar) so the user can scroll down or up by pressing them, and I am trying to do this using javascript but so far I've been unsuccessful, I've read some posts here and tried those a...

Positioning tools on hover using Jquery

In a page with n divs of the same class, I want to have buttons appear relative to an element when the cursor hovers over it. This code is not working - right now, the result is that the hidden div with the tools is shown and hidden when any element is hovered, but it never moves. I am not getting errors in the Google console when it e...

How do I populate a table?

I have a empty table that I would like to populate based on data entered on the same page. Example. User enter Name, DOB. Click Add. Table with Name and DOB column has +1 row. And additions can be made as many times as the user choose. <table width= "100%"> <tr> <th colspan="3">Owners Already Added</th> ...

jQuery server side DOM manipulation.

Does anyone know if it is possible to leverage the power of JQuery on the .Net serverside? For example I have some HTML as a String in some code behind. Is there a way to execute JQuery on it? I'm currently doing this... Assume this is the String... <input id='AddressSettings_txtFirstName' name='txtFirstName' value='#firstNameValue#...

flexigrid dynamic buttons

I want to swap out buttons in my flexigrid here is my code $('#flex').flexOptions({ buttons : [ {name: 'Show Tagged', bclass: 'show tagged', onpress : control_buttons}, {separator: true}, {separator: true}, {name: 'All Tagged', bclass: 'show tagged', onpress : control_buttons}, {name: 'Single tagged', bclass: 'show tagg...

jQuery global variable problem

var id = $(this).children().html(); // id is 5 $.ajax({ url: 'ajax.php?id=' + id, success: function(data) { id = data; // id is 1 } }); if(id == 1){ // id is again 5 ... } Why in the following example I can't reinitialize the id variable? What is wrong? Thanks. ...

How do I concatenate two textboxes in JQuery?

I am adding rows to my table and the address will be a concatenation of Street, City, State, and Zip. Right now I have this. $tr.find('.name').text($('#txtPropName').val()); $tr.find('.address').text($('#txtPropAddress', ", ", '#txtPropCity', " ", '#txtPropState', " ", '#txtPropZip').val()); $tr.find('.phone').text($('#txtP...

acessing PHP variables in javascript

OK, so I'm not a programmer so please don't beat me up too much... I have a situation where I have some javascript (for jqgrid) that I would like some of the values to be populated from a PHP variable. What I did to get around this is to use PHP and put all the javascript code within a 'here document'. All looks to work well but I tho...

Simple jQuery callbacks break in IE.

I have a few functions like this: $(this).find('.subnav').fadeIn(200, buttonHide ); Now, buttonHide, in this case, is a function I've declared elsewhere. Once the 200ms fadeIn is complete, I want to call that function. Great. Works in FF and Safari. In IE, though, it returns an error as undefined. In fact, I experienced the SAME prob...

How to get Id name with jquery and pass to php script?

Hello, I have been trying to get the id of a button(in this case a link) with jquery and send the id or class name to a php script so I can enter that id or class name in a sql query. I thought that this would be the easiest thing to do, but it has turned out to be the most difficult thing since nothing seems to work. I have on one pag...

intermittant IE problem with jQuery $('#selector').removeData()

I have a form that uses jQuery-UI's selectable plugin to populate a list from a table. My form also allows users to remove single or multiple list items if they change their minds. This function works in IE and Firefox. The list is also automatically cleared and the form reset if the user chooses to download their list. This also works...

How do I merge text and html MVC?

I have two phone numbers and would like to have the Home Phone on one line and Work phone on the other. This is what I have so far... $tr.find('.phone').text($('#txtPropHPhone').val()) + '<br />' + $('#txtPropWPhone').val()); The .html is still not working... How do I fix this? ...

jQuery validation plugin. errorLabelContainer does not work after post back

Hi! I'm using the jQuery validation plugin. I have my form on the master page, i set up my validation rules in one of my aspx pages like this: $("#aspnetForm").validate({ errorLabelContainer: $("ul", $('div.error-container')), wrapper: 'li', onkeyup: false, rules: { ctl...

Set ajax MaskedEditExtender mask by Jquery script in ASP.NET

Is there a way to set Ajax MaskedEditExtender Mask by jquery secript. I'm using asp.net!! ...

Populating and updating an oddly shaped grid (or table) with JQuery and AJAX

Hi all- I have a weird grid with different height columns. By this I mean, column 1 may have 4 squares that need to be filled while column 2 may have 5 and column 3 may have 2. For the purposes of this question assume they are static and the values are as follows: Col | Height --------------- 1 4 2 3 3 5 4 ...

Problem with jQuery and $.ajax when trying to parse JSONP

So, here's my JSONP URL: http://community.tradeking.com/leaderboard.js And here's the jQuery I'm trying to parse it with: $.ajax({ dataType: 'jsonp', jsonp: 'callback', url: 'http://community.tradeking.com/leaderboard.js?callback=?', success: function () { alert("something"); }, }); And here's the error I'm getting in ...

JQuery slide animation reveal div height issue

Hi, I have added a JQuery slide reveal effect to a page which partially shows the main content div (with text, flash and or images) for a couple of seconds then it animates to reveal the full content div. The scripted animation is added to the ".slide" class div on the page which can have various amount of height based on how much text ...