jquery

JQUERY IE AJAX Success callback not working

Hi, currently using jq 1.4.2 And i have gone through this forum and other forums for a simple fix ... since so many have had this problem..but i have not found anything that seems to work hence i am posting this problem $(".editvolunteer").fancybox({ 'width' : 970, 'height' : 4...

Help with javascript to hide radio buttons

Hi guys, I got this code on here recently <script type='text/javascript'> $('#discountselection').hide(); $('#No').click(function(){ $('#discountselection').hide(); }); $('#Yes').click(function(){ $('#discountselection').show(); }); </script> The aim being to hide a drop down box depending on wheth...

How to persist a jquery sortable tabs and accordion order using cookies?

Hi I've got some jQuery sortable tabs and accordions which I want them to be in the same order whenever the user fetches that page. I was thinking about using cookies to do this. How can I do this? Thanks in advance. ...

Webservice to display products

Hi, Im building a small webshop in .net .The webshop solution will contain several "webshops" that use the same server. My question is this: When i have a product menu and product listing. Will there be any performence problems with using jQuerey Ajax calls to get the selected product/products? There will be many calls to the same webse...

Check if an ajax call/http connection is current active

On my website I use a long polling jquery ajax function. This ajax call in this function has a 50 seconds time-out and then runs again, waiting for changes on the server. However, sometimes the long polling http connection stops. This happens for instance when the internet connection is down, or when the client pc is turn on after sleep...

Create a Adobe gradient picker with jquery and javascript

Hello. I want to create an component like Adobe gradient picker in Javascript and jQuery. I want to use the jQuery gradients plugin. there is a div with 2 markers left and right. when I clicked in bound of div this automatically add a marker, and when I double click on this it open a jQuery color to select a color. Also the marker shou...

IF click OR keydown

In jQuery is there a way of having something like: if (button.click() || (keydown == 39)) { //stuff } ...

Web based ftp client

I want to embed and ftp client into my website , is there ant free web based client availbale , how to do it? ...

Is there a way where I can hold all potential arguments in an array?

Hey again (on a roll today). In jQuery/Javascript is there a way of effectively having this: var myArray = [ 'zero', 'one', 'two', 'three', 'four', 'five' ]; //get input from user if (inputFromUser == anythingInArray) { alert("it's possible!); } ...

Why is CSS Hover Slow In IE8?

Hi there. I have a page with a jstree and/or jqgrid - it really doesn't matter which one I use to show my point, as I suspect it's any hover effect in IE8... Back to point: When hovering over an <a> tag the background-color is changed with CSS. In all browsers, including IE7 (although slightly slower - I'd guess +-300ms) there is no la...

jquery autocomplete restricted max items to ard 300 but it works in ie and others, any solution?

var tags ="s1,s2,...,s1670"; $("#newtag0").autocomplete(tags, { minChars: 0, width: 310, selectFirst: true, multiple: true, cacheLength:1672, max:1672 }); This will work in IE 7 and 8, chrome and safari but in firefox it results only s388 last with no errors.. Means 4096 chars.. Is it browser restr...

JQuery Selector Issue: How to select anything is a child of the current list item.

I'm sure that title is confusing. This is a Wordpress thing. So, I have a list of pages and the structure looks like this: <div id="menu"> <ul> <!--List of pages--> <li class="page-item page-id"> <a href="Page url"> Ham Man </a> <ul class="children"> <li class="page-item page-id"> <a href="...

Run Jquery method when enter key is press

I'm trying to run a method when the enter key has been pressed. This method is already being used by a button. Basically, when the user fills in a text field and clicks a submit button they get a lightbox. What I want to do is run this same action, but when the enter key has been pressed. Ive looked into using .keypress but I can only fi...

Creating a "fake AI" chat program

Hey everyone, I've been creating a little chat bot (for fun and practice). I have the following function which isn't working correctly (FULL CODE HERE): function runAI() { if (i.val().length > 0) { if ($.inArray(i.val(), helloInputArray)) { r = Math.floor(Math.random()*4); ...

MVC RenderPartial jQuery problem with selector (ID).

I have this infoflyout.ascx <%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %> <script type="text/javascript"> $(document).ready(function () { $("#flyoutdialog").dialog({ autoOpen: false }); $('#opener').click(function () { $("#flyoutdialog").dialog('open'); retur...

JW-player Not working in IE.

Hi Guys, I've the following problem, the following code: $link = $_GET['link']; $id = $_GET['block']; echo "<p id='preview". $id ."'>The player will show in this paragraph</p>"; echo "<script type='text/javascript'>"; echo "var s" . $id . " = new SWFObject('" . COMPANY_URL . "/system/addons/player/player.swf','player". $id ."','210',...

jQuery Hide and Show DOM Element

I have the following code: jQuery(document).ready(function ($) { var objModal = '<div id="Modal"><div class="ModalContent"><p>please wait</p></div></div>'; function JS_Utils_ShowModal() { if (!objModal) { $('body').append(objModal); } } function JS_Utils_HideModal() { if (objModal) { $('body').remove(objMod...

Is passing values to javascript/JQuery through the id attribute in tags common practice? Is it safe?

I find myself doing this a lot, for specific properties for animation purposes, and specially when I'm generating something using database values obtained through PHP. Is there a reason not to do this. Some sample code, to clear up ambiguity. This would be the JQuery: $('.class').each(function(){ var my_new_width = $(this).attr('i...

How to call a javascript function on Ajax end response in Asp.net?

Hi, I was wondering if it was possible to call a javascript after the button click has done its thing in asp.net 3.5 I have a script manager in master page and a button in the content page. The button just populates some repeater in a div with some data and I am setting the div's visibile=true in codebehind (the div is runat=server) th...

Javascript - Cancel onload event

var town_imgs = $('.town_img img'); var container; var imggg town_imgs.hover(function(){ container = $('<div class="town_img_thmb">' +'<span class="thmb_container ajax2"></span>' +'</div>').appendTo($(this).parents('.town_wrapper').find('.thmb_wrapper')); var imggg = new Image...