jquery

How to get method of form using javascript or jquery when we submit a form ?

How to get method of form using javascript or jquery when we submit a form at client ? ...

Load links in a CSS frame?

I am using this script to load pages in a css frame (div#maincontent). I want the links in the loaded pages to load in this frame instead of just "going" there. I want to do this using jquery. Here is my attempt: $('#maincontent a').click(function(e) { e.preventDefault(); ajaxpage($(this).attr("href"), 'maincontent'); }); ...

Concatenate Server Side Code in Jquery

$("#Selection").change(function () { var text = $("#Selection option:selected").text(); alert(text); var valueSelected= this.value; alert(valueOfLanguage); var url = 'OpenServerQuote Html.SelectorLink("' + valueSelected+ '", "[' + text + ']", "' + text + '", null) CloseServerQuote'; var hrefValue = $(url).attr("h...

How to get table value with jQuery, run PHP function then append result to table.

1: I'm loading a table onclick as follows: $(document).ready(function() { $("#myTable").tablesorter(); $("#ajax-append").click(function() { $.get("get_data.php", function(html) { $("#myTable tbody").append(html); $("#myTable").trigger("update"); }); return false; }); ...

Jquery Sortable - Disable onlick="" while sorting

Hi all, is it possible to disable onlick="" while sorting? i created a working example here -> http://www.jsfiddle.net/V9Euk/59/ greetz from germany Peter ...

Public Rating script, allowing 1 submission per visitor

Hi everyone, I've written a .NET/jQuery rating script that allows users to rate a particular product. Everyone that visits the website can rate, but I'd like to only allow 1 rating per visitor. So far I've considered the following options. 1: Store the users IP address and only allow 1 submission per IP. Of course, this would mean t...

passing a variable from jquery to php with page refresh

Hello, i got a question, how do you pass a variable from jquery to php with a page refresh. When i click on a button from my menu i would like to pass a variable from jquery to php but because the page refreshes i cant catch it in php, anyone know how to catch it even when the page refreshes? tyvm ...

jQuery for each

I have a jQuery variable like this: var variable = $j(this).val(); Where $j(this) is the "numeric" value of a select option. What I want to do is loop through the variable value i.e do something once,twice etc, based on the value of the variable. A bit like this: $j.each(variable, function() { do something }); But it does not ...

selecting a char in jquery

Hello everyone, I got a question, <a id="shoppingLink1" href="?page=bestellen&amp;action=add&amp;id=2"> <img src="images/shoppingcartButton.png" class="shoppingButton" alt="shoppingcartButton" title="shoppingcartButton"/> </a><br/> in jquery, when i click on the shoppingButton i would like to select the last character from the id ...

How to send value of textfield using onClickTopics struts2 jquery plugin

Hi all, I'd like to send my textfield value when onClickTopics of one button. This button will reload the data from Jquery grid, but before reloading back bean of struts needs to compare few values from textfield. This is my button tag: <sj:a button="true" onClickTopics="submitSuccess" indicator="indicator" targets="result">Tampilkan</...

asp.net mvc and jquery datepicker ui data fetch on clicking on specific date

I'm using the jQuery UI datepicker to display the daily exchange rate. I have four textbox, the first for displaying today's date, and the others for displaying the dollar rate, buying rate and selling rate. The dollar rate is fixed and is set to 1. The buying rate and selling rate are updated daily and inserted into exchange rate table ...

jQuery: fading in modal dialog

hi all, is it possible to smoothly fadein a jquery modal dialog? (can't find anything in the docs). i've tried fadeTo but didnt help. thanks in advance ...

How to make a load response have several conditions in it?

Hi there I have a function function preloadImage() { varLink=".... link to my picture..." $("#picture").attr("src", varLink).one("load", function() { // This is called after the image is loaded }} Now I call this function many times in my jquery script. But I need it to call different functions after the image is loaded. Is there ...

Populate form by link click before posting with jQuery

Hey, I'm building a small website with JQTouch and the first problem I've run into yet is with a form. I have a form <form action='action.php' class='jqt' id='ajax_post' method='post' name='pform'> (where the name attribute is there when I tried to access it with document.pform)and within it is a ul list of a elements as follows: ...

Tipsy with jQuery UI in IE error on 189

Hi, I have a problem with jQueri UI (only draggable and core) and Tipsy http://onehackoranother.com/projects/jquery/tipsy. When I hover on text, where is Tipsy set, in IE show error on line 189 in jqueri-ui. I dont know, how it debug. Thanks ...

JQUERY Simulating Press the TAB key after User clicks on a DIV

Hi All, When I click on a DIV I need to press the TAB key (in order to go from one input field to the next one). I tried this code but is not working: $("#change_logo").click(function() { e = jQuery.Event("keydown"); e.which = 9; // This is the ID of the input where I want to simulate the "Press TAB Key" // and then I wil...

jquery update table with load

Can anyone help fix the code below... I'm loading data into a table with three columns using the code below into a table on clicking a link (This part works fine by itself): $(document).ready(function() { $("#myTable").tablesorter(); $("#ajax-append").click(function() { $.get("get_data.php", function(html) { ...

Works in Firefox but not Chrome or Safari using jQuery Load

Hi, UPDATE I have now managed to get it working in both Firefox and Safari on Mac OS X but for some reason, it's still not working in Google Chrome 5.0.375.125. Could it possibly be related to this thread in the jQuery forums about Google not working properly on a file system url but will work when hosted on a server, i.e. see: jQuery...

jqueryui accordion disable specific according tab

hi i am trying to make a wizard for first time i want to disable all accordion tabs when i click on the link it enable next tab and open it.. i hve this code but it disable all tabs :( thanks $(function() { $("#list1a").accordion({ autoHeight: false, navigation: false }); }); $("#list1a").accordion("disable"); $("#list1a"...

jQuery: question about image preloading

hi, i built my own form-script and would like to preload a "loading"-icon which shows up when hitting the submit button. i'm using this code: var icon = $('<img />').attr('src', 'images/status.gif'); my question: will the image be cached + show up immidiately also when using jQuery for creating the icon's html-markup? like: statusD...