jquery

JQuer Ajax GET basics

Hi folks, me again - sorry - I am trying to "teach myself" with help here some basic Jquery Ajax so far so good, but .. no offence to people sometimes the answers are very specific to requests - great, but may not be as helpful to others as certainkly a quick google search can get complex. I have got a lot, but it is the simple things t...

security warning for javascript and css file?

Hello everyone, I am using SharePoint Server 2007 Enterprise with Windows Server 2008 Enterprise. And I am developing using VSTS 2008 + C# + .Net 3.5 + ASP.Net + javascript (jQuery). I met with the following security warning in browser (at the top of the page in IE) when browse a page -- "An add-on for this web site failed to run. Chec...

asp.net Button event inside jQuery FaceBox

I'm using jQuery FaceBox to show a textbox, a dropdownlist and a button. The user can write a text in the textbox, select a value in the ddl abd hit the button. This fires some code in the codebehind. The FaceBox shows fine, and the content in it is also ok. Also, the button event is fired. This is the code for the button event handler: ...

Explorer and FADING IMAGES IN OVERLAYING DIV'S problem

Hello! Why isn't the overlaying image (in nested div) fading along with the parent div? Problem only in EXPLORER.. See the 'recent' labels on the portfolio items: My website Switch category's in the navigation to see that the 'recent' labels don't fade in Internet-Explorer This is the html: <div class="art recent"> <div class="re...

file:// and spaces in filenames

I've been debugging a curious issue with file paths in an instance of IE embedded in my application. I have the following JavaScript/jQuery: <script type="text/javascript"> function foobar(src) { $("img").attr("src", src); } </script> And my DOM contains a single img tag: <img src="loading.jpg" /> I have the following three link...

jquery slide show - why does this code work?

I was in the middle of coding a slideshow in javascript using jquery, when I ran into something that was doing what my several lines of code was doing in a couple lines. Problem is, I don't comprehend how it works so I can modify it. var imgs = [ 'image1.jpg', 'image2.jpg', 'image3.jpg']; var cnt = imgs....

how can i reuse progressbar that is created by jquery in a div

I want to use the same progressbar multiple times that is crated by jquery in a div. So how can i reinitiate the progressbar. ...

Parsing JSON with JQuery

Hello, I have some JSON that looks like the following: [{"Age":35,"FirstName":"Peyton","LastName":"Manning"}, {"Age":31,"FirstName":"Drew","LastName":"Brees"}, {"Age":58,"FirstName":"Brett","LastName":"Favre"}] This JSON is passed into a function I have created called parseJSON. This function looks like this: function parseJS...

parent element id

hello - can't get the parent id of the list the item is dragged into. I can get the items' id easily enough and thought i could get the parent from that but can't seem to grab it! <li id="tag_772" class="tag tagAssigned ui-draggable" >adventurous briefs</li> is the li dragged in. Any help much appreciated! $("li.tag").draggable({ ...

JQuery Ajax basic question

Sorry folks but I asked a question earlier and perhaps did not explain myself very well at all. I answered the question myself to prevent further replies and hopefully to reset the question in a more basic format, as none of the answers worked/explained to me, stress to me, how to do it. There were 4 totally different answers to one bas...

Changing name attr of cloned input element in jQuery doesn't work in IE6/7

This SSCCE says it all: <!doctype html> <html lang="en"> <head> <title>Test</title> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"&gt;&lt;/script&gt; <script type="text/javascript"> $(document).ready(function() { $('#add').click(fun...

jQuery: fade div in and out multiple times.

I have a div at the top of a page that I would like to fade in and out 3 times. I found a question/answer already that shows how to fade with an infinite loop by putting the fade effects in a function that calls itself, but I was wondering what the best way to specify a finite number of fade cycles. So far, this is what I have (stolen fr...

How to profile JQuery/JQGrid

I am using JQGrid component for displaying ajax tree grid. With some quantity of data (tree with 200 branches, 2-3 items in each) - the grid begins to freeze in FireFox. Then I get a window asking whether to stop the script or continue. What is the prescription to debug and resolve this? I can debug my code, but I am not sure how to deb...

JQuery - grab the td value next to radio button

Hello, I have the following dilemma: My HTML is as such (this exists within a PL/SQL app.): <table id="search_result_table"> <tr> <input type=radio name="pv_select" value="'||lv_spriden_id||'"/> <font face="Calibri" size=3><td id="spriden_id" name="spriden_id">'||lv_spriden_id||'</td></font>' <font face="Calibri" size=3><td id="la...

Using jQuery to Grab Content

Hello, I'm trying to pull a couple variables from the following block of html. If you wouldn't mind helping, it would be greatly appreciated! <div id="services"> <div id="service1"> <div class="left"> <img alt="Service Picture" src="/images/service-picture.jpg" /> <h2 class="serviceHeading">A Beautiful Header...

IE8 Toggle Bug?

I think I have an issue with IE8 and it's driving me nuts. let me explain it with images and an online demo. When you first visit the page it's all normal as you see below Then when you click to the "Click here to add new one" button.. it displays a div that includes a form... untill now it still works fine as you see below... Whe...

Excel PMT function in JS

Hello! I found i little snipet on internet, about PMT calculate. function PMT(i, n, p) { return i * p * Math.pow((1 + i), n) / (1 - Math.pow((1 + i), n)); } function CalculatePMTFromForm(idLoanAmount, idAnnualInterestRate, idMonths, idResult) { var i = jQuery('#' + idAnnualInterestRate).val() / 1200; var n = jQuery('#' + idMonths).v...

Problem with nested jQuery sortable lists when using toarray

Hi I currently have a sortable UL wih multiple LI's, each one of which may have a a sortable UL within it. I can sort the nested ULs fine using sortable( 'toArray' ). Each LI has an ID which I can read back on the server to determine the order. The problem is that this just not work on the outer UL, as toarray picks up every LI, includin...

Using jQuery to target a specific link in the navigation

I am working with a dynamic navigation and need to be able to target one specific link to open in a new window. I need some help with the jQuery to do this. For example I would like to be able to target the navigation item of Education which has a link of http://www.foo.com/education and have it open in new window when I click on it. ...

JQuery Dialog: How to do partial page refresh and get new dialogs each time

Hello, I'm having a workflow issue with my JQuery dialogs when trying to create the dialogs and then doing a partial page render. I'll try to go through a sample scenario, and my apologies in advance for the long problem description: The page loads, with the html that I would like to be turned into JQuery dialogs. The dialogs are creat...