User Profile

Collapse

Profile Sidebar

Collapse
dhsieh
dhsieh
Last Activity: Feb 6 '08, 05:09 PM
Joined: Aug 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • dhsieh
    started a topic PHP odbc error reporting
    in PHP

    PHP odbc error reporting

    I am using PHP 5, Pervasive ODBC Client Interface 8.70.14.00 and I have a database connection set up using the code block below. I'm connecting to the Exact Max ERP to do select queries using odbc_connect().

    [PHP]$link = odbc_connect("D SN", "", "") or die("Error connecting to DSN.");
    if($link <= 0) {
    echo "Error:";
    echo odbc_errormsg() ;
    exit;
    ...
    See more | Go to post

  • dhsieh
    replied to Nested AJAX Calls Problem
    It seems like I've created a closure with the AJAX call being in the for loop, and that's the reason why everything is returned at once at the end of all loop cycles instead of once per. Can anyone shed some light on how to fix this?
    See more | Go to post

    Leave a comment:


  • dhsieh
    replied to Nested AJAX Calls Problem
    I was trying to set it up so that the function inside the for loop would append the information onto each address entry after the Fax line. Do I not have that set up correctly? Thank you for your reply.
    See more | Go to post

    Leave a comment:


  • dhsieh
    replied to Javascript Closure Question
    So this would effectively change the value of a to "b" globally?

    Code:
    var a = "a";
    function test() {
        blah = function() {
            a = "b";
        }
        alert(a);
    }
    See more | Go to post

    Leave a comment:


  • dhsieh
    started a topic Nested AJAX Calls Problem

    Nested AJAX Calls Problem

    I am trying out nested AJAX calls for the first time, but I seem to have hit a snag. The code snippet is the outer AJAX call and a function, it gathers information about a company.
    As we get towards the bottom of the onComplete function, there is a call to doGetAddressCon tacts(), which accepts an address ID. This then returns a list of contacts at that address.
    What I am trying to do is for each address that it retrieves and outputs,...
    See more | Go to post

  • dhsieh
    started a topic Javascript Closure Question

    Javascript Closure Question

    Hello all,

    I have been trying to understand how JavaScript closures work but I have been struggling. In this code snippet that I created to test things, I can't figure out how to change the value of the variable a to "b" without passing an argument into the function or returning the value. Can someone please help? Also, does anyone know of a site that explains closures in simple detail? Thanks.

    Code:
    function
    ...
    See more | Go to post

  • Hello again,

    I've solved my previous problem with using GROUP BY originalid and ORDER BY originalid DESC.
    See more | Go to post

    Leave a comment:


  • Need help with query to select the latest revisions of records

    Hello all,

    I have a revisions table with the fields uniqueID, originalID, revNumber, data1, data2 and so on. What I am trying to do is select only the latest revisions for every unique originalID.

    For example, if I have the records of uniqueID, originalID, revNumber as follows:
    1, 1, 1
    2, 1, 2
    3, 1, 3
    4, 1, 4
    5, 2, 1
    6, 2, 2
    7, 3, 1
    8, 3, 2

    I want...
    See more | Go to post

  • dhsieh
    replied to Dynamic Event Handler problem
    That worked great, thank you very much. Is the count attribute a custom attribute? I thought one could only set attributes that pertain to the element.

    I was trying out my own fixes to this problem and I encountered something weird.

    [CODE=javascript]
    for(var i=1; i<=numRows; i++) {
    alert(i);

    tbl.rows[i].cells[1].childNodes[1].onclick = function () {
    alert(i);
    ...
    See more | Go to post

    Leave a comment:


  • dhsieh
    replied to Dynamic Event Handler problem
    Thanks for replying iam_clint, I tried that method and it threw me an error "missing formal parameter"...
    See more | Go to post

    Leave a comment:


  • dhsieh
    started a topic Dynamic Event Handler problem

    Dynamic Event Handler problem

    Hello all,

    I am working on a function that renames each table row's elements, as well as reassigning the function calls dynamically. I ran into a problem where I am trying to assign the new functions. Pardon me if this sounds confusing, here is the snippet of code.

    [CODE=javascript]
    var i;
    for(i=1; i<=numRows; i++) {
    tbl.rows[i].id = "row" + i; //Rename each row
    tbl.rows[i].cells[0].firstChild.id...
    See more | Go to post

  • dhsieh
    replied to Question about using templates with FPDI
    in PHP
    nobody has an answer for me?
    See more | Go to post

    Leave a comment:


  • dhsieh
    started a topic Question about using templates with FPDI
    in PHP

    Question about using templates with FPDI

    Hello all,

    I've recently started to work with FPDF/FPDI to generate dynamic PDFs based on an existing template. The problem is I am trying to import an existing template with FPDI, and the template is in landscape. When I import it into the new document that is already landscape, the template gets inserted as portrait. The result is of course a cropped template insertion.

    Does anybody know if it is possible to use a...
    See more | Go to post
No activity results to display
Show More
Working...