Forum
10:17
Moderators
30/10/2007
Hello,
Just tested with ui-darknes and everything is ok for me.
Please be a sure you have the latest fersion of jQuery UI
Use the theme and the code from the same version.
Be a sure all the files from the theme are copied to the server.
Check your permissions.
Also if the problem persist, please send me a simple test case in order to investigate.
Regards
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
12:54
12/03/2012
The problem is only for Add, Edit dialog box.
everything else look fine.......
This is my JSP
<html>
<head>
<title>User View</title>
<link rel="stylesheet" type="text/css" media="screen" href="jsquery/resources/jquery/css/ui-darkness/jquery-ui-1.8.17.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="jsquery/resources/jqgrid/css/ui.jqgrid.css" />
<script type="text/javascript" src="jsquery/resources/jquery/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/ui/jquery.ui.tabs.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/ui/jquery.ui.dialog.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/ui/jquery.effects.core.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/ui/jquery.effects.blind.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/ui/jquery.effects.explode.js"></script>
<script type="text/javascript" src="jsquery/resources/jqgrid/js/grid.locale-en.js" ></script>
<script type="text/javascript" src="jsquery/resources/jqgrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="js/user.js"></script>
<style type="text/css">
body,table {
font: 11px Arial;
}
</style>
<body>
<table id="jsonmap"></table>
<div id="pjmap"></div>
</body>
</html>
————————————————————————————————————-
This is user.js
$(function() {
jQuery("#jsonmap").jqGrid({
url:'userViewAll.do',
datatype: "json",
colNames:['Id','First Name', 'Last Name', 'NBK ID','Email ID','Role'],
colModel:[
{name:'accountId',index:'accountId', width:55, editable:true, editoptions:{readonly:true}, search:false},
{name:'firstName',index:'firstName', width:150, editable:true, editrules: { required: true}, searchrules:{"required":true}},
{name:'lastName',index:'lastName', width:150, editable:true, editrules: { required: true}, searchrules:{"required":true}},
{name:'userNBId',index:'userNBId', width:100, editable:true, editrules: { required: true, custom:true, custom_func:f_checkNBK}, searchrules:{"required":true}},
{name:'email',index:'email', width:300, editable:true, editrules: { required: true}, search:false, sortable:false},
{name:'roleName',index:'roleName', width:120, editable: true, edittype:"select", editoptions:{value:"1:ROLE_USER;3:ROLE_ADMIN"}, searchrules:{"required":true}}
],
rowNum:20,
rowList:[20,30,40,50],
pager: '#pjmap',
sortname: 'accountId',
sortorder: "desc",
jsonReader: {
repeatitems : false,
id: "0″
},
caption: "User List",
height: '500px',
editurl: 'editData.do'
});
jQuery("#jsonmap").jqGrid('navGrid','#pjmap',{edit:true,add:true,del:true},{closeAfterEdit: true},{closeAfterAdd: true});
});
13:38
10/08/2009
You should never ever use <html> pages without <!DOCTYPE html ...> line before. In the simplest form it would be <!DOCTYPE html> and it will mean that your page is written in HTML5. The usage <html> without DOCTYPE means that you use quirks mode. It means that your page is more as 15 year old and it is created before HTML 4 standard are known. Probably you are in the time of IE3. The quirks mode will be not supported by jQuery UI.
Look the documentation for an example.
Best regards
Oleg
15:37
10/08/2009
Sorry, was <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> already in your previous test? In the case the problem should be another one. It is strange only why you deleted the line from the HTML code which you posted in your previous post.
Next which is not clear: do you have another results now after the usage of <!DOCTYPE HTML>? Is the problem with ui-darknes still exist?
What is additionally wrong in your code: you included first jquery-ui-1.8.17.custom.min.js and then you includes the same modules of jQuery UI as ui/jquery.ui.core.js and so on. You can either include jquery-ui-1.8.17.custom.min.js or include ui/jquery.ui.core.js, ..., but not the both in the same time.
07:37
12/03/2012
The docType was already there in my code <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I did removed the other js files and keep the doc as above, then facing same problem. But when I change the doc type to <!DOCTYPE HTML> the problem get resolved
Below is code which is not wprking
<%@page language="java" session="true"%>
<%@ include file="taglibs.jsp"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page isELIgnored="false"%>
<%@ page import="java.util.*"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>User View</title>
<!– CSS –>
<link rel="stylesheet" type="text/css" media="screen" href="jsquery/resources/jquery/css/ui-darkness/jquery-ui-1.8.17.custom.css" />
<link rel="stylesheet" type="text/css" media="screen" href="jsquery/resources/jqgrid/css/ui.jqgrid.css" />
<script type="text/javascript" src="jsquery/resources/jquery/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="jsquery/resources/jquery/js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="jsquery/resources/jqgrid/js/grid.locale-en.js" ></script>
<script type="text/javascript" src="jsquery/resources/jqgrid/js/jquery.jqGrid.min.js"></script>
<script type="text/javascript" src="js/user.js"></script>
</head>
<style type="text/css">
body,table {
font: 11px Arial;
}
</style>
<body>
<table id="jsonmap"></table>
<div id="pjmap"></div>
</body>
</html>
Most Users Ever Online: 715
Currently Online:
56 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66