Hello,
I have a link navigation of categories retrieved from the database,
while I know how to display subcategories based on category link
clicked with classical approach, I want to do this with ajax,
The problem is with the classical style,I know the GET['id'] sent and
the row im in with the category, so by simple comparison, I know how
to display the subcategories under its parent category, but with ajax,
I cannot know the GET and compare it, so the subcategories are
displaying under a different category
Help appreciated 2 2645
On 3 Jun, 16:19, itpvision <itpvis...@gmail.comwrote:
Hello,
I have a link navigation of categories retrieved from the database,
while I know how to display subcategories based on category link
clicked with classical approach, I want to do this with ajax,
The problem is with the classical style,I know the GET['id'] sent and
the row im in with the category, so by simple comparison, I know how
to display the subcategories under its parent category, but with ajax,
I cannot know the GET and compare it, so the subcategories are
displaying under a different category
Help appreciated
Why should there be any difference between an AJAX request and a
"classical" one? You control the request to the server in both cases.
itpvision wrote:
Hello,
I have a link navigation of categories retrieved from the database,
while I know how to display subcategories based on category link
clicked with classical approach, I want to do this with ajax,
The problem is with the classical style,I know the GET['id'] sent and
the row im in with the category, so by simple comparison, I know how
to display the subcategories under its parent category, but with ajax,
I cannot know the GET and compare it, so the subcategories are
displaying under a different category
Help appreciated
Why not? Have a js function that gets the value of the option which is
the category. Then have the url that it is sent to for php processing
apppend the ?cat=cat_value. Do the AJAX call with that url. In your
php code just do a $_GET['cat'] and you have the category. The do your
lookups and build the return.
Works for me. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Sofia |
last post by:
My name is Sofia and I have for many years been running a personals site,
together with my partner, on a non-profit basis. The site is currently not
running due to us emigrating, but during its...
|
by: Brian Murphy |
last post by:
<?php
/*
I need your help. I'd be very thankfull if write me this script.I
need a script that displays a list of categories and subcategories
like this:
<select name="category">
<option...
|
by: Troy Lynch |
last post by:
I'm working on writing a website which I need to have lists of
products listed in categories and subcategories, and need to keep
track of whats in the tree. Like how many products from the root all...
|
by: Brian Murphy |
last post by:
I have a php-based yahoo-like web directory.I wanna give webmasters
the possiblity to integrate my whole directory in their websites with
their own formatting.I wanna this inclusion to be possible...
|
by: Bill |
last post by:
I've got a bookstore I'm developing, and I wanted to list all the
categories on the home page of the site. However, there are so many,
that they now extend way below the screen, making the page...
|
by: Manuel |
last post by:
If I have 2 tables CATEGORIES and PRODUCTS.
What's the most "elegant" way (in programming terms) of displaying all the
Categories with it's Products on a web page?
I would like to show a list or...
|
by: M. David Johnson |
last post by:
I cannot get my OleDbDataAdapter to update my database
table from my local dataset table. The Knowledge Base
doesn't seem to help - see item 10 below.
I have a Microsoft Access 2000 database...
|
by: Dave |
last post by:
Hello All,
These one may be a bit tricky, and what I'd like to do may not even be
possible. I would love to hear any ideas you guys have for solving
this.
Here is the situation: I have a form...
|
by: dlite922 |
last post by:
We've built an application that deals with business management. One of the modules is an inventory/product management for a retail store.
What I want to do is create a user friendly interface...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
| |