/    Sign up×
Community /Pin to ProfileBookmark

extracting text from dynamic search results

I have a web hosting service with E-Commerce facilities. This site has built in product and category search functions, but I need to dynamically build a seperate web page for each category. I am not the only person maintaining the product list though.

How can I extract the category names from the dynamically created search page so I can build a new page for each category ?

One thought was to try to include it in a page of my own, possibly using an IFRAME, but I am not sure how to get at the option text inside the select tag.

<b>Category Search</b>&nbsp;&nbsp;<SELECT STYLE=”font-size:10px;” name=custom_store_category>
<OPTION value=4>Accessories</OPTION>
<OPTION value=1>Cars</OPTION>
<OPTION value=3>Engine parts</OPTION>
<OPTION value=2>Parts</OPTION>
<OPTION value=6>Service</OPTION>
<OPTION value=8>something else</OPTION>
</SELECT>

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @tdrew spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...