jquery

jQuery, submit form with a button.

I have a form which contains the method "POST" and action ="abc.php" and button type of <input type ="button"> I have a handler when i cick that button i want to send a request to abc.php but nothing is happening no action is being prformed.I dont want to change the <input type ="button"> to <input type="submit>.How do i submit the Form ...

jquery ui dialog close doesn't clear dialog

Hi, Using jquery-ui, I have a tabs plugin and within tab 1 gets loaded a page that contains a table and in each row is a link to a dialog. Everything works correctly save the following: In the dialog is an option to delete the row from which the current dialog was opened from. After confirming, and deleting the row, the tab is refresh...

$.post variable as array with values?

hello - sending some data via post but want to send an array to but keep getting errors? excludes is the array i'm trying to send. $.post("/youradmin_v2/scripts/php/process.php", { funcName:'searchContent', table:'content', fields:'title,contentID', keyword:$(this).val(), ...

Need help debugging a jQuery-Plugin for IE

Hi! I'm developing a website for a friend. It's almost done, but there is still an issue concerning the IE 7 and 8. There is a slide show on the start page, done with jQuery and a jQuery-plugin (jquery.cycle), that works great on FF 3.6, Safari 4 and Opera 10.60. But IE 7 and 8 won't display anything. I've enabled the debugger, but it d...

jQuery methods on original javascript object?

Did jQuery add any sort of new functionality to internal JS object like the "anchor" object? I know you can select via $("a"), but what happens if i already have an object selected? ...

Jquery obtain delay untill loading

Hey there 1. on this code, which loads flash onmouseenter, how can i get some kind of delay, (could use a loading image), untill the browser loads the flash. I have 10 different sections. If i move the mouse fast between them, flash is loaded several times and it brakes down eventually. $(".section").mouseenter(function() { $(this...

jQuery working out wrong height, due to @font-face

I have a problem with jQuery and @font-face. I need to work out the height of a <div>, which works fine, but then there is a small delay for the fonts to load and as soon as they do, the @font-face fonts were actually bigger than the fallback fonts, so the height is smaller than it should be. I have tried using Modernizr, but that is n...

How to get Yahoo delayed csv feeds

As said "Yahoo offers delayed-by-15 stock updates. They have a CSV you can download and parse quite easily. Different datapoints are available depending on what options you pass into the GET portion of the URL. I use that facility myself." I wanted these delayed-15 forex details to use in my trading system developing in java. How to re...

Multiple jQuery UI date pickers with different styling

I have two jQuery date pickers on my page: A regular one A "special" one that can only pick years/months. The special one uses some custom CSS (from here) to hide the calendar part, so only the month/years show up. .ui-datepicker-calendar { display : none ; } However, since there is only one dialog instance on the page, the ca...

Jquery image in div, makes the code act strange.

Hey there, third related question to this code, hopefully the final one:). This code seems to work pretty smooth: $(document).ready(function(){ $(".photo").mouseenter(function() { $(this).html('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#v...

jQuery simplemodal not working well in Safari for Windows

Hi all, I am using Safari 3.0.4 on Windows, and when I go to the simpleModal examples, http://www.ericmmartin.com/projects/simplemodal/, they don't work. Specifically, they do make everything go grey and disabled, but no modal div appears. I can't find it by scrolling up and down the page, either. I can "close" the modality though by hit...

jquery find integer inside string

Hi, My text: var str = 'Cost USD 400.00'; How do i use jquery to find number only in that str? ...

How To Insert OPTIONs into SELECT with jQuery -- Cross-Platform, Even IE6

I need a cross-platform way to insert OPTIONs into a SELECT with jQuery. I think I recall in the past that IE6 does nothing when this is called: <select id="myselect" size="1"> <option value=""></option> </select> <script type="text/javascript"> $('#myselect').append('<option value="test1">test1</option>'); $('#myselect').append('<optio...

find previous element of a table using jquery.

I have a HTML table with following content. <table class='main'> <tr id='r1' class='tbl'> <td>V1</td> </tr> <tr id='r2' class='tbl'> <td>V2</td> </tr> <tr id='r3' class='tbl'> <td>V3</td> </tr> <tr id='r4' class='tbl'> <td>V4</td> </tr> <tr id='r5' class='tbl'> <td>V5</td> </tr> </table> I can select a row by using...

jQuery: position of a tooltip used in a slider

Hello, I'm using a jQuery Tooltip and a jQuery Slider (jQueryUI) at the same time. The slider works fine. But after scrolling tooltips are displayed at a wrong position (download screenshot or source). I guess it's because of wrong CSS … Why are some tooltips not displayed at the correct position? Thanks Johannes <script src="http:/...

Select element by index (multiple elements of same class)

Is there a way to select a element by index with Javascript or jQuery? For instance: <div class="item"></div> <div class="item"></div> <div class="item"></div> <div class="item"></div> Under jQuery I could get the length as 4, now is there a way to select and then manipulate a element of "div.item" based on its index number? ...

jQuery access parent object attribute?

So I have this code: function theObject(){ this.someelement = $("#someelement"); this.someotherelement = $("someotherelement"); this.someelement.fadeOut(500, function(){ this.someotherelement.attr("title", "something"); this.someelement.fadeIn(500); }); } for some reason this.someotherelement is undefine...

paginaton dropdown with jquery

I want to have a dropdown that will have the user select which record number they want to be on? so if I ave 200 records in db, it will have 4 pages and dropdown will look like this "Just an idea..not an exact code" <select> <option>1-50</option> <option>51-100</option> <option>101-150</option> <option>151-200</option> </select> I se...

jQuery: array of elements to raw html?

Let's say I have an array like this: var content = [ $('<p>...</p>'), $('<p>...</p>') ]; I need to get the markup of the concatenated elements. So I need to convert content" into a raw string: "<p>...</p><p>...</p>". How can this easily be done? Seems like there should already be something in the framework to do this. Somehow maybe ...

fadeIn vs fadeOut vs fadeTo

What is the difference between fadeIn vs fadeOut vs fadeTo ? ...