ARTICLE AD BOX
I am a novice at this so I'd appreciate any help or pointers to help me understand and solve my issue.
I have a PHP file that generates an HTML page, that contains a link to an external css file. This program keeps track of properties, their parcels and parcel values based on ratios. There can be many parcels, and many different ratios per parcel.
All of the parcel information for a given property is read into an array (parcels_a), but only a single parcel's information is displayed in a table.
This is followed by <div id="ratios"></div>
Each time the user presses "next parcel" or "previous parcel" a javascript function is called. This function updates the parcel information table cells by ID from the parcels_a, the "next parcel" and "previous parcel" buttons are updated, and the ratios div information is generated. This is done with an AJAX GET to ratios.php which looks up the ratio records from the database, and returns results with a table having a row for each of the ratios.
The problem is that the CSS does not seem to be applied to the returned results from the AJAX GET to ratios.php. I tried:
Referencing the class for the fields i.e. ($response='<input class="fielddatan" name="rationo" size="1" value='.$ratios["rationo"].'></td>' ;)
Defining the class as a variable i.e. ($ fielddatan= "font-family: verdana, arial, 'sans serif'; color: black; font-size: 11px; text-align: right;";) and then refering to it in the $response.
So I obviously, do not understand enough about how this is supposed, or even able to work.
Simply put, how do I populate a <div> with a response from an AJAX call and maintain the CSS styling when writing the complete table?
Thanks in advance
Jack
