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...
User Profile
Collapse
-
Code Not Working in Firefox: keyup event
-
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... -
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:
...Leave a comment:
-
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...Leave a comment:
-
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,
... -
I have successfully implemented a solution to this problem by having two submit buttons:
When the form is submitted, use the server-side code to determine...Code:<input type="submit" name="update cart" id="update cart" value="update cart" /> <input type="submit" name="checkout" id="checkout" value="checkout" />
Leave a comment:
No activity results to display
Show More
Leave a comment: