Click here to Skip to main content
15,880,796 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Advanced HTML (client side) Templating Pin
best cardiology hospitals in kerala3-Mar-15 22:42
best cardiology hospitals in kerala3-Mar-15 22:42 
QuestionWeb development vs desktop development Pin
Picaro201522-Jan-15 21:22
Picaro201522-Jan-15 21:22 
AnswerRe: Web development vs desktop development Pin
David Mujica23-Jan-15 3:30
David Mujica23-Jan-15 3:30 
GeneralRe: Web development vs desktop development Pin
Picaro201525-Jan-15 22:48
Picaro201525-Jan-15 22:48 
AnswerRe: Web development vs desktop development Pin
Mycroft Holmes26-Jan-15 12:00
professionalMycroft Holmes26-Jan-15 12:00 
GeneralRe: Web development vs desktop development Pin
Picaro201526-Jan-15 20:45
Picaro201526-Jan-15 20:45 
GeneralRe: Web development vs desktop development Pin
Mycroft Holmes27-Jan-15 3:25
professionalMycroft Holmes27-Jan-15 3:25 
QuestionSending php generated form data via Ajax from Dialog box Pin
DeepCodeTech22-Jan-15 21:07
DeepCodeTech22-Jan-15 21:07 
Hi Guys any help on this? I have a dialog box triggered by a button click that calls my php script to generate a form which needs to be filled and submitted. I want to do the sending and conformation via Ajax. I have been recoding and researching for a few days but nothing on StackExchange or other websites help me with it. Here's the code:

Dialog box snippet;

$k('#CreateTable').click(function(e){
e.preventDefault();
var Call = $k('#CreateTable').attr('value');//.attr('id');

var util = $k(this).attr('id');//.attr('id');

$k('#dialog').dialog({
autoOpen: false,
title: 'Running Utility for: '+Call,
modal: true,
width: 450,
close: function(event, ui) {
$k("#dialog").dialog('destroy');//event.target
}//END CLOSE

}).dialog('open');
var utility = { 'utility' : util };
$k.ajax({
type: "post",
url: "inc/runUtilities.php",
dataType: "html",
data: utility,
success: function(data) {
$k('#DlgTxt').html(data).fadeIn('slow');
}
});
//return false;
});//END DIALOG

The PHP snippet;
Its part of a class that returns the $show variable.

$show .= "";
// action='".$_SERVER['REQUEST_URI']."'
$show .= '
';

$query = "SHOW COLUMNS FROM `".$_SESSION['WorkTable']."`";
if($output = mysqli_query($this->MySQLCxn->MySQLCxn, $query))
{
$columns = array();
while($row = mysqli_fetch_assoc($output))
{
if($row['Field'] == 'id') {}
else
$show .= '
';
}
}


$show .= '
'.@$row['Field'].':

 
Submit Create contact



 




';

And the JQuery that i am currently using trying to have it call my php to process the form being sent.

var $j = jQuery.noConflict();

(function($j){
$j(document).ready(function() {
$j("#cContactSbmt").click(function(e){
//I've tried .on(), .live(), .submit(), .trigger()
e.preventDefault();
alert('cContactSbmt clicked...');
$j.ajax ({
type:"POST",
url:"inc/runUtilities.php",
data: $j(this).serialize(),
success: function(msg){
$j("#thanks").html(msg)
$j(this).modal('hide');
},
error: function(){
alert("failure");
}
});
});


});

})($j);

For some reason its not working nothing showing up in the console as well. again: i have a dialog box that gets populated via Ajax with a php generated from that needs to get submitted to another php script that is to process it and reply to the dialogs. Any suggestions?
QuestionWeb Design Frameworks Pin
jason173499-Jan-15 5:31
jason173499-Jan-15 5:31 
GeneralRe: Web Design Frameworks Pin
Richard MacCutchan9-Jan-15 6:33
mveRichard MacCutchan9-Jan-15 6:33 
AnswerRe: Web Design Frameworks Pin
ZurdoDev9-Jan-15 6:59
professionalZurdoDev9-Jan-15 6:59 
AnswerRe: Web Design Frameworks Pin
Paul LeJoy23-Mar-15 21:50
Paul LeJoy23-Mar-15 21:50 
QuestionWhat Uses Comma Separated List in Square Brackets Pin
MadDashCoder5-Jan-15 16:29
MadDashCoder5-Jan-15 16:29 
AnswerRe: What Uses Comma Separated List in Square Brackets Pin
Peter Leow5-Jan-15 16:51
professionalPeter Leow5-Jan-15 16:51 
QuestionWeb Development Hierarchy Map Pin
mbfromit5-Jan-15 15:58
mbfromit5-Jan-15 15:58 
QuestionASP.Net MVC 4 Question Pin
Kevin Marois5-Jan-15 10:54
professionalKevin Marois5-Jan-15 10:54 
AnswerRe: ASP.Net MVC 4 Question Pin
Anurag Gandhi10-Jan-15 2:03
professionalAnurag Gandhi10-Jan-15 2:03 
AnswerRe: ASP.Net MVC 4 Question Pin
Member 1108108119-Jan-15 16:12
Member 1108108119-Jan-15 16:12 
AnswerRe: ASP.Net MVC 4 Question Pin
Rahul Rajat Singh13-Feb-15 0:28
professionalRahul Rajat Singh13-Feb-15 0:28 
QuestionI'm looking for a good crash course on Drupal for Wordpress developers Pin
Shane Lessard27-Dec-14 17:52
Shane Lessard27-Dec-14 17:52 
AnswerRe: I'm looking for a good crash course on Drupal for Wordpress developers Pin
Richard MacCutchan28-Dec-14 22:20
mveRichard MacCutchan28-Dec-14 22:20 
AnswerRe: I'm looking for a good crash course on Drupal for Wordpress developers Pin
mbfromit5-Jan-15 16:59
mbfromit5-Jan-15 16:59 
AnswerRe: I'm looking for a good crash course on Drupal for Wordpress developers Pin
Swinkaran5-Jan-15 17:08
professionalSwinkaran5-Jan-15 17:08 
QuestionHow to save data from Mutiple tabs of the same application screen Pin
Rajendra Kumar Katabathuni23-Dec-14 0:25
Rajendra Kumar Katabathuni23-Dec-14 0:25 
QuestionMVC: HTTP Error 403.14 - Forbidden; The Web server is configured to not list the contents of this directory. Pin
NarVish22-Dec-14 23:35
NarVish22-Dec-14 23:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.