Click here to Skip to main content
15,903,385 members
Home / Discussions / Web Development
   

Web Development

 
Generaladd a background to every page Pin
tbbooher7-Mar-02 4:04
tbbooher7-Mar-02 4:04 
GeneralRe: add a background to every page Pin
Nick Parker7-Mar-02 5:30
protectorNick Parker7-Mar-02 5:30 
GeneralRe: add a background to every page Pin
Paul Watson7-Mar-02 6:07
sitebuilderPaul Watson7-Mar-02 6:07 
Generalprevent files from opening in the browser Pin
6-Mar-02 20:43
suss6-Mar-02 20:43 
GeneralRe: prevent files from opening in the browser Pin
mortrr7-Mar-02 10:44
mortrr7-Mar-02 10:44 
Generalbound datalist to database Pin
Mazdak6-Mar-02 8:10
Mazdak6-Mar-02 8:10 
GeneralJavascript Sorting Problem Pin
Nick Parker6-Mar-02 6:32
protectorNick Parker6-Mar-02 6:32 
GeneralRe: Javascript Sorting Problem Pin
mortrr7-Mar-02 10:56
mortrr7-Mar-02 10:56 
I assume you're talking about requesting the data again from the database, and not using dhtml (which could be he only reason why the script doesn't work with netscape) to sort the single page.

Getting your 10 records from the database, in the right order within a single page, can only be done by requesting those specific records by ID. So you'll have to send the IDs of the records back to the server (hidden input) with the sort field.

MS SQL:
"SELECT * FROM myTable WHERE ID IN ("+myIDs+") ORDER BY "+orderField

myIDs contains comma-separated IDs.

Paging after sorting using a different field, will be a bit confusing though, as the user whould have to return to your default sort-order.

- Morten
GeneralRe: Javascript Sorting Problem Pin
Nick Parker7-Mar-02 18:19
protectorNick Parker7-Mar-02 18:19 
GeneralRe: Javascript Sorting Problem Pin
mortrr7-Mar-02 21:52
mortrr7-Mar-02 21:52 
GeneralRe: Javascript Sorting Problem Pin
Nick Parker8-Mar-02 5:51
protectorNick Parker8-Mar-02 5:51 
GeneralRe: Javascript Sorting Problem Pin
mortrr8-Mar-02 6:10
mortrr8-Mar-02 6:10 
GeneralRe: Javascript Sorting Problem Pin
Nick Parker8-Mar-02 6:16
protectorNick Parker8-Mar-02 6:16 
GeneralRe: Javascript Sorting Problem Pin
mortrr8-Mar-02 6:22
mortrr8-Mar-02 6:22 
GeneralRe: Javascript Sorting Problem Pin
11-Mar-02 1:19
suss11-Mar-02 1:19 
GeneralGood drop down menu example Pin
alex.barylski5-Mar-02 13:40
alex.barylski5-Mar-02 13:40 
GeneralRe: Good drop down menu example Pin
Chris Maunder6-Mar-02 3:10
cofounderChris Maunder6-Mar-02 3:10 
GeneralRe: Good drop down menu example Pin
alex.barylski6-Mar-02 13:05
alex.barylski6-Mar-02 13:05 
GeneralRe: Good drop down menu example Pin
Nick Parker6-Mar-02 6:36
protectorNick Parker6-Mar-02 6:36 
GeneralLoading URL in current window Pin
alex.barylski5-Mar-02 11:25
alex.barylski5-Mar-02 11:25 
GeneralRe: Loading URL in current window Pin
alex.barylski5-Mar-02 11:52
alex.barylski5-Mar-02 11:52 
Generallog out on close window Pin
jakewilliamson5-Mar-02 8:06
jakewilliamson5-Mar-02 8:06 
GeneralVS.NET keeps touching MY code! Pin
Paul Watson4-Mar-02 22:48
sitebuilderPaul Watson4-Mar-02 22:48 
GeneralRe: VS.NET keeps touching MY code! Pin
Josh Knox (disabled)5-Mar-02 5:45
Josh Knox (disabled)5-Mar-02 5:45 
GeneralI need some information Pin
Mazdak4-Mar-02 5:27
Mazdak4-Mar-02 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.