![]() |
Build Search and Replace Web form?
I want to know how or what would be the best way to achieve the following.If im not in the correct forum im sorry, I thought Javascript would be the best way.
I work with a large eCommerce company and we have to constantly replace images with new images and then clear the cache using a pre-made template. I'll show a small example of the template it's a *.txt file template that I use for refreshing content on "Akamai edge control" There is about 100 different lines in the text file each a little different but they all contain to sets of generic variables. (example excerpt below - using the PHP box to show my sample but its just links) PHP Code:
Ps. on the zzzzzz it always ends with "000" PHP Code:
I'm trying to eliminate a ton of work and make the process more efficient. My example of "123456" could also be up to "1234567". Maybe even pasting in more then one number separated with commas kind of like "123456,123457,123458" then it runs sample process generating a block of text for each number like it was found and replaced manually. Ideally I would like to just have a web based form like the image mock up below to perform the task, unless there is another way without installing software on over 1000 computers. Hope this make sense. Thanks in advance for any input. http://i.stack.imgur.com/6Kc5B.jpg |
not 100% sure what you need, but hopefully you can modify this to work for you:
Code:
<!DOCTYPE html> |
wow, almost exactly what I was looking for. I made a new image sample that might show a little bit more clear what I want it to do. Not sure what to tweak to get it to split the xxxxxx numbers and add the 000's
I just want to be able to add " 123456,123457,123458,123459, etc...endless" and then get the output to automatically take each of those numbers and plug them into the "xxxxxx" while also replacing the last three numbers with 000 and plugging into the "zzzzzz" Maybe even a COPY button at the bottom that will select the output script and/or copy http://i50.tinypic.com/10nt1t1.jpg I realllly appreciate your help. |
| All times are GMT +1. The time now is 06:51 PM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.