jquery

I want to load multiple images very fast on a website, what's the best method?

So.. my idea is to load a full manga/comics at once, with a progress bar included, and make sort of a stream, like: My page loads the basic (HTML+CSS+JS) (of course) As done, I start loading the imgs(the URLs are stored on JS var) from my server, one a time (or some faster way) so I can make a sort of progress bar. ALTERNATIVE: Is ther...

jQuery: How to refer to element being operated upon?

Let's say I have following jQuery line where I am trying to change the "id" of the element after cloning the row of a table. How can I refer to the instance of the element and pass it to "buildControlId" function. $row.find("select [id$='ctlType']").attr("id", buildControlId(???)); I could do it like this, but I am looking for shorte...

Jquery/C# Making a webService call errors out: cannot be serialized because it does not have a parameterless constructor

Here's my call: CallMfttService("ServiceLayer/FieldingManager.asmx/GetUICs",null, SetUicValues); Here's the WebMethod: [WebMethod] [ScriptMethod] public List<string> GetUICs() { UserManager user = new UserManager(); var currentUser = user.GetUser(Security.FieldingToolPrincipal.Current.Identity.Name); ...

Referring URL with Multiple IDs?

This is an update, since Gaby was able to help me with my issue. This now works DEMO TIME! http://media.apus.edu/it/ref/page1.htm In a nutshell - this code will send the referring URL from page 1 to page 3 dynamically when you click the link. Why is this important? We're not able to place analytical code (google analytics) on page 3 s...

JQuery Not Parsing Properly attr("href") in IE

I have a really wierd issue that I'm hoping someone can shed some light on. I am using Jquery to retrieve an Http Response from another website (which I own). Once I receive the DOM, I parse through it in order to get certain information. However, when I try to get the href attribute of a link, IE is adding the local domain to the beginn...

keeping screen static when click link

Hi I was wondering if anyone know how to keep the screen in a static position with jquery when a link which has a "#" href is clicked? Regards, Phil ...

How do I retrieve the textnode of a element without getting descending elements textnodes using Jquery ?

<a href="#">Domain name<span class="value">2</span></a> I would like to retrieve only the text "Domain name". I have tried using $('a').text() but that will also get the text inside the descending SPAN tag. Is there a way to select only the first text node inside the A tag somehow? I can't figure out how. .contents('not:(span)') do...

border-radius.htc support for hiding/showing divs?

I'm using border-radius.htc to simulate the border-radius CSS property in IE. It works fine, but I want to show and hide a div with rounded corners. The problem is that the border-radius.htc does not support advanced manipulation like hiding div, only modifying the size. Has anyone experienced similar problems and found a solution? ...

jQuery selectors?

Using jQuery I am trying to create a function to show and hide the DIV below the table/tr that has been clicked, but when I click in one, all the DIVs will slide up, also slide down it is not working. I tried if ($(".container:first").is("hidden")) but I guess is not the first element under element clicked but first element on the docum...

find id of the element where the control is dropped using jquery

Hi, I have got a table with several rows and columns. I have a span in one of the td which I want to drag. I can drag that span and can get the ID of the td where the span lies but I can anyone tell me how can I get the ID of the td where I drop that span. Now I can get the ID in firefox using event.originalTarget.id of the drop event, ...

jquery, change content on a popup

I have a simple page (index.html) with a div: I am populating that div with some easy jquery commands: $("#email").html("[email protected]"); Is there a way to populate a similar div on a popup? I like to use popups for debugging reasons, but I don't want to reload the popup each time the main page refreshes. In other words, c...

Preload images for AJAX content using jQueryUI-tabs

So I've got a pretty nice application going using ui-tabs.. problem is, I cannot for the life of me figure out a way to pre-load images in my ajax content before the tab panel is shown. The only way I can think of is to create my own ajax functionality for the loading of tab-panel content, and adding something like this to the ajax call...

jQuery data() method resetting previously set data in a loop

OK, so I'm trying to store two pieces of data in a bunch of anonymous divs that are being appended to a parent div: var $timepicker = $('<div class="timepicker"></div>'); var startTime = new Date(0, 0, 0, 0, 0, 0, 0); var endTime = new Date(0, 0, 0, 23, 60 - settings.step, 0, 0); for (var time = startTime; time <= endTime; time.setMinu...

jQuery Post to PHP to Redirect?

Hi all, I'm trying to figure out if I can do the following: User submits form to script via jquery post Depending on what was processed, script may or may not return errors If the script did not process any errors (i.e. SUCCESS), I want to redirect to a SUCCESS page I know it's possible to redirect the browser via javascript, but I'...

Keyboard Capture on a Web Page with jQuery

I'm trying to implement a JavaScript component that captures key-inputs and creates a command prompt interface for the web, I don't want to use text-fields It's easy to capture input from keys as follows: $('*').bind( 'keypress', keypressCaptureFunction ) but the bubbling of events is giving me multiple events per key-press, also, us...

JQuery Div update on database update

Right now I am using setInterval to refresh a div every few seconds. The page it is refreshing is data being pulled from a database in asp. I would like to have it only refresh the div when a change occurs in the database because the query is pretty large, but I've searched and could not find function or example for this. I figure the...

jQuery UI Themes which are totally different than what ThemeRoller gives

Is anybody aware of a project/url that shares jQuery UI compatible themes, that you can't tell at first glance are from ThemeRoller. Difference: different icons, styling of tabs, dialogs etc, not just color palette. I think you got what I mean. ThemeRoller is nice but would be even nicer to have some visual alternatives. Even 1 would mak...

jquery ajax: headers seem to not be working

hello, i am trying to get the headers of an ajax request i made through jquery $.get(url, function(response, textStatus, headers ) { console.log("Response: %o", response); console.log("TextStatus: %o", textStatus); console.log("Request: %o", headers); } ); this does not seem to be working however: th...

How to use Jquery ajax to set $_SESSION?

I am trying to create a simple log in system that uses ajax but the problem I am having it wont set the $_SESSION. login.js: $('#bt-login').click(function(){ var login = $('#login').serialize(); $.ajax({ type: "POST", url: 'widgets/Login/loginFunction.php', data: login, c...

cycle through images via jquery

I have five divs on my page (#art #fashion, #self, #nightlife, #community). right now, when you mouseover them, they load page content into another container div (#flyer). I would like the flyer content to cycle every 5 seconds or so. So, instead of having to mouseover those 5 divs, it should just automatically go. does that make...