jquery

javascript: missing : after property id

I'm trying to pass my own array of objects: results[num_row] = {'title:\'' + title + '\', ' + 'url:\'' + url + '\''}; but this returns the error in firebug when I try: results[num_row] = {title:'Link A', url:'/page1'} it works. Thanks, <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xh...

jQuery: "show all comments" click & hide at success?

I have this right now: <a href='javascript:showComments($displayWall[id]);' style='cursor: pointer;'>Show all $isThereAnyComments comments</a> On success in showComments, i want it to show this div: #showWallCommentsFor + wallID And then when it shows, then it should change "Show all" to "close" and then it should hide the div. How...

jquery address plugin interferring with scrollTo values

Hi! I've built an ajax-based website that utilizes the address jquery plugin for back forward button browser compatibility. However, since pages are fetched via ajax page conventional page refresh is not obvious and rather disorienting in terms of user navigation etc. User clicks a link, ajax fetches the page, although successful and pa...

jQuery, get and set tag values

Hi, I have a <span id="test">5</span> and I wand to get its value, 5. And I want to change that value. how do I realize that. ...

Making a nested link system change it's <li> bg on hover of other <li>

Hello all, Hoping someone has the time to help me out with some jquery confusion? I am trying to get the parent of an elements background change when the child is hovered and then go back to its default when the childs hover has ended. The problem I have at the moment is with my script I cannot get the code to return the background c...

jQuery autocomplete - include description

How can I add to the results which are displayed smaller text with a description? I have the description in the array of data that autocomplete is using. I can call this by using the .result function and calling item.description So right now I see a list: Item1<br /> Item2<br /> Item3<br /> I'd like to have it Item1<br /> &nbsp;desc...

JQuery string contains check

Hello, I need to check a string to see if it contains another string. var str1 = "ABCDEFGHIJKLMNOP"; var str2 = "DEFG"; What function do I use to find out if str1 contains str2? Cheers, Thomas. ...

jQuery, Select nested element

Hi, I select $("a.tp[programm='" + programm + "']"); then I want to select its nested element span.thump and set the text of it. How do i realize that? <h4><a programm="74" class="tp" href="#"><img src="/images/tuo.png"></a><a href=""> <img width="180" height="40" src="/images/kauf_default.png"><br>test <span class="thump">1</spa...

jQuery to highlight table row on radio select

Hi All, I have a table (standard markup) with a radio select in each row. Once the radio is selected I'd like to highlight that . Sounds straight forward enough but I can't get it to trigger. Here's the markup: The Table Row: <tr> <td>some data</td> <td>some data</td> <td>some data</td> <td> <label class="label_radio"><input...

ID selector problems with jQuery

I am constructing an extremely simple image rotator for use in Wordpress. It is comprised of a containing DIV and the "slides" (DIVs containing the images) that I want to rotate. The problem I have is that there are multiple instances on the page. To get round this I have used the $gallery->id output to give me each gallery a specific c...

ckEditor: no p and no br

Hello, I want to allow basic <strong>, <em> and lists with ckeditor. However I want NO <br> and no paragraph tags, as I nlb2 my content and I want it to be essentially naked. Via google I found that I could do: $(function() { $('#description').ckeditor({ enterMode : CKEDITOR.ENTER_BR, shiftEnterMode: CKEDITOR.ENTE...

stackoverflow style notification bar

Possible Duplicate: Notification alert similar to how stackoverflow functions The notification bar the top, which shows things like ' you earned xyz badge". How is it done? I am trying to create someting similar in my rails app. I use blueprint for my layout, it's a standard single column 950px layout, with everything from t...

jquery ui multiple dialogs

I couln't find any working example so i am trying my luck. i have a list of pages that i want to edit them via a jquery ui dialog. I already have every edit link with it's own id -- but i have no idea how to tell this jquery line $('#open_edit_by').click(function() { to open a window by id. (if i use php - it will work just for one). i k...

Looking for a jquery plugin that will mask sensitive information when entered in a normal textbox that is compatible with validation plugin

I have a multi-step form in which some of the fields are collecting sensitive information. A requirement that has come up is that we mask what people enter (like a password field) as they enter it for one particular field, so if someone is looking over their shoulder, they don't see the content. The problem is that users are able to ...

jQuery .attr not working.

Hi Folks, I am working on a sample problem on jsFiddle at http://jsfiddle.net/Q9yHD/ I am trying to add a border to my table with code: $("#") + $id).find(".name").attr("border", "thick"); But it doesn't seem to be working. What am I doing wrong in here? ...

jQuery AJAX submit Help

Hi, I have a form that lets a user perform a search for a stock symbol. The data is transmitted to another URL via PHP cURL. This is fine, we do this several other places on the site. I need to be able to trim the returned data (it returns a whole page) and only display the data between the {STARTKINETICK} {ENDKINETICK} parts. I need t...

what's the more elegant way to use an id already set? jQuery("#"+ t) ?

i'm kinda of a newbie in javascript, even though i built so far lots of working website and apps.. btu i feel naive the way i used to pass the variable id to jquery.. for instance i used to do like this epsecialy when i have to work with some old code .. let's assume that i have all my website already coded with 'a' tags like this <a i...

Google Maps API: positioning, some weird behavior and how to disable a couple of features

I've been working on creating this map for a client, but I feel a little bit in over my head. So far, I've managed to use modx to dynamically create a list of markers for the map, created a custom icon that works successfully and I've got it styled as I'd like it. However, I'm looking for a bit of help about the following: The custom ...

how to combine these 2 jquery animations code into one

here is the code so far. what i want is first the #spider to easeOutBounce then start doing this animation $("#spider").animate({top:"-=20px"},1000).animate({top:"+=20px"}, 1000); here is all the codes $(document).ready(function() { setTimeout("animation()",300); }); function animation(){ spider(); } fu...

Asp.Net MVC - JQuery remote validation

I got the following JQuery validation script : <script type="text/javascript"> $(document).ready(function() { $("#myForm").validate({ rules: { "Content": { required: true, rangelength: [20, 1000], remote: { url: "/RemoteValidation/IsValidContent"...