Hi one and all,
Am trying to find a way of automatically updating the value within the other info question input attributed to products on the page..
i.e. when someone visits a product page, it will be linked to using say domain.tld/acatalog/product1.html?code
Some how using java script, need it to extract just the code after the ? within the URL and insert this into any other info prompts on the page.
Have identified that each other info prompt can be identified by O_NETQUOTEVAR:PRODUCTREF, but getting it to easily identify how many forms are involved within the page (i.e. just 1 product or 6 products which have the other info prompt) is proving to be a pain.
The answer is starring me in the face, but for the life of me, just can not find it.
Any bright sparks into j scripting got some fresh ideas on this one.
Cheers, Martin
Am trying to find a way of automatically updating the value within the other info question input attributed to products on the page..
i.e. when someone visits a product page, it will be linked to using say domain.tld/acatalog/product1.html?code
Some how using java script, need it to extract just the code after the ? within the URL and insert this into any other info prompts on the page.
Have identified that each other info prompt can be identified by O_NETQUOTEVAR:PRODUCTREF, but getting it to easily identify how many forms are involved within the page (i.e. just 1 product or 6 products which have the other info prompt) is proving to be a pain.
The answer is starring me in the face, but for the life of me, just can not find it.
Any bright sparks into j scripting got some fresh ideas on this one.
Cheers, Martin
Comment