postonoh's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
New Members
Active Posts:
4 (0.01 per day)
Joined:
02-October 12
Profile Views:
156
Last Active:
User is offline Oct 03 2012 08:16 AM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   postonoh has not set their status

Posts I've Made

  1. In Topic: How do I display database driven web links on pages.

    Posted 3 Oct 2012

    Problem fixed. thanks
  2. In Topic: How do I display database driven web links on pages.

    Posted 2 Oct 2012

    fix my ajax code problem was with timing.

    Change ajax code to this.
     function LinkLoadingLeftThenRight(BookID, page) {
                    //Starting code for the search for links
                    $.ajax({
                        type: "POST", // AJAX type post
                        url: "tabletbook.aspx/GetPageLinks",
                        data: '{"BookID": "' + BookID + '",  "page": "' + page + '"}',
                        contentType: "application/json; charset=utf-8", //This is required or you will get all sorts of strange things :-)
                        dataType: "json", //We need to specifiy JSON as to have the AJAX serilize the data between Client and server 
                        success: function (link) { // The msg that comes back has in it the d attribute which in this case contains an array from the server
                            LeftHotLinks = link.d; //Lets copy the links to a global array this gets set by the odd guy. andthen the even comes in right after and sets it
                            // so when the odd goes to render the global has the even values in it. hard to debug because you are introducing pauesse that won't exist normally ok.
                            $.ajax({
                                type: "POST",
                                url: "tabletbook.aspx/GetLinkOverImage",
                                data: '{"BookID": "' + BookID + '"}',
                                contentType: "application/json; charset=utf-8", //This is required or you will get all sorts of strange things :-)
                                dataType: "json", //We need to specifiy JSON as to have the AJAX serilize the data between Client and server 
                                success: function (ret) {
                                    LinkOverlayImg = ret.d;
                                    page = page + 1;
                                    //Starting code for the search for links
                                    $.ajax({
                                        type: "POST", // AJAX type post
                                        url: "tabletbook.aspx/GetPageLinks",
                                        data: '{"BookID": "' + BookID + '",  "page": "' + page + '"}',
                                        contentType: "application/json; charset=utf-8", //This is required or you will get all sorts of strange things :-)
                                        dataType: "json", //We need to specifiy JSON as to have the AJAX serilize the data between Client and server 
                                        success: function (link) { // The msg that comes back has in it the d attribute which in this case contains an array from the server
                                            RightHotLinks = link.d; //Lets copy the links to a global array this gets set by the odd guy. andthen the even comes in right after and sets it
                                            // so when the odd goes to render the global has the even values in it. hard to debug because you are introducing pauesse that won't exist normally ok.
                                            $.ajax({
                                                type: "POST",
                                                url: "tabletbook.aspx/GetLinkOverImage",
                                                data: '{"BookID": "' + BookID + '"}',
                                                contentType: "application/json; charset=utf-8", //This is required or you will get all sorts of strange things :-)
                                                dataType: "json", //We need to specifiy JSON as to have the AJAX serilize the data between Client and server 
                                                success: function (ret) {
                                                    LinkOverlayImg = ret.d;
                                                }
                                            });
    
                                        }
                                    });
                                }
                            });
    
                        }
                    });
                }
    

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

postonoh hasn't added any friends yet.

Comments

postonoh has no profile comments yet. Why not say hello?