html help please !

windows

Guest
Hi,<br />
<br />
I have 2 html files index.html and products.html, I saw a sample source code as <a href=http://www.webdeveloper.com/forum/archive/index.php/"./?pageid=product"> Product </a>.when i include this in the index.html and run in IIS iexplorer says i do not have a permisson to view the page product. I like to keep the href syntax as above instead of change it to <a href="products.html">. What can i do to get the link ".?/pageid" above to work ?<br />
<br />
thanks <br />
<br />
stwebber<!--content-->Why... why on earth would you do this. This ?id=id is called a query string, and it is only going to work with js or a server side script. The ladder would be the only efficient way to use it for navigation because if a user does not have js it will fail them. So you should just use a standard link. <a href=http://www.webdeveloper.com/forum/archive/index.php/"index.html?pageid=product">product</a> if you have a redirect code in the index page (but since it is an html file it would be js, which is whay I just told you not to do!). I can give you asp classic or asp.net scripts to get query strings and rotate out content or redirect based on the string, both will run on iis. <!-- m --><a class="postlink" href="http://quasi-ke.servebeer.com/filmstrip.asp">http://quasi-ke.servebeer.com/filmstrip.asp</a><!-- m --> is an example of a filmstrip I made for a user of another forum the other day, as you can see it uses query strings.<!--content-->thank your your reply i am a newbie so i do not quite understand your exp to make it short if you go to <!-- w --><a class="postlink" href="http://www.hotshed.com">www.hotshed.com</a><!-- w --> all the url link on that page is in the format of <a href=http://www.webdeveloper.com/forum/archive/index.php/"./?pageid=xxx" > xxx </a>. I am asked to do a page like that, can you make it clearer for me thanks ?<br />
<br />
stwebber<!--content-->you need a server-side language to be able to do that. what server side languages do you have available to you?<!--content-->I am using javascript if that is the server-side language you are asking .<!--content-->JavaScript is not a Server Side Language. It is Client Side (runs on the users computer. IF the computer supports it). It is not a good choice to write a menu system using JavaScript.<!--content-->if you dont have a serverside language its not going to be possible.<!--content-->how about java server pages is it going to work ? if it is can you show me how it done ?<!--content-->I'd like to ask you one thing: why would you want to go to this trouble just to create sloppy links?<br />
<br />
The example you've given uses overcomplicated, sloppy links for no other appearent reason then to show off; many of the links lead to the same page out of a very small set of pages.<br />
Where other, more professional developers are trying hard to get rid of links full of query strings, typical of database-driven sites, and create clean links, the developers of the site you mentioned seem to try their best to create CMS-style links where there's no resaon to use a CMS at all, given the small number of pages.<!--content-->
 
Back
Top