jquery

jqtouch / google maps api v3 issue

Hi everyone, I'm having a hard time trying to make jQtouch and Google Maps api V3 together. I've tried almost everything. It seems that the only source of information is here I checked every single post. I'm starting with jQuery and css... so there's a lot of stuff I don't understand. First of all, I'm using jQtouch framework to build ...

Add attribute to embed tag using jquery

I have the following embed tag: <embed type="application/x-shockwave-flash" width="640" height="505" src="url_to_video" allowscriptaccess="always" allowfullscreen="true"></embed> I have about five of theses on a page, and I'd like to add the attribute wmode="opaque" to all of them. However, I tried to do it like this and it didnt' wor...

JQuery get/ajax call executes callback without waiting for response

I'm having issues with my JQuery Ajax Call. The response is always null because the callback function is executed before the request to get_friends is completed. Is there anything I'm missing? Thanks in advance. jQuery(document).ready(function($) { $('#btn_update').click(function() { url = '/get_friends/'; $.get(url, {...

Trying to get simple jquery animations on a site I created in Dreamweaver

Hey guys, another question. I'm trying to do some basic jQuery stuff for my final project. I'll be using it to modify my already existing site created in Dreamweaver a few months ago. However, no matter how I source the framework, it just won't take regardless of whether I host my own copy or link to someone else's like Google's. I'm...

jquery accordion - keeps hiding parent element?

Well, I fixed my original question by including after the closing tags, but now, those links won't open? So, basically, in the html below, I'm trying so that only the services section slides open, but I want the h3 tags to open those links... <div id="sp-accordion"> <h3><a href="/?page_id=3">Home</a></h3><div></div> <h3><a ...

How to do custom jquery lives in 1.4.1?

Hi I been sort of using jquery livequery plugin and jquery live together. However now that I am using 1.4 it seems jquery livequery is not working 100%. So I am not sure how to tackle this problem I have this in livequery $('#Description').livequery(function () { $('#Description').htmlarea({ toolbar: [ ["bold"...

Adding "Next Topic" and "Previous Topic" Buttons to 130 webpages, code not working unless alerted first

I have put "Next Topic" and "Previous Topic" ( fixed)on each web page so you can click to move one page back or forward through the web site. Here is the code: $(document).ready(function($){ $("#fixed").prepend('<input type="button" value="Next Topic" id="nt">'); $("#fixed").prepend('<input type="button" value="Previous Topic" id="pt"...

JQuery getJSON Callback Returning Null Data

I have a getJSON call that is called back correctly, but the data variable is null. The python code posted below is executed by the getJSON call to the demandURL. Any ideas? javascript: var demandURL = "/demand/washington/"; $.getJSON(demandURL, function(data) { console.log(data); }); python: data = {"demand_count":"one"} json...

jQuery: Fade not working

For some reason, jQuery's fade effect isn't working. Could it be because of my code, or could it possibly be a browser incompatibility issue? This function does everything it is supposed to, aside from the fading. It gets called at the correct time. function move_to_term(original_course, helper, term) { var cloned_course = origina...

jQuery Auto Add Text Field on Click

Does anybody know of a good solid plugin that allows a user to have an infinatly expanding list of text boxes. So here is an example: Col 1 - Col 2 Cheese - 150mg Cake - 20mg Cheese - 100mg New - New So when a user clicks on any of those (They will be in a table), they can edit it. And when New is clicked, New...

Asp.net with RegularExpression problem

Greetings, I'm try to do validation on a textbox input to validate a phone number. I have an asp.net textbox and checkbox. The default is to validate a US phone number and when I check the checkbox I should change the RegularExpression and error message to validate an international phone using my own RegularExpression. I have no problem ...

jQuery selector to check if an element is animating to hidden

Is there a way to tell if an element is either hidden or is currently in the process of hiding (via an animation)? The only way I can think to do it is to store a flag in the element's data when you call show or hide, but I was wondering if there was another way? ...

How can I alter anythingSlider so that it disables the next / previous buttons when only 1 <li> in the <ul>?

I have a page with multiple instances of anythingSlider on it and I'm using PHP to dynamically load pages that swap out the content in them. Reference: http://ceedcreative.com/CEED_2.0/ I would like to edit the anythingSlider to disable the previous / next buttons if the UL it's displaying only has one LI within it. In other words, n...

Internet Explorer visual element stacking issue

Gday All, I know this issue is well known, however I have searched high and low for a solution to no avail. I have created a menu system using nested ordered lists where the menu functionality is controlled by CSS and Jquery. The menu works perfectly in FF, Chrome, Opera and Epiphany. However in IE 6/7/8 my popup menu is being display...

Format an input with Jquery?

I'm building a calculator that has a slider. Everytime I slide the bar an input box is updated with the number, the calculator passes the value and updates the calculation. So my input boxes have dollar values that can range anywhere from $0 to $10,000. Right now my boxes display 0 to 10000 and I want them to be displayed as $0 to $10...

Fast clicking on IE has slower response than firefox, chrome and safari. Why? (I'm using jquery)

Fast clicking on IE has slower response than firefox, chrome and safari. Why? (I'm using jquery) ...

when text changed inputbox automatically updates next 6 text boxes

I have 7 textboxes. If Top 1 textbox(Volume All Years) text changed, text need to be updated in next 6 inputboxes(Latest 2009 Volume to Latest 2014 Volume). I need javascript or Jquery for this. I will write Js textchanged() or focuschange() for top 1 textbox. So what should I write in focuschage() or textchanged methods() <tr id="row12...

retrieving background image from div when dynamically set

I am having an issue with setting the background-image of a #x to the background image of #y. Correct me if I am wrong but I think you would do this in a simple case by saying $('#x').css('background-image',$('#y').css('background-image')); The problem is that when y was initially set up, it was set up like this: <div id='y' style...

Why is IE8 on XP not properly reading from XML using JQuery?

Given this XML in data.xml <?xml version="1.0" encoding="utf-8"?> <data> <bar>100</bar> </data> I want to display the content from the "bar" element using the following code in test.html <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt; </head> <bod...

jQuery/javascript replace tag type

Is there an easy way to loop through all td tags and change them to th? (etc). My current approach would be to wrap them with the th and then remove the td, but then I lose other properties etc. ...