Jump to content

output field in a different page


nando.silva
 Share

Recommended Posts

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 by nando.silva
Link to comment
Share on other sites

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...