Closed Thread Icon

Topic awaiting preservation: Hiding rows in a table (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=8971" title="Pages that link to Topic awaiting preservation: Hiding rows in a table (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: Hiding rows in a table <span class="small">(Page 1 of 1)</span>\

 
saintgregor
Obsessive-Compulsive (I) Inmate

From:
Insane since: Dec 2003

posted posted 12-19-2003 12:41

Hi!

I found some ways to hide certain page elements lately, but none was really the right thing for my case. Maybe someone out there has a proper solution.

I've got a table with a large number of products. The visitors are coming from a page where they indicate their location, so some variable will be sent to the product page (e.g. with the value "dk" for denmark).
Afterwards I would like to put sort of a "tag" to each row of the table - So each row will be displayed just for those visitors where their country code is included in the tag. We're still trying to find out if this variable sending really works - in the worst case the visitor has to choose the country right on the product page.

I know - stupid solution in the era of databases. But unfortunately this kind of solution is out of the question for our project, just as any cgi, coldfusion, etc. solution.

By the way: If it works, will the other rows (with images!) load in the background? Just wondering if it will still be time conuming for people with a slow connection.

Thanks for any help!!

saint



Alevice
Paranoid (IV) Inmate

From: Mexico
Insane since: Dec 2002

posted posted 12-19-2003 21:59

Cookies may help, as for what i remember they can be handled thru Javascript. Altho i dont really know much about the coding involved :/

__________________________________


Sexy Demoness cel

saintgregor
Obsessive-Compulsive (I) Inmate

From:
Insane since: Dec 2003

posted posted 01-05-2004 11:08

we're checking on the cockie thing...

but does anyone have a code solution for the main problem??
thanks folks!

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-05-2004 14:44

saintgregor: If you don't want to or can't use a database, you could create several JavaScript files named according to a required field ( i.e. the location ) that would populate/document.write() the table of products. That way you'll only load the required datas.

Hope that helps.

saintgregor
Obsessive-Compulsive (I) Inmate

From:
Insane since: Dec 2003

posted posted 01-06-2004 00:22

maybe i did not exactly understand you, but another issue for this task is making it very simple. we don't have the time ressources for this project to change all country js-pages when the information on a specific product changes. i.e. if one product changes, the changes need to be the same for all countries (it will be A LOT of countries).
but the external js-thing sounds interesting anyway - thanks for the hint!

saint

poi
Paranoid (IV) Inmate

From: France
Insane since: Jun 2002

posted posted 01-06-2004 01:43

saintgregor: Obviously, all the clients wants the best things for the day before they ask for them Things will never change.
You can push my idea further and split the informations in more JS files. You could create one JS file per product plus one per country...

Provide more infos if you're still stuck. Or, since I'm about to start my freelance activities, I could do the job ( doesn't hurt to mention that )

« BackwardsOnwards »

Show Forum Drop Down Menu