jquery

.getScript getting the redirect url of javascript

I d like to execute a remote javascript which redirects the user to another page on my domain with data that s passes as query string. I want to get this data which is passed on to the page on my domain. $.getScript('http://site.com/foo.js', function() { //foo.js redirects to another page on my domain with data ...

How to incorporate sound into a Javascript-based website without resorting to Flash programming?

Everything about this website affirms my decision to develop interactive websites with javascript and not flash. But one question though, how they do they incoporate sound effect into it? I check the page source and it's not HTML5. Source: nissanusa ...

I am having trouble using jquery to submit a form. It was working before;/

When a user clicks a link it uses jquery ajax to submit a form to go to paypal. It is not working for some reason. I appreciate any help. The HTML link: <a href="#" onClick="javascript:go_paypal();">Paypal</a> The JS function: function go_paypal() { data = 'req_paypal=1'; $.blockUI({ message: '<h1> Going to Paypal...</h1>',css:{ba...

Codeigniter + ajax(jQuery) session problem

Hello, I have a problem in server side retrieving session with using ajax post request. Here is my sample code: JavaScript: $(function() { $('.jid_hidden_data').submit(function() { var serialized = $(this).serialize(); var sUrl = "http://localhost/stuff"; $.ajax({ url: sUrl, type: "P...

What's the best choice for developing real time form validation in ASP.NET

I want to make a real time form validation in asp.net form in which when i lost focus a field it show an error or success of field entrance data i search for best way to do that .. and if i want to do the same by validating data from SQL Database ... what's the best choice for doing that ? ...

Applying JQuery UI css to a textarea element

Hi. I'm using JQuery UI for a web based development at the University. I got some forms that I put into a dialog, so I got elements like <label for="name">ID user</label><input type="text" name="iduser" size="15" id="iduser" class="text ui-widget-content ui-corner-all" maxlength=12 /> But I got some textarea elements like <label fo...

What is the correct way to create dynamic javascript in ASP.net MVC2?

I'm creating a Google Maps partial view/user control in my project that is passed a strongly typed list of objects containing latitude and longitude values. Currently, this is the code I have for the partial: <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Project.Models.Entities.Location>>" %> <!-- Place...

jQuery class selector oddness

I'm using jQuery to change the background image of a button depending on the class associated with it on hover. It only works if I put the hover statements in separate functions, however. Why is this? Here's the NON working code, always evaluates to the .submit hover statement, even when that class is removed via the keyup event. ...

jQuery tools tabs fade effect

Hi guys, I used jQuery tools to create a tabs setup, and I would like to incorporate the fade effect, but when I try to do so, it bombs out, here is my code: $(function() { $("#flowtabs").tabs("#flowpanes > div", { history: true, effect: 'fade' }); }); I am assuming that it's because I am also enabling the tabs history? I am kind...

Single-Sign-On ASP.NET MVC

Hi Guys, We are trying to build a cross-domain single-sign on solution using ASP.NET MVC. Any existing solutions or tutorials available ? ...

jQuery jScrollPane - it simply won't work! :'(

Hey folks, OK - I'll admit, I'm quite a beginner in this jQuery-department. I've probably made some amateur mistake, but hey, you gotta learn somewhere! :) So I'm using jScrollPane: http://www.kelvinluck.com/assets/jquery/jScrollPane/jScrollPane.html I want to use it style the scrollable area in my second column. Specifically, I would...

When a li is appended, does it not become a part of the ul "for real"?

I have right now this code: <ul><li class="listitem">text<li></ul> jQuery: $('.listitem').click(function() { $("#elname").text($(this).text()); $('#slists').css('visibility','hidden') $('#elname').css('visibility','visible') $('#elname').css('display','inline-block') }); This is supposed to hide a div and it does,...

I want to create a simple function to reset all input values without target input. (Javascript, Jquery)

Hi, I want to create a simple function to reset all input values without target input. I don't know how i can do it. Thanks. Edited: The function resets all of input values. I need to save/catch the target value. Here is my sample codes: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"&gt;&lt;/script&gt; <...

Possible defect with jQuery ':checked' selector (finding checked checkbox when there are none)

Found a strange thing. The following code is supposed to set a default value for a UI element based on whether one of a group of checkboxes (all having attribute name="privacy") is checked (in say, a form postback). If there is no value in the HTML sent by the server (the form is not a postback), the default value should be firstMenuItem...

jqModal dialog - only displaying once

I've got a jqModal dialog with the following code: $(document).ready( function() { $('td.item.active').click( function(e) { $(this).append( '<div class="new">&nbsp;</div>' ); $("#jqModal").jqm({ modal:true, onHide: function(e) { e.w.hide(); // Hide window ...

filter lists that are split by easylistsplitter.js?

Hi Everyone, At my site - jasondaydesign.com. I'm using easylistsplitter.js. I designed it this way, because I actually wanted a masonry.js style layout but I couldn't find a way to filter divs. So I made the switch to lists, and found a plugin that allowed me to have a masonry style layout. Unfortunately, I have tried several list fil...

jQuery autocomplete that retrieves items from a database

I want to provide autocomplete for users when they are filling in a text box. The values for the autocomplete should come from a mysql database that I use with the application. Can you please recommend a plugin or two that would be best suited to this. I can see that there are a number of options out there. But I was hoping that based o...

ckeditor using ajax

I am preparing a script. I am using AJAX(load()) with jQuery. I am getting a page which includes textarea with ckeditor by load() jQuery AJAX function. Although I include ckeditor's.js file, loaded page doesn't includes javascript file and shows a normal textarea without ckeditor. How can I load file which includes textarea with ckedi...

Jquery Iframe textbox

I am new to Jquery, In fact, I have 0 knowledge using JQuery. I am trying to get something to work using JQuery. I have a html page with an iframe. The iframe page has a form in it and a textbox in it. The Iframe is actually created by another jquery function and is inside a div. Now, when I click a link on the main page, I want the t...

JQUERY POST, UI to show if status is "saving" "still saving" "error" "complete"

I have a JQUERY Post call which is posting critical data to the server. Which if isn't posted successfully, results in a huge loss of important data. I have a save banner UI show on the page before the JQUERY POST, after the JQUERY Post it has the Save Banner go away. I'd like an inbetween state, where if the save is taking longer than...