jquery

jquery at IE8 bug?? hide and show can't display normally

I find in FF3.5, IE6, IE7 all work fine but only IE8...I don't which I should change. the following is my html sample <div id="L1">Menu1 <div id="menu1"> <ul> <li>111</li> <li>122</li> <li>133</li> </ul> </div> <div id="L1">Menu22222222222222222 <div id="menu2"> <ul> <li>211</li> <li>222</li> <li>233</li> </ul> </div> ...

How to iterate over div?

Hey ppl, i have the following scenary: <div class="maindiv"> <div class="msg">some text</div> ... <div class="msg">some other text</div> </div> I'd like to take the text of each 'msg' class div and translate it using Google API. I've made the following JS function: function translateTimeline(){ var lang ...

Jquery Cycle Plugin: How do you pause a slideshow on load

I I want to load a Jquery Cycle slideshow and after loading pause until the user clicks the Play button. I am new to Jquery so could you give me a detailed explanation and possibly example code. You can see my slideshow @ www.sessomsphotographics.com Thank you ...

jquery and setting range of values

I am trying to come up with a way using ajax and jquery to display a range of values for a select box. The first drop down has options that need to talk to a 2nd drop box and that is a range of numbers, I know how to set the value of a drop down to 1 value, but not how set the whole range. By default the dropdowns are being generated by ...

JS Events: hooking on value change event on text inputs

Hi all, I have a text input that its content is changed by a script not by user. So I would want to fire an event when the value changes. I can't find a suitable event for that. I event found this on StackOverflow but is not the solution I'm looking for. How to make this work with jQuery and a text input where the value is set like thi...

How Do I Prevent Enter Key Submit in jQuery?

I'd like to either simply swallow an Enter key press in <input> fields or else instead substitute Tab key presses. I haven't yet decided which is best. How can I do this in jQuery? I've got this so far: $(document).ready(function(){ ... //handle enter key $("input").keypress(function (e) { var k = e.keyCode || e.w...

Revert to the page's original CSS with jQuery

I have a page with a 'printer friendly' button that uses jQuery's .css() method to remove some backgrounds and border from specific elements, and change the font size. I can set another .css() method to change everything back to the way it was, but is there any easy way to revert everything on the page to its original CSS (aside from ref...

using bind('click') on a returned json result / adding to the DOM

So I tried the trusted google but found no satisfactory solution. Basically, I'm not sure if what I'm doing should work. I want to make an ajax call that returns a JSON result. I iterate over this result and write a string like this and push to #results span (all of this works fine): var str=''; for (var n=0;n<data.length; n++){ st...

Checkbox not working properly for IE with jquery

Hi, I am trying using several asp.net checkboxes on a page, disabling them accordingly. <asp:CheckBox ID='chkMenuItem' runat='server' CssClass='HiddenText' Text='Test' onclick='<%#String.Format("checkChild({0});", Eval("id")) %>' /> on javascript, I am using the following code function checkChild(id) { for (i = 0; i ...

How do I query exchange for all events on a calendar?

I'm currently writing a room booking diary template for an ASP .Net CMS and I need to be able to retrieve the information from an exchange calendar. Can anyone point me in the direction of some good sample code which lets me query an individual calendar based on a month parameter? Also, is it possible to provide a parameter to the quer...

What is the best way to keep track of the id of an element selected from an auto-suggest textbox?

I have an auto-suggest textbox. A user can either pick an already existing item in the database of type in a new one. How do i keep track of the id if item was selected (Store the id of the list of items coming from the db)? ...

better to use jquery on form submit button?

isnt it better to use jquery for form submit? like: Username: <input type="text" id="username" name="username" maxlength="30" /><br /> Password: <input type="password" id="password" name="password" maxlength="30" /><br /> <input type="button" id="register" name="register" value="Register" /> and then bind the id...

loop through tr's with Jquery and compare contents with next row in series

I'm somewhat new to jQuery/javascript, and would like to compare the contents of row[i] in a table body with row[i+1]. Is this something I can do with jQuery or should I just use plain old JS and getElementByid and then loop that way? using the .each doesn't appear to give anyway of accessing the next element in the series easily. I a...

Why does .html work and not innerHTML or appendChild

Hey! I am trying to add an ajax response to a div (it's htmlcode, tables, forms etc). In FF innerHTML works perfectly, but in IE it gives me an unknown error. I tried lot's of stuff, but I only got it working when I added jQuery and ran the .html method on the div I want the code inserted into. Anyone care to explain why this works ...

how to call ajax method when I select a data in a selection then perform a SELECT query from it

how can I call jquery ajax method when I select a data in a selection then perform a SELECT query from the selected data .... then i want to show the result from the query in the #info div Can someone help me? html looks like this <form action="details.php" method="post" > <select> <option value="volvo">Volvo</option> ...

JavaScript decorators HOWTO?

Hi all, I need to decorate a 3rd party function that I can't modify so I will need to decorate it in any way. I found that in Prototype there is something to do it easily [1]. Is there any alternative to that in jQuery or in plain JavaScript? [1] http://api.prototypejs.org/language/function.html#wrap-instance%5Fmethod ...

formvalidation with php and javascript/jquery?

im new in formavalidation. i am wondering if there is some library class you can download and include and then use for formvalidation in php and also in javascript/jquery? it would save a lot of time so you dont have to reinvent the wheel. thanks a lot in advance! ...

Rails // jquery ui.sortable // jq not sending request

There might just be an update i'm not aware of according to this post, but i have some trouble with the sortable; nothing get sent (neither firebug nor my controller get anything) - any browsers. On rails using this very good post Big thx for any info about it. ...

How to move scrollbars automatically

Hello, Steps Get remote data using ajax (jQuery) I Load the data into div with style overflow:auto When I view the page the data is still getting loaded. The scrollbar does not move till the end of the page . How do I move the scrollbar automatically so that the latest data is seen on the web page. Is this possible in Jquery?Pl...

Trying to create a click method for a div, doesn't work in IE6?

I made a simple div: <div id="foo"></div> and I added a click method to it in jquery $("#foo").click(wow); function wow(){ alert("Message"); } This works fine in Firefox/others, but doesn't work in IE6/IE7? Why? Any specific resources on this? Edit: The Div already exists in the dom, and the jQuery is run on ready, and it still...