User Profile

Collapse

Profile Sidebar

Collapse
jayturley
jayturley
Last Activity: Mar 14 '08, 07:19 PM
Joined: Aug 2 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jayturley
    started a topic Code Not Working in Firefox: keyup event

    Code Not Working in Firefox: keyup event

    I have a web page with the following items on it:

    [HTML]<label for="commission schedule">
    Commission Schedule<br />
    <span id="charCounter ">1000 characters or less</span>
    </label>
    <textarea id="commissions chedule" rows="10" cols="40"></textarea>[/HTML]

    I'm using a standard javascript addEvent function...
    See more | Go to post

  • The problem is as you have stated. You are just seeing a secondary manifestation of the same problem. When getmyval() is called it doesn't exist.
    When getmyval() exists, the element itself doesn't exists.

    Solution: create a hidden div on the page:

    [HTML]
    <div id="myvalStatus " style="display: none;"></div>
    [/HTML]

    Then, your javascript should run in...
    See more | Go to post

    Leave a comment:


  • When you submit the form, you are sending the form fields off to the server. The server cannot access your page, only return a new one.

    So, the key here is to do something a little differently. What you want to do is NOT submit to the server, but instead, hijack the submit functionality with javascript.

    I don't know if you are using a library like prototype or jQuery, but assuming not, here is the basic idea:
    ...
    See more | Go to post
    Last edited by jayturley; Aug 3 '07, 09:08 PM. Reason: misclick on the mutter mutter submit button

    Leave a comment:


  • jayturley
    replied to Planning Web Applications
    in PHP
    If you are building a small application, you can get away with one/two tiers, i.e. the presentation layer, and the data layer. It's not best practice, but can be useful for an intranet application. However, you will be limiting future extensibility and ease of maintenance.

    The n-tier (where typically n = 3) is a time-tested and valid way to develop web applications. The bottom tier, or data layer, would be your database, and the middle...
    See more | Go to post

    Leave a comment:


  • jayturley
    started a topic MVC development in PHP - best tool?
    in PHP

    MVC development in PHP - best tool?

    I have been looking at using PHP for a personal project, and I am wondering if there is any preference among PHP users between the two model-view-controller frameworks I found:

    cakePHP [1]
    codeIgniter [2]

    cakePHP seems to have more mindshare, but codeIgniter just "feels" more right.

    Anyone have any comments about these tools? Also, have I missed any?

    thanks,

    ...
    See more | Go to post

  • I have successfully implemented a solution to this problem by having two submit buttons:

    Code:
    <input type="submit" name="update cart" id="update cart" value="update cart" />
    <input type="submit" name="checkout" id="checkout" value="checkout" />
    When the form is submitted, use the server-side code to determine...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...