jquery

How to convert unordered list into nicely styled <select> dropdown using jquery?

How do I convert an unordered list in this format: <ul class="selectdropdown"> <li><a href="one.html" target="_blank">one</a></li> <li><a href="two.html" target="_blank">two</a></li> <li><a href="three.html" target="_blank">three</a></li> <li><a href="four.html" target="_blank">four</a></li> <li><a href="five.html" t...

jQuery ajax defined actions

When I'm loading some content through ajax it returns an jQuery .click event and some elements. But when the ajax content is loaded a couple of times and I click the the button that is bound to the .click event, the action is executed a couple of times. For example the ajax content is: <script type="text/javascript"> $('#click').click(...

what is the best way to fix IE6 png trancparency with javascript and Jquery

is there any simple way to fix IE6 PNG transparency with javascript and jquery with out using any plug-in or something too complicated ? ...

jquery - Can you manipulate page titles?

I thought I heard somewhere that you couldn't use jquery to manipulate the content... Is that correct? Basically, I have a site that has parameters like p.php?d=keyword+keyword+keyword, and I wanted to be able to set the title according to what's in that d parameter... Is there a way to do that? ...

jQuery iterate over object with $.each

I have an object options: options = {title : 'title1', name : 'name1', url : 'url1', etc.} which is passed in as a parameter to a function. I'm trying to iterate over that object, pass it through another function evaluate, and store the result in another object opts, like so: var opts = new Object(); $.each(options, function(key,valu...

PHP(?) or jQuery(?) Best method to change metatags?

On my site, I present a slideshow of content, for which I'm using jquery. So the user will click on an arrow and the next div (which is hidden by default) will display. Within each div, (whether showing or not) there are hidden span tags that contain the title of the content the user is looking at and a summary of the content... ...

continous mouseover

Hi there, I am looking for a way to repeat a mouseover action until the user moves away from the target. A mouseover invokes a function once, I am looking for a way to keep doing the function. Cheers, Gazler. ...

When trying to load an external image which does not exist, stop loading the image using a timeout.

Hi, I have got a JSP page which loads images dynamically. Now, I also have some "input" elements on this page such as a checkbox and select menus which are being created using a javascript module (creating a different styling for the input elements). My issue is, one of the images the page is trying to load does not exist on the extern...

Jquery problem getting text from a script tag?

I have this small HTML document: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>HTML Test</title> <script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $("script").each(function() ...

How to achieve this advanced interface with jQuery?

I'm currently fighting a fierce battle with an interface I'm trying to put together. I'm pretty decent at CSS & XHTML, but my jQuery/JavaScript skills are not too impressive. What I'm looking for is not so much a strict answer, but some hints on how to go about these kinds of tasks. What I am trying to achieve is a layout with some box...

does the callback passed to jquery's $.get() execute in a separate thread?

Hi everyone, Very simple question: suppose I have the following js/jquery code doSomething(); $.get(url, callback); doSomethingElse(); I understand that right after the GET request is sent doSomethingElse() starts being executed. Now suppose that the server's reply arrives while doSomethingElse() is executing. What happens? Does ...

jQuery Inserting a Button After An Anchor

How in jQuery would I add a button directly after an anchor tag? For example, my HTML looks like: <div style="border-style: solid; border-width: thin; padding: 2px;"> <center> <a target="_blank" href="http://www.mydomain.com/"&gt;MyDomain.com&lt;/a&gt; <b>My Hypertext Link</b> <br/> Options: <a class="theAClass" hr...

jquery ui - how to drop image into a modal

Hi, I have been trying hard to get this to work. I have a modal which I call when draggable - drag function is called. I want to drop the element into this modal which was called. I cannot seem to focus the draggable element into the modal. Can someone help me with this problem. Here is my code: $(document).ready(function(){ ...

changing page url without refreshing page

Is this even possible? Here's the problem: I have a keyword search with this URL(after searching) : http://localhost/thi/search?keyword=key Then I have a slider search which uses the AjaxForm plugin (jquery)... when I perform a slider search, obviously I will still be in the keyword search URL (because the request is sent via ajax) ...

How to Post using JSON and JQuery from a form?

I'm using jQuery and the CloudKit/Tokyo Cabinet backend from an HTML page. All calls are REST/JSON so the server needs JSON data posted. How do I turn the form into JSON and post it? JQuery seems to have a type for JSON return values but not to send JSON. Any ideas? IS it different if it's cross domain? Alex ...

jquery plugin $.extend

if i extend the jquery fn(like $.fn.extend) i write my plugin: (function($){ $.fn.extend({ functionName : function(){ //function returns return this.each(function(){ $(this).append("<div>text</div>"); }); } }); })(jQuery); when i want to extend jQuery nam...

jQuery while loop not waiting for animation

I have a jQuery function that does a .clone() on an object, and then an .insertAfter() and a .slideDown() on the cloned object. This whole function is wrapped inside a while loop. I will keep this as short and concise as possible and show a generic example: while (statement) { // code for clone and insert ... $("#newly_created_...

jQuery click function not working in IE

Hi all, I have an issue with a jQuery script I wrote that is driving me a bit nuts. As usual it works perfectly in Firefox but falls over in all IE versions. I have the following HTML. It is generated using Velocity so it should be part of the DOM: <select name="groups" id="groups" type="select"> <option value="group1">group1</option>...

JQuery Ajax Form and Dynamically created form elements not submitting

I'm writing a form that has some text input elements loaded dynamically when a select list is changed. The problem is that when I submit the form those elements are not sent in the data that is posted to the server. What do I need to do to get those dynamically created elements "into" the form to be submitted? The code is something li...

jquery datatable plugin doesn't seem to sort columns with links properly

i have a column that was pure text and the sorting worked fine but when i cahnge the column data to html regular links, the sorting seems quite random and broken. I couldn't find any other documentation on this issue on the site. http://www.datatables.net/usage/features any suggestions? ...