Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
Holger Knublauch
2011-08-09 11:38:30 +1000
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e492d8cb8e9bda0e7ce79b4297e9aaf1b6bda5f3
e492d8cb
1 parent
8ea51ae0
Progress on DDR upload with JSON request
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
1 deletions
www.reportinghub.no/swp/rh.www/jquery/jquery.form.js
www.reportinghub.no/upload-ddr.swp
www.reportinghub.no/swp/rh.www/jquery/jquery.form.js
0 → 100644
View file @
e492d8c
This diff is collapsed. Click to expand it.
www.reportinghub.no/upload-ddr.swp
View file @
e492d8c
...
...
@@ -3,6 +3,32 @@
<title>
ReportingHub - Validate or Upload DDR
</title>
<link
href=
"lib/rh/rh.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script
type=
"text/javascript"
src=
"lib/rh/jquery/jquery.js"
></script>
<script
type=
"text/javascript"
src=
"lib/rh/jquery/jquery.form.js"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
'#theForm'
).
ajaxForm
({
beforeSubmit
:
clearOutput
,
success
:
writeOutput
});
});
function
clearOutput
(
a
,
f
,
o
)
{
$
(
'#output'
).
html
(
'Submitting report...'
);
}
function
writeOutput
(
data
)
{
var
$out
=
$
(
'#output'
);
if
(
'valid'
==
data
[
"validation-status"
])
{
$out
.
html
(
'Report validated OK'
);
}
else
{
$out
.
html
(
'Validation failed: '
+
data
);
}
}
</script>
</head>
<body>
<div
id=
"wrapper"
>
...
...
@@ -15,7 +41,8 @@
Please select a DDR XML file:
</p>
<form
enctype=
"multipart/form-data"
id=
"theForm"
method=
"post"
>
<div>
<input
type=
"hidden"
name=
"MAX_FILE_SIZE"
value=
"100000"
/>
<div>
<input
name=
"file"
type=
"file"
/>
</div>
<br
/>
...
...
@@ -36,6 +63,8 @@
<br
/>
<input
type=
"submit"
value=
"Submit"
/>
</form>
<br
/>
<div
id=
"output"
/>
</div>
</div>
</body>
...
...
Please
register
or
login
to post a comment