jquery

jQuery: ajax POST with html entities

Helloes. I've been sending forms with jQuery ajax & $(this).serialize to php & database and it has worked perfectly. Now I have situation where I can't use serialized form but generate a string from different input fields instead and the problem is that it appears to lose some URL entities in the process. for example "&phone=+3581234567...

jQuery Cycle IE7+8 Issue - White marks appearing over JPEG

Hello guys! I am having a spot of bother with the jQuery cycle plugin. Now - all works fine functionality wise, but when it faded to the second slide some little 'white marks' appear on top of my JPEG? At first I thought this was a z-index issue, but clearly not. I have been doing some research into this and clearly I am unsuccessful ot...

Jquery display on link click question?

I want to be able to display the following code below only when a user clicks a specific link. Is it possible with JQuery? If so how would I be able to do this? Here is my code. function signedIN(){ $.ajax({ type: "GET", url: "http://update.php", data: "do=getID", cache: false...

how to clear jquery autocomplete result set

I have two autocompletes on same page. When I search in first autocomplete it adds to the dom object. Then when I search in second autocomplete it updates the existing But then if I search in first autocomplete nothing happens. It does display result set. Any help appreciated. ...

how do I change the load sequence of external javascript

I have a web page that loads an external chat script, but the script loads before all my CSS and jQuery kick in, so my page looks all messed up for a few seconds. Need help figuring out how to launch my chat script once the page is done loading...I think it can be done by adding the script into my jQuery setup, but I'm not sure how to d...

Repeat not consistent throughout months

By looking at the code I've provided below, does anyone know why the repeat is not consistent throughout each month? What I mean by this is for the first month that displays up until the end, the repeat works fine, then towards the end of the month onwards, the repeat is not displaying correctly. The output of the below code can be seen...

Catching errors from server side.

Hello, I am getting json data from my server to show them as a table. $('#queryFrom').ajaxForm({ dataType: 'json', beforeSubmit: showRequest, // pre-submit callback success: processJson, e...

Problem with deleting jqGrid row data -client side-

I'm using a jQuery Grid Plug-In with local data. If I delete a selected row, the row disappears. Then when I go to the next page and back again the deleted row is back again, too! How can I delete this row permanently or what is going wrong? Here is the code: jQuery(document).ready(function(){ // jQuery main function $("...

jQuery: Get .timeago() to work on elements loaded after DOM ready (Ajax)

Using pageless1 to trigger an ajax load of older, timestamped content onto the end of the page, I need .timeago() to act upon those newly loaded dates. It works on the content loaded the first time you arrive at the page, but not the content loaded via Ajax later. Thanks! ...

Display only 10 characters of a long string?

How do I get a long text string (like a querystring) to display a maximum of 10 characters, using JQuery? Sorry guys I'm a novice at JavaScript & JQuery :S Any help would be greatly appreciated. ...

What's the best way to submit a form to a form script on another site?

I am working on a basic HTML page that requires the user to send details to a script located on a third-party website. What I require is for the user to fill out a form on my web page, and have that information submitted to another third-party form. I do not wish to return anything to the user, other than whether the submission was succ...

rails3 rc1 with prototype and jquery

I have a rails3 project where I need to use prototype together with jquery - using the current Ruby on Rails 3 RC1 there is no example or documentation to use both together without problems. Is there a setup instruction or did anyone get both javascript frameworks running with the latest rails version? thanks, z3cko ...

Using jQuery to get data from XMl

<?xml version="1.0" encoding="UTF-8" ?> <iMon_Reporting version="1.0"> <DATA>active server pages</DATA> <DATA>asp.net</DATA> <DATA>asp.net applications</DATA> <DATA>health service</DATA> <DATA>health service management groups</DATA> <DATA>logicaldisk</DATA> <DATA>memory</DATA> <DATA>network in...

Post and jquery elements

Hi all, I have a form with some different input elements. One of these is a checkbox array. Adding another checkbox to the array using Jquery, without reloading the page I cannot see my checked checkbox on $_POST? Is there any way to add extra input fields with values, and then catching these in a $_POST? Thanks in advance ...

How do I stop a keydown event interfering with form fields?

I've bound some events to happen on left and right arrow key press like so: $(document).keydown(function(e) { switch(e.which) { case 39: $("#next").trigger('click'); break; case 37: $("#prev").trigger('click'); break; } }); However, obviously if you are in a form and press left an...

how to get link inside function() { ...} ?

I can't share full code now. It's a portion of jquery code $('#contentBox').hover( function() { posi("5",768,"box.jpg","i need link here","some text here"); } I tried this $('#contentBox').hover( function() { posi("5",768,"box.jpg","<a href='#'>...

Animate person jumping with jQuery

Would you be able to animate a person jumping from the bottom of the screen to the top of the screen and have the scroll bar follow the person jumping? I'm pretty sure that's not possible, but I've been wrong before. Here's a link to a pdf of what I'm describing. http://docs.google.com/fileview?id=0B-nXtGvomnuqNzE4MjdjMWMtNzA5NC00NGZiL...

jquery ui sortable - current element

Hi, I'm using jQuery UI sortable to build a dashboard userface. I'm wondering how I can fetch the item I was sorting last? What I want to do: I'm using the update event to fire a function > showing a hint, that the new position has been saved. I want to attach the DIV the moved element but therefore I have to know which one it was. An...

jquery update page when db update

Hi everybody, I've a page that show data inserted in a mysql db; I'd like (if it is possible) that this view page automatically update when a record is added to the db (data are not inserted from the same page or may be inserted from another user). thanks in advance ciao h. ...

jQuery namespacing global variable

Hi, Am quite new to namespacing etc so hopefully this will be straightforward. I have a variable in a jQuery hover function that needs to be made available to the global space. To namespace my global variables i placed this code in a JS file that occurs before any other JS code: $(function() { // Namespace jQuery.icisBoard =...