Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > URL adding and removing items

Reply
Thread Tools

URL adding and removing items

 
 
Chris
Guest
Posts: n/a
 
      01-17-2008
Using javascript is there a way that when I click on a link it'll add
something to the URL and then if I click on a similar item it'll
remove what was added and add the next item so they don't conflict.
What I have is a database that can be called from the url and I'm able
to add filters. Like field1="san jose" and then the user can later
choose field1="cupertino". But something like field1="san
jose"&field2="cupertino" would result in no matches since both cities
don't exist in the same record.

This is what I have, I currently have js modify the date otherwise
everything else is static
http://www.domain.com/csv/csvread.cgi?mytemplate=tp4&type=RD&order_by=SORTOR DER&date2>=2007-12-02

This is what I want
http://www.domain.com/csv/csvread.cgi?mytemplate=tp4&type=RD&order_by=SORTOR DER&date2>=2007-12-02&field1="san
jose"

Thanks for any help,
Chris
 
Reply With Quote
 
 
 
 
Chris
Guest
Posts: n/a
 
      01-17-2008
> jose"&field2="cupertino" would result in no matches since both cities

that field2 should of been field1
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Menu Items and Child Menu Items Larry Bud ASP .Net 13 01-07-2008 02:12 PM
removing query string items from url? jobs ASP .Net 3 04-02-2007 10:34 PM
Problem adding/removing items to already visible components steve_marjoribanks@hotmail.com Java 3 03-21-2006 05:42 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
Conditionally adding/removing items to a DataGrid CGuy ASP .Net 0 09-29-2003 06:17 PM



Advertisments