jquery

zend, php session, jquery ajax problem

Here is what happens to some users of IE8 when using the website i am responsible for: person logs in, credentials are verified, zend auth is created. After login, user is redirected to the default page. the default page has 5 ajax request that start on document ready. The ajaxes somehow don't have the php session in the request and r...

Hover Effect,Jquery,what is the error in this jquery?

Hi Friends i was using the following jquery,but it is not gaving an output what is the error in the code? $('.event').hover(function() { $('.popupbox1').show(); $('.popupbox1').css({position:'absolute',top: $(this).offset().top - 15 +'px',left: $(this).offset().left + $(this).width() +25 +'px',zIndex:1000}); ,function() { $('.popu...

Is there a way to fire over events ignoring z-index ?

If I have something like this: Is there a way to fire the mouseover events on BOTH divs? Edit: Sorry all .. I tried to simplfy the problem so it was clear to understand and I forgot to mention I have more than 100 divs like that so probably those solutions don't work. I'm going to see if I can adpat them. Many thanks everybody anyway...

jQuery binding data with view

I'm writing an app that is a 'power meter' of sorts where I show a list of 'locations' in the navigation that have a power rating associated with them, and a gauge that aggregates this information. Locations can be nested. Clicking a location changes my app's 'state' and loads its child locations into the nav. Clicking back takes user ...

jQuery remove() issue with IE

I'm having an issue with jQuery's remove() method in IE. It's removing the element, but not entirely: it's leaving the last 2 closing tags. I'm using ASP.Net Web Forms. In the page, we're using a 3rd party widget, which is a Javascript include. Part of the 3rd party widget is a search box and button inside of a form. (Everything in the ...

Can I use JavaScript to generate an RSS (XML) page?

I'm looking to retrieve JSON (from a third-party website) and convert it into a valid RSS/XML feed. Is this possible? Can RSS readers read pages that are basically only javascript generating a web page? Are there other options to convert a JSON web page to RSS? (ie. retrieve the JSON using an HTTP request and then return valid RSS) ...

Submitting form with enter

Is there anyway I can submit a form without a submit button, but only when the user press the Enter button? Kind of like when commenting on Facebook, you have the TEXTAREA but no submit button. Once you press enter the form submitted with Ajax. Thanks, Joel ...

How to reset toggle in jQuery?

The menu structure I have is given below. The necessary requirements are: Each li must be a toggle where it can be selected and deselected for items 1-4. Multiple li's can be selected between the range of 1-4. So a user could select Item 1 & Item 3 and their background would both be highlighted. Upon hovering over any of the Items a...

Function to remove background-images for an element and all its children via javascript

I would like to remove all CSS background images for a given element and all of its children with Javascript. This question is sort-of a spin off on another question I asked. The end goal is the same, to skin jQuery UI widgets. I am currently using jquery/jquery-ui if any of would use these to solve the problem. Any ideas? bonus: ...

jQuery Image Slider - Performance issues

Hello I'm currently building a simple "jQuery Image Slider" but it does not work as i hoped. It's incredible slow and unresponsive, and the last image does not do anything. URL: http://fusionmedia.dk/jquery/ What is the problem? Thanks in advance ...

Default cursor to search bar on page open

I have recently made a new homepage for my company so that employees can access various cloud services such as fleet trackers etc easily. I also put a google search box on this page so that users would not feel the need to switch back to a search engine for their homepage. I achieved this by using this form. <form method="get" action=...

PHP/JS : Preventing doubleinserting with function

Yes im having a issue i thought i didn't have. When you submit it runs a javascript function, that runs an ajax call. This function have this right under it´s name(first line in the function): $('#submitWall').attr('disabled', true); This works very well, but not so well for the faster humans...I tried to click/pressing enter really...

anonymous callback function in .animate() not working

I can't for the life of me figure out what the problem with this code is. The animation itself works fine: if (!list.is(':animated')) { list.animate( {"top": "+="+item_size}, {queue:false, duration:speed}, function() { alert(); } ); // end of animate function } //end of if statement ...

Implementing "Preview" functionality in asp.net mvc

Hi All, I am using ASP.NET MVC and jquery. I would like to implement preview functionality to a form. i.e. I have a form with number of fields for example name, address etc.. Before the user submits the info, he/she can preview it as to how it will appear on the site. Could any one please point me to right direction as to how I could im...

Passing Array to Action from a $.post

I am having trouble passing my array via a $.post. The Javascript var privIDs = [1,2,4,5]; $.post("/Home/GrantPrivilegesToUser", { privilegeIDs: privIDs }, function (data) { alert("Data Loaded: " + data.success); }); The Action public ActionResult GrantPrivilegesToUser(int[] privilegeIDs) { return Json(new {success...

asp .net mvc ajax submit

Hi, I am facing a problem that's driving my crazy for sometime. I have an asp .net mvc page(.ascx). This view has a form which can be ajax submitted to a controller action. I have an ajax submit button that posts the form. In the view I have some if conditions as follows If(Model.SampleID.HasValue) { alert('sample created');...

After jquery post I can't read form values with coldfusion

I have a jquery post: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <script type="text/javascript" src="./js/jquery-1.4.3.min.js"></script> <script type="text/javascript"> $(document).ready(function() ...

how can I drag nested UL's in jQuery's UI?

I have the following setup: <ul class='_lscolumn'> <li>column1 <ul class='_lswindow'> <li>window1 <ul class='_lslink'> <li>link1</li> <li>link2</li> </ul> </li> <li>window2</li> <li>window3 ...

Why do images need to be surrounded in div/span elements for effects to work properly?

I don't particularly understand why an image would work in a span, but not by itself. See complete example here. JS $(document).ready( function () { $('#banner').hover( function(event){ $(this).children().hide("slow");} , function(event){ $(this).children().show("slow");} ...

Distributing jquery licence in commercial software

I’m building a commercial web application that uses jquery. I think I need to use the MIT licence for jquery because the application is commercial. When I looked at the MIT licence in Wikipedia it says: “It is a permissive license, meaning that it permits reuse within proprietary software on the condition that the license is distribute...