jquery

not able to receive POST data in php file

UPDATE this is the screenshot of the alert: i am using the following JQuery function to successfully POST data to the user_submit.php file, its just that the php file is unable to receive the data. $(function() { $("#submit_js").click(function() { $.post("user_submit.php", { comment: $("#comment").val() }); }...

jQuery Nested Tabs first tab doesn't work until you click it

Using this bit of code to create tabs and nested tabs works great except for the very first nested tab will not work unless you click on one of the other nested tabs then click back to the first one... Any ideas? jQuery.fn.tabs = function () { return this.each(function () { var ul = jQuery(this); ul.find('a[href^=#]').each(...

jQuery Content Slider Auto Scroll

I have used the code from brenelz.com/2009/03/31/build-a-content-slider-with-jquery/ tutorial and have a functional content slider. I now would like the content to auto slide and have tried using javaScript setInterval(). I have been unable to figure it out. Any help would be appreciated. (function($) { $.fn.ContentSlider = function...

How to Obtain Whole JSon file posted along with $.post in Asp.net

Hi Everyone, I am posting json data to the asp.net server page along with the $.post method. But Is there any way to obtain whole data and convert it into anon object. This is jQuery Code : var RegisterUser = function() { var _username = $("#username"); var _password = $("#password"); var _email = $("#email"); var _fir...

jQuery sum values from items above

I have small problem. What I want to achieve is adding sum of values from above elements to each one. For example every position have got it own time value hidden in attribute. I can get it by using jQuery var time = $(ui.draggable).attr("time"); now we got 4 positions with time as follows: 432 sec 123 sec 5634 sec 654 sec Now I ...

Change hash without reload in jquery

Hello, I have the following code:- $('ul.questions li a').click(function(event) { $('.tab').hide(); $($(this).attr('href')).fadeIn('slow'); event.preventDefault(); window.location.hash = $(this).attr('href'); }); This simply fades a div in based on when you click but i want the page url hash tag to change when you click so people...

JavaScript: What is the performance gain by optimizing Name Lookups?

The company I work at bought us (or rather me) the jQuery Cookbook by O'Reilly which I am reading from front to back. Now I am at 5.13 which talks about Name Lookups. It claims that given the right circumstances, code which is optimized regarding Name Lookups can have an up to 70% performance boost. In one very situational example, it cl...

How to load external css, js and append a div to the DOM from a bookmarklet?

Hi, I'm trying to build a bookmarklet that does the following: 1.)loads an external js, located on my server (done) javascript:function%20loadScript(scriptURL)%20{%20var%20scriptElem%20=%20document.createElement('SCRIPT');%20scriptElem.setAttribute('language',%20'JavaScript');%20scriptElem.setAttribute('src',%20scriptURL);%20document....

jQuery autocomplete, and returning key for entered value.

Hello. I am using jQuery autocomplete from here : http://www.pengoworks.com/workshop/jquery/autocomplete.htm $("#TestTextbox").autocomplete( '<%= Url.Action("LookupAction") %>', { delay:10, minChars:1, matchSubset:1, cacheLength:0, on...

jQuery - selector problems in hiding tab content

I'm having trouble hiding the contents of some divs in a pseudo-tab set up - my code is at http://rudderlive.bito.org.nz/employment%5Fdev2.asp Tab 1 to Tab 2 works fine, but moving from Tab 2 to Tab 3 does not hide the div of Tab 2, and moving from Tab 3 back to Tab 1 doesn't hide the Tab 2 or 3 divs. My code is as follows - but it mak...

Jquery returns NaN,any idea?

HTML code: <form id="hostadd" action="addmoney.php?taskid=12" method="post" onSubmit="return false"> <input type="hidden" name="mode" value="" /> current unit price:$ <input id="unitprice" name="unitprice" type="text" size="5" maxlength="6" value= 0.50 />&nbsp Shortfall:<input id="shortfall" type="text" name="shortfall" size="4" ma...

show google map markers with php

Hi everyone! Im working on a google map project where the user can type in a address and gets the result of nearby restaurants ploted on a google map. So far no problems. I've created a ajax call where the backend outputs and xml and then with jquery I create the markers. But now to my problem. With this ajax solution anyone can ea...

Text shows under the overlay for Jquery Tools Overlay in IE 7

Link : http://designbracket.com/ . Click on Our Services and the links under it. I have used Overlay of Jquery Tools to display overlay when any link is clicked. This is a drupal site . The problem is that though the overlay is opening as expected however the text is appearing under it in IE 7 while that does not happen in FF or Chrome (...

Making Table Row Clicks Fire Hyperlinks in jQuery

I have a table of 5 rows and 3 columns. The first column has a hyperlink in it with a target=_new. I want things such that when I click any column in the same row, it fires that hyperlink and a new window opens up via the target=_new. Is this possible in Javascript or jQuery? I found I was able to access the href, at least, by doing this...

Can I use PHP to grab external XML file for use by JQuery?

I am trying to load Google custom XML search results into a PHP page and then manipulate the XML using JQuery. I understand that I can't use javascript to grab the XML file as it's on an external domain but can I use PHP to grab the XML from the server and then make it available to JQuery as an XML file, or other DOM structure, so I ca...

JQGrid: Dropdown for selecting items from a foreign table - DataValueField vs DataTextField

Suppose Items and ItemTypes have numeric primary keys ItemID and ItemTypeID. Each Item is assigned an ItemType. I have a JQGrid to edit Items. When not in edit mode, I would like to see the name of the ItemType, not the ItemTypeID: TYPE | TITLE -----------+-------------------- Category A | Item 1 Category A | It...

How to reload a html page when your code changes

I remember watching a jquery demo by John Resig. He had a browser application that reloaded live while he was coding. I think he did not even have to save his code changes for this to happen ( see 3:40 in the video ). This is the video: http://vimeo.com/116991 I find this really cool and think this can be really useful and fun while...

integrating Geogoer VChecks Plugin

Hi, I’m integrating Geogoer VChecks Plugin into a page ( http://www.vaziuojam.lt/js/geogoer/jquery%5Fplugins/vchecks/index.html). The plug-in restyles a column of check boxes. When user changes a checkbox I would like to display the checkbox value like this: <script> $(document).ready(function(){ $(":checkbox").click(function(){ ...

Custom css select boxes using jquery

Hi all, I'm using this script http://mondaybynoon.com/2009/02/23/creating-custom-form-elements-using-jquery-selects/ to create custom css select boxes in my page. Javascript code that is used to apply the css styles on selectboxes, uses their id as a parameter: $(document).ready(function() { $('#cont').selectbox({debug: true}); }); <...

How do I determine an HTML input element type upon an event using jQuery?

Given the following sample code: $(document).ready(function(){ $(":input").blur(function(){ alert("The input type is:" ); //How would this look?????? }) }); How can I detemine whether this is an input, select, text, etc? This is not a real-world example but should suffice for the purposes of this question ...