Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Zoho Docs
Google Docs
Each Attachment size should not exceed 1MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery UI
ugo1973
JQUERY UI - Dialog UI load $post content
in
Using jQuery UI
•
4 months ago
Hi
I have this
script
$('.modifica').click(function(){
var oTBL = document.getElementById('example')
var row_number = $(this).closest("tr")[0].rowIndex;
alert("row number: "+row_number);
var value = oTBL.rows[row_number].cells[0].firstChild.data
alert(oTBL.rows[row_number].cells[0].firstChild.data);
alert(value);
$.post('dati/testuali/test.php',{title: value} , function(resp){
$('<div>').dialog({
modal: true,
open: function () {
????);
},
close: function(event, ui) {
$(this).remove();
},
height: 400,
width: 600,
title: 'Ajax Page'
});
});
and i would like to insert th $.post response into a dialog ui how can I do that?
Ugo
1
Reply
Replies(2)
ugo1973
Re: JQUERY UI - Dialog UI load $post content
4 months ago
Solved in this way
$('.modifica').click(function(){
var oTBL = document.getElementById('example')
var row_number = $(this).closest("tr")[0].rowIndex;
alert("row number: "+row_number);
var value = oTBL.rows[row_number].cells[0].firstChild.data
alert(oTBL.rows[row_number].cells[0].firstChild.data);
alert(value);
$.post('dati/testuali/test.php',{title: value} , function(resp){
$(document.createElement('div'))
.attr({'class': 'alert'})
.html(resp)
.dialog({
buttons: {OK: function(){$(this).dialog('close');}},
close: function(){$(this).remove();},
draggable: true,
modal: true,
resizable: false,
width: 'auto'
});
});
I don't know if exist a better way
Ugo
Leave a comment on ugo1973's reply
kbwood.au
Re: JQUERY UI - Dialog UI load $post content
4 months ago
That's the way to do it, although I wouldn't use
document.createElement
. When removing it, destroy the dialog first.
$(
'<div></div>', {'class': 'alert'}
).html(resp).dialog({
...
close: function() { $(this).
dialog('destroy')
.remove(); },
...
});
Leave a comment on kbwood.au's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to ugo1973's question
Top
Reply
{"z2953500":[14737000003943236],"z22479716":[14737000003944304,14737000003941677]}
Statistics
2
Replies
398
Views
0
Followers
Tags
No tags available for this topic.
Cancel
Actions
Permalink
Related Posts
dialog close event
UI Selectable - allow select multip...
disable a sortable while dragging w...
JqueryUI Autocomplete Combobox with...
Smooth animations as revert is set ...