Click here to Skip to main content
15,887,337 members
Home / Discussions / Web Development
   

Web Development

 
QuestionOwin Pin
ernest_hemingway07730-Apr-14 2:56
professionalernest_hemingway07730-Apr-14 2:56 
Questionwhat & how to prepare for ASP.net and php interview in one month Pin
Akash Tripathi29-Apr-14 4:03
Akash Tripathi29-Apr-14 4:03 
SuggestionRe: what & how to prepare for ASP.net and php interview in one month Pin
Richard Deeming29-Apr-14 4:40
mveRichard Deeming29-Apr-14 4:40 
QuestionAbout PHP and ASP Discussion Pin
Abhinandan Nimsarkar29-Apr-14 0:35
Abhinandan Nimsarkar29-Apr-14 0:35 
AnswerRe: About PHP and ASP Discussion Pin
thatraja29-Apr-14 2:28
professionalthatraja29-Apr-14 2:28 
GeneralRe: About PHP and ASP Discussion Pin
Abhinandan Nimsarkar29-Apr-14 2:57
Abhinandan Nimsarkar29-Apr-14 2:57 
GeneralRe: About PHP and ASP Discussion Pin
thatraja29-Apr-14 3:33
professionalthatraja29-Apr-14 3:33 
QuestionMy data is not loading into another tab when clicked. Any ideas? Pin
samflex28-Apr-14 17:00
samflex28-Apr-14 17:00 
Hi again Experts,

I have another problem that is stumping me.

The code below loads in a jQuery tab called ExistingRequests.

PHP
 "aoColumns" : [

 { "mDataProp": "RequestID", "sWidth": "50px", sSortable: true,
   "bSearchable": false,
   "bSortable": false,
   "fnRender": function (oObj)
    {
     // oObj.aData[0] returns the RequestID
        return "<a target='tab' data-tab-name='#RequestDetails' data-tab-index='2' href='viewdetails.php?requestID="
                        + oObj.aData["RequestID"] + "'> " + oObj.aData["RequestID"] + " </a>";
                }
               },
  { mDataProp: "RequestDate",  "sWidth": "100px", sSortable: true },
  { mDataProp: "RequestorFullName",  "sWidth": "150px", sSortable: true },
  { mDataProp: "PrimarySiteContactDisplay",  "sWidth": "250px", sSortable: true },
  { mDataProp: "RequestLocation",  "sWidth": "150px", sSortable: true },
  { mDataProp: "RequestDescription",  "sWidth": "200px", sSortable: true },
  { mDataProp: "RequestStatus",  "sWidth": "100px", sSortable: true },

],


This is of course relevant code.

The code above also has a RequestID that is hyperlinked.

When a user clicks that link, detailed records associated with that link is displayed on another tab called RequestDetails. (Thanks in large part to Richard Deeming).

The problem is that when the data loads into RequestDetails tab, it loads as json data.

We wanted to it load as html form fields with values.

The code below is supposed to help resolve this problem but it doesn't work.

When you click the link, nothing happens.

Can someone please tell what I and doing wrong?

The code below was originally written by Richard Deeming and it would open in RequestDetails tab as stated but after the changes, it longer loads data in RequestDetails tab when clicked.

Your assistance is greatly appreciated.

PHP
$("#exmple").on("click", "a[target='tab']", function(){
  var me = $(this);
  var url = me.attr("href");
  var tabName = me.data("tabName");
  var tabIndex = parseInt(me.data("tabIndex"), 10);
  $.get( url, function( data ) {
var table = $( '<table cellpadding="4" cellspacing="0" border="1"/>' ),
    tr = $( '<tr/>' ),
    td = $( '<td/>' ),
    th = $( '<th/>' );
tr.clone().html( th.text( 'Time' ) )
.append( th.clone().text( 'Room' ) )
.append( th.clone().text( '???' ) )
.append( th.clone().text( '???' ) )
.appendTo( table );
$.each( data.aaData, function(i,v) {
    tr.clone().html( td.clone().html( v[0] ) )
    .append( td.clone().html( v[1] ) )
    .append( td.clone().html( v[2] ) )
    .append( td.clone().html( v[3] ) )
    .appendTo( table );
    });
    $( tabName ).html( table );
    $("#tabs").tabs("option", "active", tabIndex);
    }, 'json' );
    return false;
});

QuestionServer returned HTTP response code: 403 for URL: ....? Pin
Hy Chanhan28-Apr-14 16:40
professionalHy Chanhan28-Apr-14 16:40 
AnswerRe: Server returned HTTP response code: 403 for URL: ....? Pin
Kornfeld Eliyahu Peter28-Apr-14 21:55
professionalKornfeld Eliyahu Peter28-Apr-14 21:55 
QuestionHELP Coding search button in VB Pin
ynettep28-Apr-14 14:21
ynettep28-Apr-14 14:21 
AnswerRe: HELP Coding search button in VB Pin
Richard Andrew x6428-Apr-14 14:49
professionalRichard Andrew x6428-Apr-14 14:49 
GeneralRe: HELP Coding search button in VB Pin
ynettep28-Apr-14 15:06
ynettep28-Apr-14 15:06 
AnswerRe: HELP Coding search button in VB Pin
Wes Aday28-Apr-14 15:10
professionalWes Aday28-Apr-14 15:10 
GeneralRe: HELP Coding search button in VB Pin
ynettep28-Apr-14 15:35
ynettep28-Apr-14 15:35 
GeneralRe: HELP Coding search button in VB Pin
Wes Aday29-Apr-14 1:08
professionalWes Aday29-Apr-14 1:08 
AnswerRe: HELP Coding search button in VB Pin
ZurdoDev28-Apr-14 15:53
professionalZurdoDev28-Apr-14 15:53 
SuggestionRe: HELP Coding search button in VB Pin
Richard Deeming29-Apr-14 2:26
mveRichard Deeming29-Apr-14 2:26 
QuestionDrag-nDrop in ASP.NET Pin
Bheem Sen Singh28-Apr-14 1:43
professionalBheem Sen Singh28-Apr-14 1:43 
AnswerRe: Drag-nDrop in ASP.NET Pin
ZurdoDev28-Apr-14 16:05
professionalZurdoDev28-Apr-14 16:05 
GeneralRe: Drag-nDrop in ASP.NET Pin
Bheem Sen Singh25-Jun-14 23:33
professionalBheem Sen Singh25-Jun-14 23:33 
QuestionI would like to have your advice to finish a big non-profit social project Pin
Pedro197027-Apr-14 13:09
Pedro197027-Apr-14 13:09 
QuestionRe: I would like to have your advice to finish a big non-profit social project Pin
ZurdoDev28-Apr-14 16:06
professionalZurdoDev28-Apr-14 16:06 
AnswerRe: I would like to have your advice to finish a big non-profit social project Pin
Pedro19701-May-14 12:20
Pedro19701-May-14 12:20 
AnswerRe: I would like to have your advice to finish a big non-profit social project Pin
ZurdoDev1-May-14 15:03
professionalZurdoDev1-May-14 15:03 

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.