Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

General Discussions


You are currently viewing our General Discussions as a guest. Please register to participate.
Login



Reply
Another dumb question - anchors + query strings?
Old 02-15-2008, 04:44 PM Another dumb question - anchors + query strings?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
So lets say you're working on an ASP.NET project, and the client wants anchors (anchor points or named anchors? which are they?) everywhere on all their pages. They like tables of contents at the top like Wikipedia, but the pages are anywhere from 45 to 120 KB each, with more text content than anything, so they like being able to send links like domain.com/page.html#This_Is_The_Part_You_Want

All good so far. But they've been using an old system from the 1990s that lets them put their content into a database, then it writes out all the html files, then after all that, somebody uploads them by FTP. We're making them a new dynamic site so they can make their content and all the other steps are taken care of.

Now that we're introducing query strings like domain.com/page.aspx?Get_Data=25. It will look nicer for the end users, kind of like WordPress. But how do we use query strings and anchors together? What does that kind of URL look like? I'm guessing the anchor comes last, after all the query string stuff? Or is it even allowed, to mix them together like that?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-15-2008, 07:33 PM Re: Another dumb question - anchors + query strings?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,377
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
The page fragment identifier (anchor name (#name)) should be the last item in the URI

So:
protocol://subdomain.hostname.tld/folder/page.ext?key0=value0&key1=value1#footer
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-15-2008, 08:00 PM Re: Another dumb question - anchors + query strings?
Learning Newbie's Avatar
Defies a Status

Latest Blog Post:
Astounding Republican Paranoia
Posts: 5,662
Name: John Alexander
Trades: 0
That's what I thought, too. Because the query string is basically part of the address to a given page (as a collection of content), right? And the # fragment is just a location within that document.

I had been told it was domain.com/folder/page.aspx#fragment?queryKey=queryValue&secondKey=s econdValue

But that just doesn't seem right, so I'm glad I asked someone in the know.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Learning Newbie is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Another dumb question - anchors + query strings?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25572 seconds with 12 queries