jquery

How do I parse a UTC date format string to local date time?

I'm currently using the jQuery fullcalendar plugin but I've came across an issue regarding daylight savings time in Britain. After the daylight savings take effect the hours are being displayed an hour out of phase. The problem appears to be with the plugins parsing function. Can someone please provide me with the funciton to parse a U...

Why browser doesnt recognize jquery when <script src="...jquery.js> is on a html page served by Google App Engine (from a http request)?

jquery.js source code is not being recognised by browser using my page.html served by Google App Engine as a http:some_request to the SDK, BUT when I load the exact same page.html into the browser directly from my local hard drive as jquery.js all works OK, it is recognized, so I know my path is OK.... In the header of my page.html I ha...

wrap 6 li elements together on a long list

I have a long list like this: <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> <li>item 4</li> <li>item 5</li> <li>item 6</li> <li>item 7</li> <li>item 8</li> <li>item 9</li> <li>item 10</li> <li>item 11</li> ... </ul> and I want to somehow wrap some divs around them like this: <ul>...

Calculate proportional width of object (proportion: 1600x1080)

Hello, this is a simple jquery question: when my div "#wrapper" has a specific height (=browser height - 129px), i want to set the width of a inner div "#object" automatically too (cause i need a width for the object to read it out) ° example of the html: <div id="wrapper"> <div id="object"> </div> </div> example (jquery): $(...

Pass array of data to jQuery function

Here's the story... I have a jQuery function that does something, this function is referenced very regularly. One of the input parameters is an array, this array data is hard coded and thus I want to pass the data like this: (this is how I would do it using PHP) myFunction(Array("url"=>"abc.com","example"=>"hello_world")); Instead of ...

jQuery toggle fucntion not working as expected

<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function(){ $('div#menu div') .bind('mouseover',functi...

remove element in javascript

In the below code how to remove the hyperlink after getting the innerHTML function test(obj) { var a=obj.innerHTML //remove obj element here } $p = $('<a id="name" onclick="var ele=test(this);">').html( "test" ); $('#questions').append( $p ); Thanks.. ...

JQuery Animation Question

Hello, I have created a jquery animation that can be seen by clicking the Preview button on top: http://jsbin.com/anayi3/edit I have used the slideDown animation method. The problem is that all items slide down together. I want to each number to display after short delay. It should not be much of problem for experienced jquery develop...

Problems reading RSS feed with jQuery.get()

Hi there, I've been pulling my hair out trying to use jQuery.get() to pull in my dynamically generated RSS feed and I'm having nothing but issues, is my RSS feed the wrong format? If so can I convert it to the correct format using javascript? Here's my feed: http://dev.chriscurddesign.co.uk/burns/p/rc_rss.php?rcf_id=0 Here's my code: ...

How do you simply hide an element without it collapsing in jQuery

I have a table of todos and on the leftmost column are normally checkboxes to mark completed. I want to hide those checkboxes untill a user hovers over a task, upon which that tasks checkbox becomes visible. Currently when I hide the checkboxes using $('table#incompleted_tasks tr td input[type="checkbox"]').css('display', 'none'); ...

Jquery - intercept links created by ajax request

I have some jQuery code that intercepts links clicked on a page: $(document).ready(function() { $("a").click(function() { //do something here }); }); My problem is there are certain parts of the page that have not finished loading on document ready. They are populated via ajax calls. The links in these...

jquery ajax type GET question

Hi all! I hava a simple question. I have a server running which take actions according to parameters in the url. Example: if I type in browser: http://localhost:8081/Edit?action=renameModule&amp;newName=Module2 This works correctly. I would like to know the equivalent jquery ajax method to perform the same thing I have tried $.ajax...

jquery Ajax call resulting in Undefined Error in Firefox

Hi I've been pulling my hair out for the last few hours with this problem. And the googling has been hampered by the very vagueness of this. So let me apologise for that first. Basically I'm using jquery and ajax (with C#) to return data from the backend and display that to the screen. The code works perfectly for firefox and IE. But w...

Clear Select options when selecting one field while using multiple forms on same page

Hi all, I have a situation where the second select list option is generated from the first select list selected option. Like when we select Country corresponding states are generated in next select list. In my case I am having multiple forms on single page which are same. Can anyone let me know how to implement it on multiple forms. ...

I want to use .load() with query value, jquery

Hello I want to be able to load the feed value with a user id, but does not. The full url is http://localhost/feed/feeds.php/?userid=xxyy var f = <? echo $_POST['xy']; ?> $('#feed').bind('click',function(){ $('#feed1').load("http://localhost/feed/feeds.php/",{'userid':[f]); }); Can I use the url directly> Either w...

Define variable in variable/parameter and use in javascript?

I want to defined a variable/parameter in CSS and access it by javascript. What is the best way of doing this? One option I thought of would be to place a cutsom attribute on the body element, then access that attribute via jQuery. A little more info: I'm defining colour sets in CSS. I've created a function with RaphaelJS to draw a gra...

jQuery, drop image on overlaping target

I am using jQuery to detect drop on target, the target in question is a image. If i drag one image upon another, and then drop it, it shall replace the target source with the dropped source. This works fine until two images lies upon each other. Some of the images lies next to each other and some times the target images overlap. if i dr...

Javascript timer that restarts on key up?

O, so i have a 'live search' ajax search, which currently runs an sql search (via ajax) on each key up. What i would prefer is to: run an sql search after a key has not been pressed for say 800 milliseconds . So i want to have a timer that is started on key up, if the timer reaches 800ms then the ajax is called, if a new keyup event...

jQuery > reset popup window 's x and y relative to icon that launched the window

I have a jQuery jPicker colorpicker that is bound to an input text field and opens onclick of a small picker.gif icon. The problem I'm having is that (1) The colorpicker that opens does not appear to be positioned according to the x/y position of the picker.gif (it opens far away from the click point) and (2) The colorpicker does not see...

Javascript and CSS Popups

Hi all, I've got a question about CSS based popup windows, like those generated by jQuery UI's dialog system, or Colorbox. If I use those (or something like them) to open a popup window to an HTML page and that page has Javascript in it, does the Javascript in the popup window run in its own context, or does it become part of the contex...