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>
...
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 ...
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
...
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 ...
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...
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...
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...
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...
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 ...
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...
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)?
...
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...
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...
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 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>
...
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
...
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!
...
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.
...
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...
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...