jquery

jquery ajax and html

Does anybody know how to execute javascript functions in an html that is loaded via ajax? I mean the html contains both plain text and javascript. In my case it seems that only the in-line javascript (eg. onclick="dosomething();return false") gets executed. The pre-defined functions which are wrapped by < script language = "javascr...

How do you play music with javascript?

On the new Palm Pre everything is done via javascript etc. you can even use the camera and as I have heard play music. Is the second part also true for the desktop or is it a special webos/mojo feature? ...

Issue using Jquery Tabs

Hello, I am having trouble getting the built in jquery tabs working on my site. I'm not really sure what the issue is. I have basically taken the code directly from the demo page that comes with jquery and copied it to my own site (obviously making the paths correct), however it refuses to work and I really can't see where the issue i...

jQuery plugin for formatting inputs

I want to accept values in any of the following format: -$5 -$5.00 $5 $5.00 Is it possible to do that using Masked Input Plugin? If not, what plug-in am I looking for? How do I indicate a character is optional? The code I've got so far $.mask.definitions['~']='[ +-]'; $(".currency").mask("~$9"); ...

Why Portfolio Gallery isnt loading into Ajax/JQuery window- Need fix

Can someone tell me why this: http://dageniusmarketer.com/DigitalWonderland/pages/Portfolio.html works fine on its own page all by iself, but when I try to load it inside my current site using ajax and jquery, which is, dageniusmarketer.com/DigitalWonderland/ On the portfolio page, i get this error: this.loader = new GalleryLoader(...

fadeIn nested span tag

Hello, My problem is the folowing: The string I give back with the ajaxcall and subsequently let it fadein is not fading in completely. The inner span tag with class="message" get's dropped at once. and the first is doing what it is supposed to. I need the inner spantag to ajust the position next to the image so for clarity: The st...

event delegation problem with class

I want to add the jquery-form-validator to my customer's old CMS. This jqery form validator requires to insert a class such as class="validate[required,custom[onlyLetter],length[0,100]]" to input. <input class="validate[required,custom[onlyLetter],length[0,100]]" name="firstname" type="text" /> Since this is (old from '90) CMS, I n...

Hide B in <x>A<br/>B</x>

I have a: <h2>foo<br/>bar</h2> and I'd like to hide "bar", but I can't figure out a proper selector. Is it even possible? ...

Gallery CSS into JQuery / Ajax page div

Please someone help me out with this: I have the gallery html page loaded and getting called in correctly to my mainContent div in my page. if you go here: http://dageniusmarketer.com/DigitalWonderland/index-jquery.html click on portfolio, you will see that the gallery loads, but, the image thumbnails and display is way off. its supp...

Jquery load over the top of the previously loaded content

Having issues trying to select html injected into the DOM using jquery's load. Works if ul#links content isn't replaced, otherwise it fails to load into #content. Basic example JS $(document).ready(function() { // Load links into tab $("ul#tabs li a").click(function(){ urlTabs = $(this).attr("href"); console.lo...

Need a JQuery Plugin for a datepicker that does not display year, just days and month.

I am looking for a datepicker for JQuery which allow my users to specify specific parts of the year. For example I want them to be able to pick summer months (April 01 - Sept 01). This data is going to be applicable every year so the actual year is irrelevant. Are there any datepickers out there that can do this for me. Or am I looking f...

Is there a better way to write " $('#sender-name')[0].value; " instead of using 0 element?

Hi there, is there a better way to write $('#sender-name')[0].value; instead of using the 0 element... Its an id so only 1 element should be present, is there some kind of FirstElement property or first child or something? Basically i am returning it to a variable .. but of course jquery returns an array of items but it is an id so i...

Add to browser favourites/bookmarks from javascript but for all browsers (mine doesn't work in CHROME)?

hi there, can anyone help, i am using the following for adding a bookmark to IE and firefox but its not working in CHROME and i don't get my error msg saying "not supported" either.. Anybody know of a good script to support ALL browsers or at least to come back and tell me its not supported, I have access to Jquery - maybe there is so...

ASP.NET MVC: Upload XML string from browser memory with progressbar

Hello! I have a variable in javascript containing a string of XML data that I want to upload to a server running ASP.NET MVC. It works just fine using jQuery.post method. My problem is that the data weights about 5 megabytes so this process could be rather long depending on the bandwidth available between the client and the server. As...

How to get the ID of the div the function was called from in jQuery?

I have a jquery function ('rater') that I call this way: <div id="someID"></div> <script type="text/javascript"> $('#someID').rater({options}); </script> I want to get the ID ('someID' in this case) so then I can use it inside the function as a variable. Then I use it in something like this: if (??? == 'someID') { do something ...

Waiting for JSON data to be parsed

Is there a way to wait for jQuery's getJSON method? I want to parse the data, recieved with this function and just return false/true if a specific string is contained. But due to the asynchronous data processing this seems not to be that easy. Here is a code snippet: contained = false; $.getJSON(URL, function ( data ) { $.each( da...

Why does the jQuery pulsate effect leave jagged text behind in IE?

I found out that pulsate leaves jagged text behind when I use the pulsate effect of jQuery UI... after some searching it appears that it's an IE bug... i think it may have something to do with the opacity, but i am unsure. I tried the following but it doesn't work: $(detail).effect("pulsate", { times: 1 }, 200, function(){ $(thi...

use xml for an ajax call

Hello, I need help with this code because for some reason I don't get the data back It is probably something that got mixed up, because I never used xml with an ajaxcall Could someone check if they see something going wrong here function updateGebruikersonline(){ //voor het fade effect gebruikerslijst.hide(); loading2.fadeIn(2000, ...

Jquery UI slide not working on certain elements

Here I have a demo of Jquery slideToggle core working on an element, but jquery Slide UI not. http://jsbin.com/obuha/edit Please look at the demo, the Jquery UI button works for the above text, but not for the google logo. The slideToggle button works for the logo. How would I get the Jquery UI slide to work with the logo as well? T...

JQuery: Hover without un-hover

I'm even stated surprised about jQuery's dumb way to put a hover attribute on an element. Take a look at this sample CSS: div.test { width: 20px; height: 20px; color: #000000; background: #FFFFFF; } div.test:hover { color: #FFFFFF; background: #CC0000; } If we'd like to convert this to jQuery, we have to type the fol...