Hi All,
I am using the following code to disable the anchor tag.Can anyone tell me how to enable it using jquery.
Code:
$("#rightt").attr("disabled", "disabled");
Geetha
I used JQuery.serializeArray() on a form to create an array of objects on a GreaseMonkey application:
[
{
name: a
value: 1
},
{
name: b
value: 2
},
{
name: c
value: 3
},
{
name: d
value: 4
},
{
name: e
value: 5
}
]
I need to use GM_xmlhttpRequest to serve these fields back to a server side application. What is the best way to return these fields?
Thanks in advance,
D
After reading the comments on this site:
http://www.webresourcesdepot.com/jwysiwyg-jquery-inline-content-editor-plugin/
There is a bit of consensus that jWYSIWYG editor is too buggy (especially in the last few recent comments). Has anyone had experience with it in a large production site?
I haven't run a huge sample of markup through it yet, but so far it has seemed to do the job fine.
Hi all,
Let's say my background color is red.
I want the input textfield to appear red, but when you click inside the input field to type it becomes a regulad textfield. And ofcourse when you are not active in the input field it should be back to its original state (red).
Its actually something you see quite often.
I thought of using toggleclass?
My input fields are all appended with jQuery
Thanks in advance
I used the same software used here http://us.gn.bartal.org/ to create a fixed width/height treemap in HTML + CSS.
I would like to make it elastic by having a JavaScript function to convert all pixels absolute positions and sizes to percentages.
How would you suggest to proceed? Is there some jQuery/Prototype/Dojo magic that I can exploit?
Part of the problem here is that i'm not sure what the best language to use in order to find the solution. I search and searched so please forgive if this is already a thread somewhere.
I'm using the roundabout plugin to cycle through 3 divs. Each div is 794px wide, which makes the roundabout-in-focus element 794 and the two not in focus 315.218px wide, positioned so half of each is hidden by the in-focus div. This is all well and good, however the total width of the display needs to stay within 1000px (ideally 980px, but i can fudge if need be.)
Basically I want to make the non-focused divs be 3/4 hidden by the in-focus div but for the life of me can't figure out what variables i need to edit in order to do it. Unfortunately it's not one of the many easily-changed options like z-index and minScale. i tried minScale but it's clear this isn't going to work.
the plugin outputs this code:
<li class="roundabout-moveable-item" style="position: absolute; left: -57px; top: 205px; width: 319.982px; height: 149.513px; opacity: 0.7; z-index: 146; font-size: 5.6px;">
i need to find out what changes the left positioning so it's shifted closer to the center of the stage, like this:
<li class="roundabout-moveable-item" style="position: absolute; left: 5px; top: 205px; width: 319.982px; height: 149.513px; opacity: 0.7; z-index: 146; font-size: 5.6px;">
i tried playing with the positioning functions of the plugin but all that did was shift everything in tandem left or right.
any help is greatly appreciated. this site is going to be awesome once i figure out all this jquery stuff!
here is a link to my .js file: http://avalon.eaw.com/scripts/jquery.roundabout2.js i've got an overflow:hidden on the to help guide the positioning of those no-focused items.
Example website is http://www.wikihow.com/Main-Page, check the "Recent Changes" heading on the right side.
I am really amazed with the implementation of such scroll bars.
Google also uses something very similar to this.
Can someone give me some idea how to do this using jquery.
I have a element which contains 3 child. let says
<div class="parent">
<div class="firstChild">firstChild</div>
SecondChild
<ul><li>thrid child</li></ul>
</div>
In the example I need to select first 2 childs and not the UL. how to do through jquery.
I am attempting to use coffeescript/jQuery to do the following:
1) Retrieve all the 'topics' displayed in the html (seen below)
2) Hide all the topics from display except for the first 5 listed.
I tried to do the following but is not working
//Retrieve the entire list of and hide all but the first 5 topics in the list
$(".topics .topic")[5..-1].hide()
Can someone advise me on how I can correctly retrieve the list of topics from the HTML document and subsequently hide ALL but the first 5 topics?
Hi folks,
this might be quite simple, but I must say I'm a bit confused on this topic.
I'm writing code based on two popular libraries:
jQuery
underscore.js
I am just wondering what would be the best way to isolate the code and prevent conflicts and how to merge it with its dependencies.
By merging I mean putting them within the same file. :)
I hope I'm not asking something which is too basic.
...and a last thing
MERRY CHRISTMAS EVERYONE! =D
hey there,
i want to implement a little feautre with jquery, where i want to catch the event that occures when the user clicks on the "Back" button of his browser, to get to the last page.
but how?
didn't find any working solutions :-(
I am wondering what the idiomatic way to render special language characters is using Handlebars.js templates. When I render the normal html I can use something like the Spanish lowercase e, é, and it renders as expected. When I pass the same text as a string to my Handlebars template I just see the characters é.
I have tried creating a Handlebars helper that used jquery to render the text using .html() then returning the .html() of the tmp element and I get the same results.
Is there any way of creating a combo box (<select>) with a size of 1? All the examples I can find allow for multiple selects but with a number of options visible at any one time. If this cannot be accomplished with bog standard HTML is it possible in a JS library such as JQuery?
I have 11 checkboxes with individual ids inside a modal popup.I want to have a hyperlink called SelectAll,by clicking on which every checkbox got checked.I want this to be done by javascript/jquery
i have following format of json in which i want to asscess 0.4 , kem , 2 , 2000 values
but it seems it doesn't have name index so how one can access it in jquery.
when i paste following code in json viewer then i am getting numerical index for 0.4 , kem , 2
"td": [
{
"@attributes": {
"class": "odd"
},
"span": [
"3",
"7"
]
},
"0.4",
"Kem",
"24\/04\/2010",
"2000",
"2",
"14000",
"Good",
"Buckley",
"56.0",
"2:05.32",
"36.65",
"54.5"
]
}
Im beginner and im experimenting on a website with fixed and relative postions, what i want to do is to stop bottom part when the two bottom lines(div .top_divider_line) touches nav menu(div .top_holder) here is the preview from site where im stuck.
http://elexoj.com/test/
I think making it with jquery will be lot easier but i've no idea how to do it, i'll really appreciate your help.
Thank You!
I'm developing an application with javascript. What I need is to have divs with id's (1,2,3...) and be able to insert a div between, for example, 2 and 3, with jquery, and then have that be the new three, and three becomes four, four becomes five, etc. I've got the div insertion working, I just need to know how to reorder the divs. Any ideas?
I want to check server response in javascript. For example I have a server A which will host the script. On excuting the script it will check if the server B is responding or not. If yest continue other wise redirect to server C. Is this possible with Javascript/Jquery? If not what could be a possible solution in PHP?
I am really amazed with the implementation of such scroll bars. Google also uses something very similar to this. Can someone give me some idea how to do this using jquery.
i want to submit a form via ajax javascript to cakephp function.
cakephp function accepts $this-data, so i want to convert html form datas to cakephp function acceptable format i.e $this-data(array)...
how to do this in javascript(jquery)
I've looked at free javascript html editors, and I haven't found any that I feel handle links intuitively. I like the way the gmail editor does it (also the same way blogger.com) does it.
Does anyone know if there is an open source editor that handles linking that way? Jquery would be preferable.
I currently have a simple flash Mp3 player on my site which works lovely. The issue is, most cell phones do not support flash and a large portion of my visitors come through via a mobile device. The alternative to this is to replace the flash player with a javascript player. I found a JQuery one but it only works on HTML5 compatible browsers. Does anyone know of a good alternative that would work on mobile devices as well as most desktop web browsers?
Hello guys, I have an ajax form that saves a object in the database then return a Message like this:
return Json(new {Message = "Message!"},
JsonRequestBehavior.AllowGet);
We are ok here, but I don't know HOW I'll get this result in the view to display in a jQuery modal. My ajax form is like the following and I want to get the result on the OnSuccess method:
<%using (Ajax.BeginForm("Form", "Controller", new AjaxOptions() { OnSuccess = "MethodThatIWantToGetTheJson" }))
Any ideas?
Scrollbars get quite a bit of use in the site i'm working on and how they look on some OS's really doesn't fit with the design - especially if someone's running xp!
looking for a lightweight css / jquery method of custom styling my scrollbars?