jquery

How to use / combine 2 jquery scripts that use two different datatypes

Tomas has been helping me on this problem and we have made some real progress I think. Here is the modified code. What this is supposed to do is to first, take my query string and pass it to the server where the data is parsed and inseted in the database. When the class method returns a success, the JQ function should echo a 100% css sty...

jQuery idTabs plugin link options

Hi, I am using jQuery idTabs plugin. I want to give click link (href) feature and using default options with this feature. How can I do? <ul class="idTabs"> <li> <a href="#div_1" href="google.com"> Hover call div_1 and Click Call go to google </a> </li> </ul> Note: I am using hover feature > $("...").idTabs("!mo...

ASMX webservice not returning JSON, can only POST using application/x-www-form-urlencoded contentType

I can call my webservice using jQuery IF the contentType = "application/x-www-form-urlencoded; charset=utf-8" This will, however, return the xml: <string>[myjson]</string> If I try to POST to the service using "application/json; charset=utf-8" I receive a 500 error with an empty StackTrace and ExceptionType. My webservice function is ...

.Net Webservice won't take parameters for XML call

For some reason my webservice does not like the data I'm sending it. I keep getting the following error: System.InvalidOperationException: Request format is invalid: text/xml; charset=utf-8. at System.Web.Services.Protocols.HttpServerProtocol.ReadParameters() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() ...

ScrollHeight not updating in IE8 using JQuery

I am trying to append some text (divs) to a scrollable div and then automatically scroll the the bottom. For some reason, when I try to do this in IE8, it is not working. Uncommenting the 'alert' lines show that IE8 returns two values for the ScrollHeight attribute. Does Jquery appends run asynchronously or does the DOM take time to r...

Can I access the href of my ajax request in the javascript of my request?

Here a sample use case: I request a simple form via an ajax request. I want to submit the result to the same page that I requested. Is there a way to access the URL of that request in the resulting request's javascript? Below is some code that accomplishes what I want via javascript AND PHP. The downside to this is that I have to inclu...

Stuck reloading ajax content in a jQuery Tab programatically.

Hello, I'm very new to programming so please forgive me my noobness. I'm using the excellent jQuery tabs for my application, I load external content into the tabs via ajax, and in one of those tabs I need to programatically reload the content of that tab fter a result. I've followed the documentation* to no avail. I have initialized th...

Mouse Over/Mouse Out on DIV

I have the following 3 column layout: <div id="outerwrap"> <div id="innerwrap"> <div id="centerc">...</div> <div id="rightc" style="font-weight:bold"> </div> <div style="background-color:White;height:10px;top:284px;left:0px"></div> <di...

jQuery logic not affecting children inside DIV

I have the following DIV's on my page. I am increasing/reducing the width of the LeftDiv (div id="leftc") on mouse over and mouse out <div id="outerwrap"> <div id="innerwrap"> <div id="centerc">...</div> <div id="rightc" style="font-weight:bold"> </div> <div style=...

Get QueryString values with jQuery

Is there a plugin-less way of retreiving querystring values via jQuery? if so how, and if not what plugin do you recommend? ...

ASP.NET MVC - jquery datepicker

Ok, so I'm new to ASP.NET MVC and JQuery. I have followed the following example to the letter, and I'm not able to get the datepicker working: http://codesprouts.com/post/Creating-A-DatePicker-Extension-In-ASPNet-MVC.aspx Can anyone tell me if there are any ticks or gotchas with this? Bernard. ...

Jquery - mouse over -> fade in/out // click -> opacity 100% // other click -> opacity 60

Hello, Iam working on a website with jquery and thumbnails. When the page is loaded all the thumbnails have to be on 60% of opacity. As soon as you go with your mouse over a thumb it needs to fade to 100%, if you move with your mouse out the thumbnail needs to fade back up on 60% of opacity. When the user click on a thumbnail it have ...

Selecting a group of nodes and wrap in a <div>

I'm trying to write a greasemonkey script for a rather unpleasantly structured page. I'd like to be able to show and hide different entries, but they're in the form: <a name="first"/> <h3>First</h3> Some text.... <!-- end --> <a name="second"/> <h3>Second</h3> Some text.... <!-- end --> I was hoping to be able to wrap these in <div>s,...

jQuery: swap images - almost done

Hello. Overview The user can drag an image from "#products" to "#container". They will fall into the normal flow of elements. All images inside of "#container" can be dragged around in side that container in a grid. In the "#container", If an image is dropped where another image is, they swap places. Problem When I start to move th...

Can I fetch records from MySql database using jQuery?

Is it possible, and how can I go about this? ...

Upload files like in GMail

Possible Duplicate: Gmail like file upload with jQuery I am learning JQuery and would like to know if there are any ways by which we can implement file uploading functionality similar to that found in GMail for attachment (while composing mail) using JQuery? ...

How can I stop jQuery functions interfering with each other?

I have two separate (but similar) bits of jQuery code. They both work, but interfere with each other. How do I properly format these functions to be unique and stop them effecting each other. Code block 1: $('#share-email').click(function(e) { e.preventDefault(); $("#socialbox-" + $(this).attr('rel')).load('<?php echo site_u...

The definitive best way to preload images using JavaScript/jQuery?

I'm fully aware that this question has been asked and answered everywhere, both on SO and off. However, every time there seems to be a different answer, e.g. this, this and that. I don't care whether it's using jQuery or not - what's important is that it works, and is cross-browser.] So, what is the best way to preload images? ...

Check checkbox checked property using jQuery

I need to check the checked property of a checkbox and perform the action based on the checked property using jQuery. For example, if the age checkbox is checked, then I need to show a textbox to enter age, else hide the textbox. But the following code gives false as by default: if ($('#isAgeSelected').attr('checked')) { $("#txtAg...

JQuery drag and drop stops working on certain objects?

Hello all, I've successfully been able to make elements (like div's, panel's, whatever) draggable by using this bit of Jquery: <script type="text/javascript"> $(function() { $(".drag").draggable({ revert: true }); }); </script> This works fine for anything that already exists on the page before page_load is done ...