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...
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...
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...
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.
...
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...
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 />
desc...
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.
...
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...
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...
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...
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...
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...
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...
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 ...
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?
...
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...
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...
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 ...
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...
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"...