jquery

Jquery image preview plugin issue...

I have a problem with an image preview that comes up when you hover over a thumbnail. I can change the distance between the preview and the cursor, but if a thumbnail is close to the side of the window, the preview cant fit and you only see part of it.. hope that makes sense... is there a way to make it so that if the preview doesnt fit...

jQuery form serialize - empty string

My html: <script type="text/javascript"> $(function() { $("#bt1").click(function() { var f = $("#form1"); var formData = f.serialize(); alert(formData); }); }); </script> <div id="div1"> <form id="form1" action="/Home/Test1" method="post" name="down"> <d...

How to load ASP function via jQuery hosted in an ASP.NET MVC project?

I'm upgrading a classic ASP application. This app has a few old unmanaged DLL calls and some complicated logic inside the asp page/function. Is it possible for me to put the .asp file into the ASP.NET MVC app and then load the result using $.get? I try putting the .asp file straight into the Scripts or Models folder but I couldn't load...

Javascript global variable not working properly?

My jQuery code: $(document).ready(function() { chrome.extension.sendRequest({get: "height"}, function(response) { height = response.value; }); $("#id").css("height", height+"px"); }); You don't have to be concerned about the chrome.extension.sendRequest(), basically it communicates with a background page to fetch ...

.delegate equivalent of an existing .hover method in jQuery 1.4.2

I have an event handler bound to the hover event using the .hover method, which is below: $(".nav li").hover(function () { $(this).addClass("hover"); }, function () { $(this).removeClass("hover"); }); It is important to note, that I require both functions within the handler to ensure synchronisation. Is it possible to rewrite ...

browser compatibility

Hi, How can i check which fuctions of javascript the browser support which i am using.It can be any browser. Thank you in advance. ...

jQuery select not working in IE7

Hi there, I have a jQuery select which works in most browsers axcept IE. The code is as follows; <script type="text/javascript"> function parseCatSelect() { $('#d_cat select:empty').parent().html('<p><span class="placeholder">No categories available</span></p>'); $('#d_cat select').attr('name', '...

Use jQuery to show a div only when scroll position is between 2 points

Hi, I'm trying to work out how to get a div (#tips) to appear when the user scrolls into the 2nd quarter of its containing div's height (#wrap), and then have it disappear when the user scrolls into the last quarter. So it would be like this: 1st quarter - #tips is hidden 2nd quarter - #tips is visible 3rd quarter - #tips is visible ...

Jquery event calendar

Please help choose jquery event calendar (or other good javascript event calendar) and how to add events.. but no jquery full calendar because I'm interest in like (short month view) http://jqueryui.com/demos/datepicker/#inline http://keith-wood.name/calendarsPicker.html but it's datapicker not event-calendar... ...

IE7 jQuery Accordion: when I click on header, content is not visible until hover over it..

I had to create a jQuery-accordion for a form. It works as it should on FF3, Chrome and Safari, even on IE8. But when I view it in IE7 there is this weird bug: I click on the accordion-header and the accordion opens, but the content is not visible. When I hover over it though, it shows up. It has no validation errors nor javascript error...

How to delete the first child of an element but referenced by $(this) in Jquery?

The scenario is I have two Divs one is where I select items (divResults) and it goes to the next div (divSelectedContacts). When I select it I place a tick mark next to it. What I want to do is when I select it again I want to remove the tick mark and also remove the element from divSelectedContacts. Here is the code. $("#divResult...

JQuery: Read each line of an element

Hello, Suppose I have this html markup: <div id="wrapper"> <pre class="highlight"> $(function(){ // hide all links except for the first $('ul.child:not(:first)').hide(); $("a.slide:first").css("background-color","#FF9900"); $('ul.parent a.slide').click(function(){ $('ul.parent a.slide').css("background-col...

random quote generator with php, ajax and mysql

i've tried using this code and this to make a random quote generator, but it doesn't display anything. my questions are: what is wrong with my code? in the above tut, the quote is generated on a button click, i'd like a random quote to be displayed every 30 mins automatically. how do i do this? //////////////////////// quote.html: ...

selecting a select list in jquery

There has to be something really simple that I am overlooking, but for some reason I cannot find any information about this and it keeps coming up so.. I am trying to select a select element in jquery. Right now I don't care about it's options, I just want the select element. If I have the following element: <select id="testSelect"><op...

Div that appears behind other. How to avoid that behaivor?

Hello there... I'm using JQuery for this. The problem is that, when I drag an object from the side bar, the DIV that I'm dragging appears behind the main area, thus it looks really bad. I took a screenshot of the problem: http://i.imgur.com/Xu4GM.png The div I'm dragging has this CSS: .reporte_arrastrado{ width: 150px; height:...

How do I "rebind" the click event after unbind('click') ?

I have an anchor tag <a class="next">next</a> made into a "button". Sometimes, this tag needs to be hidden if there is nothing new to show. All works fine if I simply hide the button with .hide() and re-display it with .show(). But I wanted to uses .fadeIn() and .fadeOut() instead. The problem I'm having is that if the user clicks on ...

Problem with jquery ajax form on Codeigniter

Everytime I test the email is send correctly. (I have tested in PC: IE6, IE7, IE8, Safari, Firefox, Chrome. MAC: Safari, Firefox, Chrome.) The _POST done in jquery (javascript). Then when I turn off javascript in my browser nothing happens, because nothing is _POSTed. Nome: Jon Doe Empresa: Star Cargo: Developer Email: [email protected]...

Rename "Event" object in jQuery FullCalendar plug-in

GREAT PLUGIN!!! BUT... choice of word "Event" to mean a "calendar entry" was particularly unfortunate This is a wonderfully well-written plug in, and I've really impressed people here at work with what this thing can do. The documentation is astonishingly thorough and clear. Congratulations to Adam! HOWEVER, this plug-in refers to ent...

How to escape regular expression in javascript ?

My codes is like pattern = 'arrayname[1]'; // fetch from dom, make literal here just for example reg = new RegExp(RegExp.quote(pattern), 'g'); mystring.replace(reg, 'arrayname[2]'); But it just cannot get running with error message says: "RegExp.quote is not a function", am i missing something simple? ...

this fadeIn / fadeOut jQuery code crashes my browsers- Why ?

I created this code for a conference website that I had been tasked to do. It is a simple fade in and out loop using window.setInterval. I've tested it on firefox, safari and google Chrome. The first 2 just stop responding after awhile, while google chrome gives me a note saying that the script uses too much memory. Which part of my scr...