jquery

Finding and wrapping text with tag in another tag

There is a text for an exception result like that: <span class='sException'>Exception throwed. Please check details: Message:String was not recognized as a valid DateTime. Stack: at System.DateTimeParse.ParseExact(String s, String format, DateTimeFormatInfo dtfi, DateTimeStyles style) at ... </span> I want to wrap some texts(Message:...

Dynamic Elements are not appearing in IE8 until there is a mouse click

I have an Ajax request that returns search results, and I am dynamically creating DOM elements to display those results. This is working as expected in all the browsers I've tested except for IE8. The request is returning fine, the JavaScript is running successfully, and the elements are being created, but the elements are not being di...

jquery: context with closures?

Hi there! I got a simple question about jQuery but rather javascript approaches in general... Is it ok, to do this? : this._checkedTexts.length = 0; // <- array belonging to "me" var contextCheckedTexts = this._checkedTexts; $('#valueContainer input:checked').each(function() { contextCheckedTexts.push($(this).text()); }); Since '...

jQuery Tools - Slideshow

Hi there, I am trying to get familar with the jQuery Tools - Slideshow from Flowplayer (http://flowplayer.org/tools/tabs/slideshow.html). Has anybody a hint for me how to select e.g. tab2 as start default, or how to switch to another tab when starting? Thanks in advance, Juergen ...

jquery click event does not work when content is overwritten using ajax

I have explained the problem below this code <div id='content'> <div id='help'> blah blah blah once there lived a king named midas blah blah blah </div> <script> $(document).ready(function() { $('#help').click( function () { $('help').hide(500); }) }) </script> <!-- bottom of the page after a long other content -->...

Modify HTTP Headers for a JSONP request

Hello, I am using jquery to build a request to the Twitter Search API. I am using jsonp, as is needed for cross-domain requests. However, the Twitter API specifies that you should set a unique User-Agent for these requests, and limits your requests if you do not. The problem is, I see no way of setting this header via jquery. This is t...

Jquery on click change combo value

Hello , i have a product with some colors details. Eg: http://accommodationinbrasov.com/detail.asp?id=23# when i click a color for that product i will like the value of select (frame) to change to that color. anybody could get me on the right way? Thank you ...

select rows in a table except the table header rows

Hi, How to select rows in a html table except the table header rows using jquery? <table id="mytable"> <thead> <tr> <th> Foo </th> <td> Lorem </td> <td> Ipsum </...

jqGrid does not display search button(icon)

hello all, i have this following code for displaying data , it works fine , but it does not show search icon, what things i lost in my code? jQuery("#list2").jqGrid({ url:'post2.php', datatype:"json", colNames:['id','lastname','fname'], colModel:[ {name:'id',index:'id',hidden:true, width:90}, {name:'fname',index:'fname', width...

How did they do it? Realtime http://trendsmap.com/

Hi all? I wanna know how did they do this site. How did they do it? Realtime http://trendsmap.com/ ...

How to find the total number textbox in a web form using Jquery

How to find total number textbox present in a web form using Jquery? ...

jeditable and rails 3

Hello ! I'm trying to use jeditable with my rails 3 apps. I would like to edit some fields inline. Actually it's working on my client side but the data isn't updated in my app. Could you take a look? Thanks in advance! my view: <dt>Overview :</dt> <dd class="edit_textfield" id="<%= @project.id %>" name="overview"><%= @project.overview...

will there be a jsMath-like library or plugins in jQuery?

Hi all, I am interested to develop a mathematics web forum. I have tried jsMath; it is a cool javascript library to render latex command on the client side. The rendered output is also beautiful because it can load tex font installed on the client computer. However, I am wondering its security so I prefer to use jQuery library if this ...

Jquery attr function does not work in IE7.

Hey All I am using jQuery 1.3.2, It seems the attr function does work in IE8 and FF 3 but not in IE7. The problematic code: .attr("disabled",true) or .attr("disabled","disabled") Is there an alternative way to disable an element? (a specific option in a SELECT element) Thank you. ...

ASP.NET a problem with jQuery's ajax function

Hi, I have button and that jQuery script (to start the progress bar): <script src="../_Files/JScripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../_Files/JScripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script> var intervalID; $("#<%=this.Button1.ClientID%>").click( function() { ...

How to invert the forecolor and backcolor when any one of them changes

I am using a ajaxtoolkit to choose a color. I want to set the forecolor of the text as the reverse of backcolor. if a black has been choosen as backcolor then its corresponding forecolor should be set to white and vice versa. I want to do this with javascript <script type="text/javascript"> function colorChanged(sender) { // ...

getJSON problem (jquery)

Hi, I am trying to use getJSON to submit username and password to a webservice and alert "hi" This is my code: $.getJSON(address+"?format=json&jsoncallback=?", {CustomerEmail: email, Password: password}, function(){ alert("hi"); }); The http headers submit a 200 message so it should be OK but it does not enter the function, ...

Match part of img src when comes into dom and add a class to a <p> tag that matches - jquery

I've got an ajax loaded image gallery that loads an image to the dom and then removes it and loads in the next one and rotates in that way. Next to where the image comes in i've got a list of static names (they're there on page load and don't do anything) for the images. What i want to do is as the image is loaded into the dom, i want ...

onchange find this parent

Hi i am really stack. I have a few select boxes (at least 5) with the following structure <li> <div> <select name="sb[]">...</select> </div> </li> When a sb change i want to make an ajax call pass the selected value and replace the content of parent li with the html receive from ajax. I tried the following onchange=" ...

jQuery Dialog, closing when click outside

I know I can use the following to close the dialog box by clicking outside: $('.ui-widget-overlay').click(function() { $("#dialog").dialog("close"); }); But how do I change this so it works for every dialog box, ie I want to say close any dialog box as we have multiple on a page and would be easier to have one line of code? ...