jgrid validation.
Hi, i have to put the validation on jgrid cell. Like user cannot be able to enter the any value in calender cell even not the numeric value. How can i prevent script injection in grid cells. Thanks ...
Hi, i have to put the validation on jgrid cell. Like user cannot be able to enter the any value in calender cell even not the numeric value. How can i prevent script injection in grid cells. Thanks ...
Hi, i know, there is a gcomplete plugin, but i try to build my own. My problem is that i dont get an answer. JS $.get("http://www.google.com/complete/search?qu=chicken", function(data) { $('body').append("Data Loaded: " + data); $.each(data, function(i) { $('body').append('- '+data[i]+' <br />'); ...
I need to create a table with just 1 column containing times (starting from 4hrs) which increase in increments of 10 seconds for each row. So it needs to look something like this: 04hrs 00mins 00secs - 04hrs 00mins 09secs 04hrs 00mins 10secs - 04hrs 00mins 19secs 04hrs 00mins 20secs - 04hrs 00mins 29secs ..... 06hrs 59mins 50secs - ...
i have function that changes background color of element and src of image. in opera and firefox background changes while image is loading, in ie background changes when image is loaded. so if there any way to change bg in ie before image has not been loaded? ...
hi in a array i have 6 elements with id's such as [100,101,102,100,101,102] now i want to highlite two similar id's such a way that, on clicking id=100, it should be highlited and on clicking another id=100 that should be highlited because both ids are same, if not same it should not be highlited so, how to proceed with this using j...
How to add item to a listBox using jquery. for example in the following listbox <option value="1"></option> <option value="2">item 2</option> <option value="3">item 3</option> <option value="4">item 4</option> <option value="0">All</option> ...
I have problem with jCaret plugin in IE. jCaret downloads I want to get the caret position inside a textarea. My code looks like this: $('.myTextArea').click(function(){ var myCaretPos = $(this).caret().end; }); The problem in IE is that I only get correct result if the textarea is only one line, but if there are more than on...
Hi all, I've got some comments in a guestbook. p containins '(In [ 'sometimes. The '(In [' sometimes contains a list. <div class="comment searchable"> <p> (In <a class="changeset" href="/../" sets mynumber">[Phonebook]</a>) </p> <ul><li><tt>Name</tt>, <tt>Number</tt> </li></ul> <p>is <a class="is new entry" href="/../mynumber">new ...
I have a idea, a way to give user feedback i like to hover on a menu, that will highlight an img correcponding to the menu OR theinverse, hover over image will highlight the menu I think it can be done with jquery, but can it be done in pure css or do you have a example or code i can base my idea on thanks ...
I have a database generated page which shows lots of links. This page consists of 3 colums. In the first column, it gets the links from the database. In the second column it generated + links, and in the last column, it generated a - link So basically, each row generated consists of a url link, a + link and a - link. When the user ...
How on earth do you encode HTML with jQuery/JavaScript? Havn't found any working solution after hours of Googling and surfing this site. This: jQuery('<div/>').text(value).html(); does not work with jQuery! ...
I am looking for this since last friday, couldnt find any solution. One thing i thought about and tried several times, was to first build the function, where ALL items in the list, containing that one, which actually should be excluded from being droppable into other lists get the right to be moved within that list, and later building an...
I would like to know how to do something like Facebook does when you post a large text that shows you something like: Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam commodo venenatis nisl id convallis. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Pellentesque habitant...
I am working on a php form with some jquery, especially for the error and thank you messages. The jquery part can be viewed here: http://jsbin.com/ohuya3A working example of the form is available here: http://cozyphant-living.com/php/formular4.htmYou have to hit the "Formular senden" button to see the message panel. I wanted to make the ...
How can i offer custom url's for files uploaded by users. For ex: user uploads a file called stack.png and it's uploaded on directory http://www.website.com/uploads/stack.png But i want to allow the user to view/download the same file at http://www.website.com/username/uploads/stack.png Please note i don't want to use url shortening/c...
This is probably a very common question but here it goes. I created an image carousel for some small thumbs pics . When i click on a thumb it makes it slightly bigger and adds the id #click to it . I want to add the fancybox viewer if you click it again. Obviously $('a#click').click() did not work because the element is created afterward...
Trying to get JQuery to post JSON to a server: $.ajax({ url: "/path/to/url", type: "POST", dataType: "json", contentType: "json", data: {"foo": "bar"}, success: function(){ alert("success :-)"); }, error: function(){ alert("fail :-("); } }); Problem is the data appears on...
Hi, Is there a way I can use the 'bind' syntax for the 'toggle' event handler ? From the docs I can understand that the correct way is $('.selector').toggle( function() {}, function() {} ); My problem is that I am removing that element for some reason, and then again add it to the DOM. On adding it again, the toggle does not work....
Hi, I've got a site i'm working on that has a few absolutelty positioned divs that I need to resize on clicking, these will then fill the container that the divs are in. The question is how do I get them on toggle to go back to the original position (top, left) which is different for each. $(".work-item .toggle").toggle(function() { ...
Hi, i am using jgrid. i am creating a specific XML as per the jgrid format using c#(Castle Monorail). i am sending data to view in string format and pass it to "url:" but its not working. but if i m passing the xml file path to the "url:" its working and data is showing in the grid. Is i m doing mistake any where. Should i have to paa...