Hey people.
I remember seeing a tutorial somewhere that talks of how to style your input forms in a more “usable” way.
Essentially, you have a placeholder value and when you enter the input, it hides the hint so to speak.
Now, just to be clear: I don't want the hint (placeholder value text) to disappear on focus, but rather to go ligh...
I'm currently trying to hack a kind of edit-in-place functionality into the JIRA bugtracker without changing its page templates. So, on the detail page for an issue, I'm attaching dblclick events to fields that replace the static field with an editable form element (from the edit page, which has been ajax-loaded and cached at the beginni...
hi all,
i was wondering - when using jQuery (or any other javascript include) in my web,
does the browser cache it after the first download for all all pages (i assume yes) or will it download it every time?
2nd, when the user quits the browser and starts it again (for loading my website), will the jquery js file still be cached or wil...
Hi,
When I set a pre element to contenteditable and put focus in it for editing, it receives a dotted border around it that doesn't look very nice. The border isn't there when focus is somewhere else.
How do I remove that border?
Thanks
...
hi my dear friends
i have a little problem about using jquery...(i reeally do not know jquery but i forced to use it)
i am using vs 2008 - asp.net web app with c#
also i am using telerik controls in my pages
also i am using sqldatasources (Connecting to storedprocedures) in my pages
my pages base on master and content pages and ...
Hello, i have this form for adding videos. Now, there's a input field for "title" and i want that to disappear if you have pressed on the checkbox "tryout". How should i do that in JS.. i use jquery.
...
I am using JavaScript and jQuery and would like to call a function when the user releases the Shift key. The code I came up with works in all the browsers I've tested so far, however the following warning appears in the error console using Firefox 3.5.7. I've tried jQuery 1.2.6, 1.3.2 and 1.4.1.
Warning: The 'charCode' property of a ...
I need to make tet-a-tet comet chat with many channels using PHP as a backend and JQuery as a frontend. I need something like event-driven server to do this... But didnt find any simple and appplicable to my task. Please, tell me the best solution for this problem
...
Hi ,
I have a quick question about jquery ..
I want to find < a > tag witch has some text.
For ex my HTML :
<a href="#">A</a>
<a href="#">B</a>
<a href="#">C</a>
<a href="#">D</a>
And I want to find for ex the tag what has text "A" .
PS: In my logic it is something like this
$("a").text("A").css("background", ...
Hi,
I tried to exactly clone an object in javascript. I know the following solution using jquery:
var newObject = jQuery.extend({}, oldObject);
// Or
var newObject = jQuery.extend(true, {}, oldObject);
but the problem with that is, that the objects type gets lost:
var MyClass = function(param1, param2) {
alert(param1.a + param2.a...
Hello,
I'm looking to create a select menu that shows and hide certain divs based on the selected option; something like this:
<select name="choose_colors" id="color_selector">
<option value="select_color">Select color</option>
<option value="red">Choose Red</option>
<option value="blue">Choose Blue</option>
<option value="gree...
events: [
{
title: 'All Day Event',
start: new Date(2010,2,13)
},
{
title: 'Long Event',
start: new Date(y, m, d-5),
end: new Date(y, m, d-2)
}
]
How to make this array in JSP after getting data from database?
...
I have written a set of javascript functions that allow me to validate user input on a form. I only want to accept valid input, and impose the following behaviour:
When a user enters an invalid form, I display an alert and inform them that the value entered is incorrect. Crucially, the original (valid) value in the form is not changed.
...
Say I have this dropdown:
<select name="color" multiple="multiple">
<option value="red">Red</option>
<option value="green">Green</option>
<option value="blue">Blue</option>
</select>
So basically more than 1 color can be selected. What I'd like is that if a user selects red, and then clicks green, i'd like a function to be called each...
I have a POST controller action that returns a partial view. Everything seems really easy. but. I load it using $.ajax(), setting type as html. But when my model validation fails I thought I should just throw an error with model state errors. But my reply always returns 500 Server error.
How can I report back model state errors without ...
I have been using the jquery form plugin to submi forms on my page and it works great.
But when I try to submit a form that has been loaded using .load it doesn't work.
This is my code:
$(document).ready(function() {
//shows loading screen whilst posting via ajax
$().ajaxStart($.blockUI).ajaxStop($.unblockUI);
...
How to do the following:
I want to have a link [upload image] which pop ups modal form,
and when user populates it, the form is processed.
(The question is not about uploading, this may be a contact form or anything).
My problem is, how to display the form and server side validation messages when validation fails.
I have found this tu...
I've decided I need to improve my javascript programming skills, as well as my OO skills. I am currently reading through some books, but sometimes it's hard to get a grip on the theory without seeing some practical examples first. So, I have a theoretical question about "best practices" for the following scenario...
I would like to cr...
Hi,
I have a lightbox script installed and now I want to apply the script on every image within the content div. How can I achieve this?
My current JS code:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$("a[rel^='prettyPhoto']").prettyPhoto();
});
</script>
The css/div I want it applie...
hi,
I've got a nested list and the jQuery script shown below to show/hide each list separately (+/- link) and to show/hide all lists at once (show all/hide subcategories). When I use show() and hide(), it works as expected, but when I use animations(eg, show('slow') or slideDown()), I get a strange issue. When doing:
1-show all
2-hide ...