jquery

How to begin with autocomplete(jQuery)

Hi all, I need some help in getting started with jQuery and autocompleting a username for example. $('#username').replaceWith('<input id=\"username\" type=\"text\" name=\"user_name\">'); My first aim was to replace #username(dropdownbox) with a textfield. I already figured that out. My second aim is: Username: Faili Username: Feli...

Inserting value to AjaxControlToolkit.HTMLEditor using javascript

I'm using AjaxControlToolkit.HTMLEditor, and I want to add value to it using javascript or jquery like this: alert( $find("eCompose_ctl02_ctl01")); // if $find("eCompose_ctl02_ctl01").attr('value') = "asdfasdfasdf asdfasd asdf sf"; also tried like this: document.getElementById('eCompose_ctl02_ctl01').value += "ababsakas asdasd l"...

Apply different background color using jquery

Hi, I have a collection of child div's inside the parent div,the child div's are generated dynamically and all has the same class name. My question is how to apply different background color for each child div using jquery sample code below <div id="someid"> <div class="bar">...</div> <div class="bar">...</div> <div class="bar...

Accessing a specific row using Jquery

I am having a table and i am adding rows dynamically in to it using the following code.There is a dialogue box which is having a yes and a no button.The problem is that i need to ask some thing through that dialogue.If the user says no ,it will close the dialogue and the row will be added using after function of j query.But if the user s...

on one PC with same IE8 version and same OS loads corectly web page on other get strange problem!!!

Can any one help to solve the problem with IE8 on my computer http://www.lifestyletelevision.tv/lstv2/ flash player loads us it should be, but on other computer same version IE8 on refreshing the same page flash player screen stays in same possition but content moves to the let possition... ...

jquery selector before-last

I have a dynamic list and need to select the before last item. <ul class="album"> <li id='li-1'></li> <!-- ... --> <li id='li-8'></li> <li id='li-9'></li> <li class='drop-placeholder'>drag your favorites here</li> </ul> var lastLiId = $(".album li:last").attr("id"); // minus one? ...

Google Elevation API with AJAX?

Hi, I am trying to use the Google Elevation API with the getJSON function of JQuery. I am using this code which is using JSONP : jQuery.getJSON("http://maps.googleapis.com/maps/api/elevation/json?locations=23.444,45.4545&amp;sensor=false&amp;jsoncallback=?", function(json){ alert("a"); }); I can see in Firebug that the GET reque...

add drop shadow to Select element in HTML

I have a simple drop down list and like to add shadow, it seem hard to find a working code, what do you suggest? <select> <option>apple</option> </select> ...

Jquery Hide multiple rows have the same id

Hello, i have multiple rows with the same id and when used the jquery function : hide(); it hide the first row only and ignore the rest rows. Could you please tell how can i fix it ? Thanks in Advance Neveen ...

IE9 HTTPS security is compromised by my Greasemonkey script?

I’ve got a Greasemonkey-for-IE script in IE9 that’s importing jQuery. But on secure pages it doesn’t work. I’m getting: SEC7111: HTTPS security is compromised by http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js The code that fails is: var script = document.createElement("script"); script.setAttribute("src", "http...

How can I see all the images in Sliding Image Gallery plugin in jQuery?

Hello, I want to do the effect presented by Mead Miracle http://www.meadmiracle.com/SlidingGallery.aspx . So I am using this plug-in in jQuery. What I want is to navigate through all the images and not only three. So I want to have all the images shown and do the same effect. Does anyone know if I should change a parameter or is somethin...

How to install the autocomplete plugin when using gm

Hello all, I'm trying to autocomplete some text-fields with $('#username').replaceWith('<input id=\"username\" type=\"text\" name=\"user_name\">'); $("input#username").autocomplete({ source: ["c++", "java", "php", "coldfusion", "javascript", "asp", "ruby"] }); I know there's a jQuery autocomplete plugin. How do I include the pl...

jQuery Selectors: Grabbing a section of children that are of a given tag

Say I have an arbitrary number children (e.g. "td"s) of a given element (e.g. a "tr"), and I need to grab a given number of these (say, 4) at a given position (say, 3; td's 3 - 67, in this case). What would the best query for doing this look like? Note that I could be dealing with a potentially thousands of children, so I'd like to not...

Is there a XHR request/response manager for Dojo

I was wondering if Dojo (or any of its extensions) provides a (reliable) XHR request/response manager that would allow me to queue, block and retry calls when needed. Something similar to AJAX Queue/Cache/Abort/Block Manager v. 3.0 for jQuery. ...

overflow div hide than scrolling not come ...

i have a div with overflow auto and height fix , when i hide that div and show it again than scrolling not come but before hiding the div scrolling was there why this happen why style is changed to overflow hidden , and for solving this problem what should i do ? ...

Are there any asp.net or jquery wysiwyg editors that work inside an updatepanel

I've tried multiple editors and have been able to successfully find one that works 100% of the time in an updatepanel and in IE8. ckeditor works fine until a postback in which it fires a hidden error. There are posts on it but no successful resolutions. I was wondering if anyone has an example site that successfully used an editor in an ...

what does this jquery selector means

what does this jquery selector means $("*[regex]") I want to select all controls which have an attribute regex. ...

Website crashing (in) Firefox

Hi I have created a newly designed site that went live just last week. I have had reports back from a friend of a friend that it crashes in Firefox. They haven't passed on what version they are using, but hinted that it was on the mac. I haven't been able to recreate this crash at all, and wondered if anybody out there either experienc...

jquery add remove tr from table after click in every td and passing data

Hi, i've a table with more tr and td : <table> <tr> <td><a href='1.htm'> 1 </a></td> <td><a href='2.htm'> 2 </a></td> <td><a href='3.htm'> 3 </a></td> </tr> <tr> <td><a href='4.htm'> 4 </a></td> <td><a href='5.htm'> 5 </a></td> <td><a href='6.htm'> 6 </a></td> </tr> When user clicks on first td with href=1.htm a new tr after ...

jQuery Selectors: Which is faster for grabbing a subset of children?

Following up on this question, I have the following 2 options: $("tr td").slice(3, 6); And possibly something like this (algorithmically speaking, I mean; I know making new query strings for each element is kinda silly): var subset = $( "tr td:nth-child(4)" ); for(var i=4; i<7; i++) subset.add( "tr td:nth-child("+i+")" ); Which wou...