have an array of values [1,2,4] representing the values of a multi-select box, how do i set them as selected using either jquery or plain javascript?
thanks for your help.
I have some popup dialogs on my webpage, in each of this dialogs i have defined some click event with jquery :
$(".links_view").click(function(e){ //code });
But the problem is when i activate one this click event, it will be executed in each dialog...
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"
]
}
I'd like to use css pseudo-selectors ( parent > child, element:first-child ) in my stylesheet but IE6 doesn't seem to recognize those. Is there any plugin (jQuery preferably) that would allow me to use pseudo-selectors freely without worrying about the damned IE6?
Thanks
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 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)
Given a method..
public ActionResult Method()
{
// program logic
if(condition)
{
// external library
// external library returns an ActionResult
}
return View(viewname);
}
I cannot control the return type or method of the external library. I want to catch its results and handle that in a dialog on the page - but I cannot figure out how to get back to the page to execute the jQuery that would be responsible for it. Any ideas?
How can I parse a html document or just a html element in order to replace all specific strings into other ones ?
In other terms:
- search for all strings #### in element .class
- replace them with $$$$$
I'm using jQuery..
thanks
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 :-(
Hello,
I need to find the string,decimal or boolean, byte value from jquery grid control,,
using extension methods,, can anybody tell me how to write extension methods to find string,decimal values?
thanks
Heya,
I am looking for a way to close a scripty2 dialog like this :
http://mir.aculo.us/stuff/scripty2-ui/test/functional/controls_dialog.html
From outside of the dialog (i.e. with firebug command line) but my javascript mojo is a bit limited and after 30 min of going around the DOM I cannot find a way. Any hints ?
NB : scripty2 is a rewrite of script.aculo.us which uses bits of Jquery UI.
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?
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
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.
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!
Hey guys. If you haven't already seen, Google has the ability to add a custom background image (for better or worse) and I was wondering how to achieve the same fade-in-on-load effect using jQuery.
Any ideas?
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.
Is there a one fix solution for all IE6 problems? One HTC/jQuery file that fixes IE6 problems like PNG, background position, hover, (even) rounded corners...
I'm just tired to look for all fixes, test them and put them seperately.
Hello,
I would like a select list that does the following:
When the select list is open, display the list of descriptions.
When the user selects an item, the select list will close an only the value will be displayed.
The reason for this is to conserve space as the values will be much shorter. I'm hoping that there's an answer in jQuery.
Thanks.
How can I user jQuery to separate multiple words in a td with an HTML tag such as <br/>?
For example, <td>hello bye</td> would become <td>hello <br/> bye</td>.
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?
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?
So, I am just starting to use jQuery with one of my Django projects, but I have a pretty noobie question.
In a django view you have to return an HttpResponse object from the view, but sometimes I don't need to return anything. For instance, I might just be updating the database via ajax and don't need to send anything back. So my question is, what do you do in that situation?
Thanks
I have an accordion side menu in my latest project that works in all modern browsers properly, apart from ie8.
In Ie8, using the menu and clicking results in random padding and margins to be added and sometimes disappear for no apparent reason. I can't find any bit of jquery code that would potentially cause this to happen which is a pain. Even more confusing is the fact that this doesn't happen in Ie7 =S
Can anyone here replicate this bug, and see what the problem is?
Project Demo to view in ie8
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?