I have a Yahoo store. In order for me to access via javascript or HTML (on the client side) any information stored in Yahoo's product fields, I have to use something that looks like this...
<!--#ystore_catalog id=neo2-digital field=name -->
Where "id=" follows the product name. "field=" follows the information field stored on Yahoo's servers that I would like to access (in the above example, I use the name field, which pulls the name of the product). Yahoo requires the ID param and the FIELD param.
Now, what happens is that once the above is written into a client-side script or HTML and uploaded to Yahoo's servers, when that HTML or javascript is read back to a client, the information stored in Yahoo's servers under "<!--#ystore_catalog id=neo2-digital field=name -->" is read back.
So, in my case, I have a script that puts this information into a variable:
name="<!--#ystore_catalog id=neo2-digital field=name -->";
When this is downloaded into the client, that line would read...
name="MSI Neo2 Digital";
That's all nice and dandy, but I want my javascript to have total control of these these fields so I can use javascript variables, like...
name="<!--#ystore_catalog id="+product+" field="+field+" -->";
But this is impossible since the javascript puts the above together over on the client side, and if it is to work, the store tag must be fully assembled, and spat from the server side over at Yahoo.
I've experimented with all kinds of creative crazy coding to try to "trick" Yahoo's servers to do this but no luck.
Any ideas?