Click here to Skip to main content
15,889,780 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Borderline programing question sorry.. :'( Pin
Richard Deeming29-Jan-15 8:08
mveRichard Deeming29-Jan-15 8:08 
GeneralRe: Borderline programing question sorry.. :'( Pin
Super Lloyd29-Jan-15 12:48
Super Lloyd29-Jan-15 12:48 
AnswerRe: Borderline programing question sorry.. :'( Pin
Kornfeld Eliyahu Peter29-Jan-15 9:00
professionalKornfeld Eliyahu Peter29-Jan-15 9:00 
GeneralRe: Borderline programing question sorry.. :'( Pin
Super Lloyd29-Jan-15 12:49
Super Lloyd29-Jan-15 12:49 
AnswerRe: Borderline programing question sorry.. :'( Pin
Afzaal Ahmad Zeeshan6-Feb-15 20:37
professionalAfzaal Ahmad Zeeshan6-Feb-15 20:37 
GeneralRe: Borderline programing question sorry.. :'( Pin
Super Lloyd6-Feb-15 22:13
Super Lloyd6-Feb-15 22:13 
QuestionAdvanced HTML (client side) Templating: Custom Markup Pin
Super Lloyd24-Jan-15 17:30
Super Lloyd24-Jan-15 17:30 
AnswerRe: Advanced HTML (client side) Templating Pin
Super Lloyd24-Jan-15 20:30
Super Lloyd24-Jan-15 20:30 
SuggestionRe: Advanced HTML (client side) Templating Pin
Kornfeld Eliyahu Peter24-Jan-15 22:18
professionalKornfeld Eliyahu Peter24-Jan-15 22:18 
AnswerRe: Advanced HTML (client side) Templating Pin
Super Lloyd24-Jan-15 22:48
Super Lloyd24-Jan-15 22:48 
GeneralRe: Advanced HTML (client side) Templating Pin
Super Lloyd24-Jan-15 23:22
Super Lloyd24-Jan-15 23:22 
SuggestionRe: Advanced HTML (client side) Templating Pin
Kornfeld Eliyahu Peter24-Jan-15 23:26
professionalKornfeld Eliyahu Peter24-Jan-15 23:26 
GeneralRe: Advanced HTML (client side) Templating Pin
Super Lloyd25-Jan-15 0:29
Super Lloyd25-Jan-15 0:29 
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 

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.