nando.silva Posted April 27, 2020 Share Posted April 27, 2020 (edited) Hi, I am new to coding and this site. I am trying to update a price of one item, i need to change it daily and I want to just update a text file, load the new price to an HTML page and format the new price for color and size. I will be using iFrame for the final page to show final output for my customers. Thanks Edited April 27, 2020 by nando.silva Link to comment Share on other sites More sharing options...
dsonesuk Posted April 27, 2020 Share Posted April 27, 2020 I would consider using JSON https://www.w3schools.com/js/js_json_http.asp for instance you can have properties with values with them like price, color, fontsize then ajax would read them to change price and set styling for container element. Or pass properties of price and class name and add class name to container element which will define the styling of color and font-size from css file. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now