jquery

How to append query parameter at runtime using jQuery

Through JavaScript I am appending one query parameter to the page url and I am facing one strange behaiviour. <div> <a href="Default3.aspx?id=2">Click me</a> </div> $(function () { window.location.href = window.location.href + "&q=" + "aa"; }); Now I am appending &q=aa in default3.aspx and in this page the &q=aa is getting a...

fetching flicker/picasa pictures using javaScript

I want to add a slide show of pictures from one my photo albums from flick/picasa.Is it possible to fetch the images javascriptically on the page and then show them using jQuery(that i can do :) ) ...

Get from youtube playlist video, with jQuery, api

Can somebody help me to suggest how can I get the play list from the youtube URL: this is the URL : http://www.youtube.com/CalgaryStampede1912 And I want to get the playlist or the first 2 videos from this video category with jQuery . Or there is some jQuery plugin for that ... Thank You !!!!! ...

Scroll inside div with jquery?

If I have a div that is overflowing, is there a way I could call a jquery function to scroll it down 60px or something? ...

How to show title attributes onfocus using jquery?

By default in all browser title attributes only shows on mouse over. I want to show on keyboard focus also. I know this is not possible through only HTML and CSS. JavaScript will be need. so i jquery in almost all projects. so i need a jquery solution to show title on onfocus. <a title="this is title" href="#">Websites</a> Lated adde...

How is nosotroshq.com creating the navigation effect when you mouse over a nav item?

Any JQUERY experts know how nosotroshq.com is creating the effect in their top nav? For example, when you mouse over "ABOUT US" it slowly animates down. Any ideas? ...

How to show linked file size and type in title attributes using jquery?

For example: Before <a target="_blank" href="http://www.adobe.com/devnet/acrobat/pdfs/reader_overview.pdf"&gt; Adobe Reader JavaScript specification </a> Bcoz file is PDF so title should be title="PDF, 93KB, opens in a new window" <a title="PDF, 93KB, opens in a new window" target="_blank" href="http://www.adobe.com/devnet/acro...

Appending HTML to end of body using javascript

here is the deal. i have several templates for faceboxes (lightbox) i need at different points of the application. these are stored in different partials and files. i will initialize different javascript functions in accordance to which ones i need. The question is, what is the best way to append the external HTML page into my body us...

Appended content using jQuery 'append' is not submitted?

I'm new to jQuery so this may be a real simple answer. I have a ASP.NET project that I'm trying to dynamically add content to an ASP Label element by typing into a text box and clicking a button. Sounds simple right? Well, I can get the content to added, but when the form is submitted the Label element is still empty? Why is the new d...

Does jQuery strip some html elements from a string when using .html()?

I have a var that contains a full html page, including the head, html, body, etc. When I pass that string into the .html() function, jQuery strips out all those elements, such as body, html, head, etc, which I don't want. My data var contains: <html> <head> <title>Untitled Document</title> </head> <body> </body> </html> Then my jQue...

jquery if statement animate back

how do i add a if statement when the right image is at +400px then animate back to -400px... when hovering the right image? $('#left img').mouseenter(function() { $('#right img').animate({ left: '+=400px' }, 700); }); $('#right img').mouseenter(function() { $('#left img').animate({ left: '-=400...

My portfolio site crashes IE 7 and IE 6

Hi My portfolio site www.jonathanbranthwaite.co.uk uses heavy JQuery - sliding carousel and lightbox navigation. It works fine in Firefox and Safari, and from what I gather in IE 8. Does anyone know if the code is incorrect or if there is something making it crash, or is this just because of alot of JQuery. Any help would be appreciat...

If else statement within Jquery function

I have the following code in Javascript and Jquery: $("<li />") .html('Somehtml') I would like to be able to change the content of .html by using if-else statement. My code should be something like this, however it's not working. var showinfo = <?php echo '$action'; ?> $("<li />") if (showinfo == 'action1'){ ...

Select list value undefined in $(document).ready

I have the following code, which I want to load values on a selection change, and also do the selection load initially (since FF 'saves' the last value of the drop down under certain circumstances). The select part of the function works correctly, but for some reason when calling load2 directly the value of $('#select1').value is unde...

jQuery selectors with meta-characters

Hello Guys, I'm having problem selecting an element with an id like this <li ="0f:Bactidol_Recorder.mp4">. I tried using the function that escapes meta-characters with two backslashes below from this jquery link but still can't select the element Function: function jq(myid) { return '#' + myid.replace(/(:|\.)/g,'\\$1'); } Examp...

How to have multiple jquery cycle galleries on page, only one active?

I would like to have a few cycle galleries on a page, but only one active at a time, and the others hidden. Ideally clicking a link (thumbnail from a list) would activate the next cycle gallery. Make sense? Anyone done this before? Would appreciate tips, thank you! ...

jquery sortable scroll problem

Hi I'm having problems using the sortable function of jQ:uery UI. The scroll doesn't seem to work.. If the second list ( lists are created on the table rows in a tbody and each tbody is connect ) isn't visible I want it to be possible to scroll towards it for dropping my table row. This is my HTML set up: <ul> <li> <ul> ...

jQuery FullCalendar - trying to add event and display on calendar failed

Hi all: I am trying to work out how to use Adam Shaw's brilliant jQuery plugin - FullCalendar to add an event on our project : online balloon ordering page under development Basically, if you click on "step1" and choose "pickup in shop" , the page will bring you to the calendar view, where you could click on the upper-right corner at ...

jQuery jPicker > Assign color of jPicker from a text link (not from jPicker)

I've got a list of frequently used hex colors that I'd like to list under my jPicker bound input text field and I'd like to figure out how to change the value of the jPicker active color without opening the jPicker color selector palette. I've managed to create a function that updates the input field thats bound to the jPicker, but the ...

Sending html data via $post fails

I am using the code below which is fine but when I use the code below that in an attempt to send an html fragment to a processing page to save it as a file but I get nothing. I have tried using ajax with processData set to false ads dataTypes of html, text and xml but nothing works. I can't find anything on this so I guess I must be mis...