jquery

Filtering mobile browsers by failure to execute using jQuery

Hi all, Just getting some css together for a mobile web app (using the xhtml-basic/xhtml-basic11 dtd) and was trying to think of a reliable way to filter for mobile browsers. I've taken a look at http://detectmobilebrowser.com but that appears to filter on the basis of a list of string matches. Here's what I'd like to do: 1 - In the ...

jQuery Animation + background image swap

Hi everyone, I am trying to punch above my weight with jQuery, and have run into a problem which has me stumped. Basically, I am trying to get a truck to animate from the left hand side of the screen to the right, then when it gets to the right of the screen, the background image of the truck swaps to an image of the truck facing the o...

Flyout menu with scrolling

Guys, I'm trying to create a flyout menu that has scrolling build in if its larger than the screen. I can't seem to figure out how to do this with the native overflow-y scrolling properties. Everytime I seem to set that overflow-y:auto then the the menu that flys out is nested within the parent div with a scroll bar. Anyone has any i...

Using jQuery with google.load

I am trying to understand how to use jQuery when it is loaded using Google CDN's google.load method. Putting the init code in the setOnLoadCallback function works great but defining functions for event handlers in the markup doesn't seem to work. In the example below, the P button works as expected but the Div button does nothing. Yes,...

Using the mouse to highlight

Hello, I'd like to take the selected text on screen (text highlighted with the mouse) and when a button is pushed wrap that text in a tag. I'd like to use jquery but if it can be done in another framework that would be fine too. I haven't been able to figure out how to do this yet, so any thoughts are appreciated. Also I know you can r...

jquery accordion, opening a box based on href

I am trying to open an accordion based on a link i send to the page This is my url services.html#branding I am using the following code in the head: <script type="text/javascript"> $(document).ready(function(){ $('#accordion').accordion({collapsible: true, animated: 'slide', autoHeight: false, navigation: true, active : '...

How can i access server controls from my external JavaScript file?

When i use this "#<%= txtNumberOfDrugsInKit.ClientID %>", i can access the server control from my JQuery script; but when i put this in an external script file, it does not work. How can i access an asp textbox from my external JavaScript file? I cant believe this is not working. ...

how to select event by class in prototype

hi , in jQuery. i am invoking an event by class. how do you do same in Prototype. $(".button").click(function() { var element = $(this); var Id = element.attr("id"); }); ...

scroller problem in IE

below is the code of table layout page. in FF it's looking as i think the bottom scroller locatesin the center of the cell, in IE7 it shiftted to left. what am I doing wrong? and how can I fix it? the URL is http://clickandgoegypt.com/ ...

Fieldsets having checkboxes

What is the right jQuery selector to use for all fieldset elements which have only checkboxes in them? I tried $("fieldset:has(input:checkbox") but that didn't work. Help? Thanks ...

Hiding element after firing click handler

Say I have the following code to add a clickable image after a set of elements. The click handler fires every time the image is clicked which is not what I want. I guess hiding the image using .hide() in the click handler is one approach but I can't figure out how to refer to the img element in the click handler. Help? Thanks $(...) ...

One page website with CodeIgniter and jQuery(AJAX)

Hello, I am looking to build a one page website, that runs on PHP(obviously using codeigniter) and AJAX(supported by jquery), at the moment I have a menu that gets populated from the database, depening on what catergories are selected as being on line, the then build a an url using those results, if(isset($main_menu)) { foreac...

jQuery set value only if empty

I am utilizing a modal for setting a default value for a series of text box fields. However, I only want to set the field to the default value if no value already exists. Is there a way to do that with a jQuery selector? Current Code var fooVal = $('#cboxLoadedContent').find('#SetFoo').val(); var barVal = $('#cboxLoadedContent').find('...

Use JQuery to wrap multiple sets of elements in a Div

I'm working on a dropdown menu and need to mutate the existing html markup with JQuery to make it fit the design. Here is a simplified example: Wrap all "ul's" that contain more than one "li" in a div (in the same div, NOT one div for each UL). <ul> <li>foo</li> </ul> <ul> <li>foo</li> <li>foo</li> </ul> <ul> <li>foo</l...

how to populate the second drop down using the selected value in first drop down?

Say I have two drop downs which are populated when the my jsp loads <select id="Group" name="group"> -- first drop down <option value="0001">1</option> <option value="0002">2</option> </select> <select id="subGroup" name="class"> -- second drop down <option value="0001-000">A</option> -- sub group associated with option ...

How can if find the size of a file prior to upload, with the help of jquery ?

I want to check the file size before uploading it, so that i can restrict the users before uploading. I want it use the jquery, but please suggest some thing else, if it is not possible in that way. I am using PHP at backend. ...

Bound gridview problem; jquery resolution in unbind?

Good evening all. I have a bit of a puzzler for you. On my page I have a cascading ddl (ddlBuyer), a textbox search (tbxProdAC) and a radio button list (radTopx). These, once populated, and a submit button clicked, produces a gridview populated with data. What I am trying to achieve is that the user can only select either the ddl, the ...

Convert HTML Block to String in Javascript (output from uEditor)

Hey all, I've been having trouble getting the value from a WYSIWYG editor passed to my ajax controller, and I'm wondering if I'm doing something wrong. The WYSIWYG I'm using is uEditor (http://www.upian.com/upiansource/ueditor/en), and since I couldn't seem to directly get the value, I decided to use jQuery to search and find the value,...

Trigger jCarouselLite on keypress

I'm using jCarouselLite to create a navigation element somewhat similar to the tabbed navigation used on Panic's Coda site, but I'd like to trigger the left and right scroll on a keypress. Can this be done without modifying the jCarouselLite code? Thanks! ...

Unbind gridview in jquery

Is it possible to do the above? i.e. I have a gridview that binds to a data set. Currently I have a ddl that when a client clicks on it, the gridview 'disappears'. (i.e. $('#GridView1').remove();) However this does not remove the bind and therefore when a postback occurs, the gridview is populated with the 'erased' dataset. Can I use...