jquery

update filename in a url with jquery

Wonder how I could do the following wit jquery - I have a url pointing to an image -> http://www.website.com/folder/folder2/image_current.jpg (this value is stored in a variable) I have variable that holds the value -> new_image.jpg How can I with jquery update the full url (held in the variable) from http://www.website.com/folder/f...

jquery Slideshow in combo with YUI 3 ImageLoader

I am using a jquery based slideshow with total 38 images. Since I removed any controls from the Slideshow and know the transient between slides. thereby able to predict when the images need to be available for the sideshow (of course connection speed/bandwidth is another factor) I would like to use YUI 3 ImageLoader to load the Sldesho...

javascript error in IE 8

This is throwing a js error in ie8, FF is good. any ideas? This is line 1340 var cc_meth_cookie =$.cookie("cc_method"); This is line 1339 just in case... $(Choose_PaymentMethodType(1)); Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET...

NULL values jQuery Ajax from Seralize

Hey All I have a issue with Ajax From Submission and NULL values with php/mysql. First I have a simple form. <form mehod="post" action=""> Name: <input type=text" name="person[name]" value="" /><br /> Age: <input type="text" name="person[age]" value="" /><br /> Salary: <input type="text" name="person[salary]" value="" /> <a hr...

Looking for a Image Chooser in Jquery?

I want to be able to browse the image from my web directory, select one of them or more and manipulate them. Like Store them... copy them.... resize them etc. Any plugins or Code to make this possible? ...

Graceful handling of the display of remote images that might no longer be there

Hi folks, i am displaying remote images on my service <img src="http://remote-site.com/imageX"&gt; However, sometimes the image is already gone, so I would get 404s or just a plain text. Question is -> how can i degrade to a generic image as soon as I get something that is not image type? Actual code, whether in jQuery, Ruby, etc mu...

how can i trigger an event (function) when dragging one object over another using jQuery?

if i have: <script type="text/javascript" charset="utf-8"> function test(){alert('test');} </script> <div id="drag_object"> </div> <div id="drag_over"> </div> how can i trigger test() when drag_object is dragged over drag_over using jQuery? thanks :) ...

Getting an union of two arrays in jQuery

Say I have an array of [34,35,45,48,49] and another array of [48,55]. How can I get a resulting array of [34,35,45,48,49,55]? ...

jQuery Ajax: Can i store more than one "variable" on success?

Hey. Basically it's just: success: function(msg){ alert(msg); } What comes out alert´s. But is it possible for me if i have a var in the file that the ajax call: $filename = time() . "10"; to use in success? So i could do success: function(msg){ alert($filename); } (now its not correct) but how can i do this? $.ajax({ ...

JQuery Autocomplete: formatItem doesn't work

We've put frustrating hours into the attempt to get a remarkably simple script to work (and everyone else seems to be successful). Finally, we want to create an autosuggest textbox using JQuery that writes the value of a selected text into a hidden field, but this question isn't about that because even the first step fails (but working s...

Error: Uncaught TypeError: Object #<an Object> has no method 'pan'

For some reason, I'm getting this error message: Uncaught TypeError: Object #<an Object> has no method 'pan' For this line of code: $('#bg_1').pan({fps: 3, speed: 2, dir: 'right'}); I have connected the spritely plugin prior to this line of code as you can see here: http://www.marioplanet.com/index.asp Any ideas? ...

JQuery parsing table

Here is a sample code for parsing table with JQuery. I would like to improve it, any suggestions? https://gist.github.com/45cb4fbddae03fb0bd61 ...

jQuery - Iteration problem

This is probaby really easy for you guys. Its a real hassle for me.. I want to add a new link next to all of my other links. Could someone help me out? Please!? http://jsfiddle.net/Ahndm/ ...

Error: Uncaught SyntaxError: Unexpected token <

For some reason, I'm getting this error message: Uncaught SyntaxError: Unexpected token < For this line of code: title: '<img src="/images/text/text_mario_planet_jukebox.png" id="text_mario_planet_jukebox"/>', In this context: $(document).ready(function() { $('#infobutton').click(function() { $('#music_descrip').dialog...

How do I pass the this context to a function?

I thought this would be something I could easily google, but maybe I'm not asking the right question... How do I set whatever "this" refers to in a given javascript function? for example, like with most of jQuery's functions such as: $(selector).each(function() { //$(this) gives me access to whatever selector we're on }); How d...

jquery .css applying in chrome or FireFox

I am using Jquery to apply some top and left positioning. When doing so, in IE it works perfectly. Unfortunately, it doesn't work in Firefox or Chrome. In IE, when inspecting the code it shows inline styles on the div for the left and top. When looking at chrome and firefox, there are no inline styles for the divs's. Here is some co...

jQuery - Easiest way to pull multiple .(val) into one string

Given an unknown number of dynamically produced text inputs: for (var i = 0; i < numInputs2Render; i++) { collectEmails = collectEmails + '<input type="text" id="Email' + i + '" name="Email' + i + '">'; } I need to produce a comma delimited string of the combined input values. Does jQuery give me a one-step solution or will i nee...

Persisting json data in jstree through postback via asp:hiddenfield

I've been pouring over this for hours and I've yet to make much headway so I was hoping one of the wonderful denizens of SO could help me out. Here's the problem... I'm implementing a tree via the jstree plugin for jQuery. I'm pulling the data with which I populate the tree programatically from our webapp via json dumped into an asp:H...

jQuery get() returns blank on clustered web site, mod_proxy_balancer error?

I have an jQuery application that works fine on a single-node web server, but breaks when I run it on a testing cluster server (Apache mod_proxy_balancer). The code is this: $.get("/file/foo.xml", function(xml) { alert(xml); } Clustering configuration is: <Proxy balancer://mycluster> BalancerMember http:// 10.32.4.37:90 B...

Javascript file inclusion 406 error in CakePHP

Hi, I have several js files under webroot http://www.in-culture.info/app/webroot/js/ All the files are ok Eg http://www.in-culture.info/app/webroot/js/lightbox.js Except this http://www.in-culture.info/app/webroot/js/jquery.cookie.js It's throwing 406 Not acceptable error. Help please. ...