I need to create, edit and delete the data in mysql. I made the servlet program for CRUD operation. I want build the webpage which displays the Table and buttons for CRUD. How should i start up write my JavaScript.
...
Hi guys,
I'm pretty new to programming and html design and would like to ask a question some might consider silly.
Here goes:
I have a registration form that is validated with jQuery validation plugin. Within this form, there is an email and password input which will be used as login credentials.
What I would like to do here is che...
I have normal HTML input fields, that have default borders depending on Window/Browser settings.
During form validation I set the border of elements to red. for Example
elem.style.border = "1px solid #ff0000";
If the user corrects the input, I want to remove the red border, so that the input field contains again the
default border.
...
Hello,
Can anyone explain me the size of window.localStorage (for example, 5MB in Firefox) is 5MB for each scope or only for all?
...
My code works perfect if I want to perform an action when pressin the ctrl key...
$(document).keydown(function(e){
if(e.ctrlKey){
if($('.selected').parent().next().length == 0){
switchTabs($('.selected').parent().parent().find('a:first'));
return false;
}else{
switchTabs($('.selec...
I'm opening new tab by click on button in the home page , and building the new tab from copying some Elements from the home page,on loading event,i do all my work , also I'm changing image src on load event by filling it from the server , i don't know why fire fox stuck on status of "Transferring data from server",can any one help me in ...
I'm new to the DOM and JavaScript and hitting on some problems when trying to call a function defined in a frame from the context of the top-level frame or Firebug.
Given the below frameset:
<html>
<body>
<frameset cols="*" rows="81,*">
<frame id="topFrame" tabindex="1" name="topFrame" noresize="noresize" scrolling="No"...
Can somebody please point out the error in this code?
function inspect(useDoubleQuotes) {
var escapedString = this.replace(/[\x00-\x1f\\]/g, function (character) {
if (character in String.specialChar) {
return String.specialChar[character]
}
return "\\u00" + character.charCodeA...
How can I store data in a mobile widget (JIL/W3C). Is Widget.setPreferenceForKey() the only option?
...
i am trying to display my products animation with the following code (jquery)
var prodNum = <%=prodNum %>;
var i = 1;
$.timer(5000, function(timer) {
$(".prods").hide("slide", { direction: "down" }, 500, function() {
$(".prods").html("<div class=\"prod\">" + $("#pr" + ((4*i) % prodNum)).html() + "</div>" +
...
I need to make a post ajax request, where in i need to pass entity classes as parameter.
for eg:
[OperationContract]
[WebInvoke(Method = "POST",
BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Json
)]
public bool SaveEmployee(Employee employee)
{
//inserting the d...
I have a textbox where i want to have an autocomplete that lets the user search through addresses. The user must be able to type in different words and the autocomplete must search through them to narrow its list.
I've been trying and reading the documentation, but nothing seems to do the trick as it always searches on the whole string...
Possible Duplicate:
How can I learn ASP.NET?
I'm a new comer to the ASP.Net world , i learned C# before and i have 3 years experience of C#,i wanna to ask what are the required steps to be professional in ASP.net in short time
,also i wanna to ask , is it a must to learn JavaScript ,Jquerey,CSS because i knows so little info's...
I am trying to make development easy and have highly optimized output in production.
The goals of what I am trying to do is:
Make production pages fast! I would like that the Google Page Speed and YSlow return the best scores. This means:
Combine and compress JS files and CSS and position the group in the right place (bottom or top o...
Hello, i am using the jqueryPlugin fullcalendar. I add (see the example on http://arshaw.com/js/fullcalendar/examples/external-dragging.html) external events.
On the drop event i have difficults to add or manipulate the attributes of the added event.
drop: function(date, allDay) { // this function is called when something is dropped
...
I have to display a number whose color changes from Red to Green uniformly as the value of the number decreases.
Is there any way to generate the font color of that number according to the value ?
...
Is it possible to detect on my page, for example using Javascript, when user visit it using mobile device in portrait mode, and stop orientation changing when user rotate its phone to landscape? There is game on my page, optimized for portrait display only and I don't want it in landscape.
...
hello, I wonder if it is possible to refresh a div tag in javascript?
My ajax script
<script type="text/javascript">
function actualiserDLIS()
{
var url = 'administration/gestionUtilisateurs.do?method=actualisationDLIs';
var params = 'DR='+encodeURIComponent(document.getElementById('selectDR').value);
var myAjax = new Ajax.Reque...
I have the following Javascript function that should return an array of groups that are in database. It uses $.getJSON() method to call get_groups.php which actually reads from the database.
function get_groups() {
var groups = [];
$.getJSON('get_groups.php', function(response) {
for (var i in response) {
gr...
In my site I use a CSS only dynamic menu. This is fine in desktop browsers, but not on iOS (iphone, ipad, etc) because the touch interface does not support the :hover selector.
My question is: what is the best way of supporting this on iOS? (Ideally either by patching with some CSS, or Javascript that will make the existing code work, r...