I am a college student (computer science major) going into my junior year. I ve done some web design- but my only serious production level project was a set of relatively simple set of PHP scripts combined with MySQL to manage entries in a county wide contest in Clackamas County. However- I know several languages- though I don t have complete mastery of them. I good knowledge of the mechanics of HTML/CSS- but I m not great when it comes to layouts.
Languages:
Thorough: (X)HTML- CSS
Solid working knowledge: Python- PHP- generic XML
Basic knowledge: C++- Java- JavaScript- bash- SQL
This isn t a classified ad- I m just looking for advice as to what s out there and how to get it.
I m having trouble with enabling javascript. Everything tells me I don t have it enabled. I ve tried using guides for getting it to work- but with no luck. Anyone have any experience with this? Any help would be greatly appreciated.
Imagine that there is a webpage for updating the information of a customer(attributes:customer_id-name-gender)- it consists of a form which uses the POST method. When the client has finished making changes to the customer record and then clicks the update button.
Do you think the page should POST all values(no matter whether it has been changed or not) to the server?
Or just POST the values that have been changed?
The first approach does *not* require the client to have javascript turned on to keep track of whether a value has been changed because *all values* would be POSTED to the server(generates some unneccessary traffic because the client may only change some but not all values). And at the server side- these POSTED values can be used as inputs to the constructor of the Customer class to create a customer object and then call its update() function that executes an update SQL statement like this:
UPDATE [customer] SET name=$name-gender=$gender WHERE customer_id=$customer_id
By doing this- no matter whether the values have been updated- this single update statement always works- but it may affect the performance because some values not changed by the client are also re-overwritten to the database and it also generates some network traffic.
For the second approach- javascript must be enabled by the client to keep track of the changes and only the values that have been changed would be received by the server- and at the server side- after creating a customer object using a constructor that does not initialize the attributes- I would use the setter methods to initialize the attribute values to the POSTED values. For example- if the client only changed the name of a customer. Only setName($name) function would be used but not setGender($gender). And in the update() function- it can generates an update statement depending on which attribute values are initialized. Therefore- no overwritting values that have not been changed may occur. And it also tends to generate less network traffic.
However- my second approach does not seem to be very common.
Would you please give me some suggestions on my design?
Thanks a lot.
Thanks so much for your help.
i need a menu full of states to appear in one menu when the user selects a country from another menu. how would i go about doing this
when i go on youtube it wont let me watch videos
it says i either have java script turned off or i have an old version of adobe flash player
but i checked adn i have javascript turned ON and i downloaded a new version of adobe flash player but it still says the same thing!
how do i get it to work????!
No comments:
Post a Comment