jquery

JQuery Show/Hide - Values for Css Display Affecting Layout

JQuery uses the Css Display value under the hood of the simple show() and hide() functions. The following Html includes three buttons each wrapped in a span tag, and all three span tags placed in a parent div container. On page load the span tags are hidden using JQuery hide() and at some point later on they are displayed using the show(...

jQuery chart controls for ASP.NET

Hi, I would like to know some good jQuery chart controls which can be integrated with my ASP.NET application. ...

using jquery/ajax to send/update div when link is clicked

I have 2 layers that i need to update individually if a user clicks on either of them. <div id=wrapper> <div id=upvote> //This div can be filled by upvote.php?id=X <? echo getUpVote(); ?> <a href=#><img src=upv.png></a> </div> <div id=downvote> //This div can be filled by downvote.php?id=X ...

how to use jquery's semantic tabs without the div switching functionality?

I need to have the tabs as rendered by jQuery's semantic tabs (semtabs) but without the functionality that shows one div and hides the others. Is there a simple way to prevent that functionality to happen? The visual style is the result of several css styles plus some JS dynamic manipulation of styles and properties that would be t...

jQuery Validation - Changing "Required" Attribute based on other fields

Hi there - I'm using the jQuery Validation plugin (http://docs.jquery.com/Plugins/Validation) on a form I'm building. The form is made up of 6 fieldsets, each containing 3 text inputs for an email address, a first name and a last name. A simplified version of the markup is like so: <form id="ref" action="submit.php" method="post"> ...

Content Sliding Under Fixed Header And Footer

I am developing an app for the Iphone using javascript,css,html. How can i make the classic iphone effect where the content of the page (if it does not fit the screen in height) slides under the header and footer! Any ideas? ...

strange behaviour with json object coming from ajax call in safari/webkit

I'm using jquery to make an AJAX POST call to a web service, and getting a JSON object back, which gives me back some html code that i want to append to a div, it works fine in firefox but the problem is that safari doesn't do the appending, here is the example: $.ajax({ type: "POST", url: "ConnMgr.asmx/Request", data: JSON.strin...

JQuery Simplemodal and Tabs Help Needed

Hi, I've got an asp.net page containing a Textbox with an Autocomplete extender on it. It's setup so the user can type a short reference code into the textbox and then choose from the list of matching codes returned by the autocomplete. On the "select", I then call the server using JQuery. I'm currently using $.get here.... The callbac...

Using seek() in Flowplayer with an FLV file

Is it possible to use Flowplayer (flowplayer.org) and the seek() function with an FLV file? I'm not streaming. ...

jquery nice form

jquery .dialog() will create a nice floating box form. if i do not want floating box form but just typical form on the page. what jquery function should i call? ...

Javascript syntax for objects in jquery

I am trying to enhance my page with a jquery right mouse menu, but am having trouble building the correct structures to populate it easily. Currently my page contains (among other things) a list of items for the user to review. (an html table) Based on the users role, and the current state and context of the row, the user may take one o...

Why does the hover style not work on the leaf nodes of jQuery Treeview?

If you look at Sample 1 on this page, you will see that, when you hover over the folder entries, the text turns red, but not if you hover over the leaf entries. I would like the styling for the leaf entries to work the same way as the folder entries. Each branch of the tree is an unordered list. The leaf entries are list items <li>. ...

jQuery: Foreach element href?

Hi, The title sounds confusing.. but im sure this is possible! I have one button, (id='downloadAll') and many <a href="..." class="link"></a> on my page. What i want to do, for the purpose of finding out how to do this.. is to do something logic like this. var hrefs = ALL OF THE ELEMENTS WITH CLASS 'link'; foreach(hrefs){ alert(this.a...

Sticky footer with CSS Layout Template Module?

I'm currently looking into the JQuery library for CSS Layout Template module Is it possible to define the height of a placeholder with *? Meaning it will push content down if it has to, or fill up any remaining space if the complete content is less then the view port. This would be really nice to make the whole sticky footer thing mu...

Autolinking words to an URL using jQuery

Hello all I have an JS array like the following: var associativeArray = []; associativeArray["1"] = "First"; associativeArray["2"] = "Second"; associativeArray["3"] = "Third"; Now I need to use jquery to use the words like First, Second from the array and auto link them to a certain URL on the page. For example: Lets say the current ...

How to use jquery next() to select next div by class

I'm fairly new to jquery and struggling with something that should be fairly simple. I want to select the previous and next div with class "MenuItem" from the div with class "MenuItemSelected". HTML <div id="MenuContainer" class="MenuContainer"> <div id="MainMenu" class="MainMenu"> <div class="...

jQuery toggle effects 'flashing entire page' in certain cases.

I have a page that may have 10 or so editable 'panels' of information. To enable editing, I create a new DIV, load content via AJAX then toggle the divs (the one showing toggles off and the one I created with AJAX content is toggle to show). This works great except for the last (bottom-most) one or two areas. When those toggle, I get a ...

jQuery: I get OPTIONS request instead of GET

I am using simple jQuery $.get( .... ); Here instead of getting GET response I get OPTIONS.( checked in firebug Net) Same code is working fine in Safari. Looks like some problem with Firefox. Any workaround / solutions to fix this problem.. Thanks Kurund ...

image height using jquery in chrome problem

$('img').height() returns 0 in chrome, but it returns the actual height in IE and firefox. Whats the actual method to get the height of the image in chrome? ...

Javascript: Open 1+ links (that dont have content)

HI, This makes no sense, but for example if i downloaded a file to your /Downloads folder and i wanted to run file:///.../Downloads/myfile1.txt i could just go: window.location = "file:///.../Downloads/myfile1.txt; But if i had say 10, or it was generated by a script.. how could i do effectively this.. open ...myfile1.txt => ...myfile...