|
Thank you both..
the Master Regular Expressions by Jeff Friedl is too hard Michael !!!
I just need a simple regex to use in javascript or vbscript
I also found this :
http://www.aspfaq.com/show.asp?id=2238[^]
|
|
|
|
|
Try this site: http://www.regexlib.com/DisplayPatterns.aspx
I think it has what you need (and more)
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
|
|
|
|
|
Great link .. more that i expected
|
|
|
|
|
I'm redoing a website for a charity, and one of the features I've been asked to add is a calendar of activities - fundraisers, public service activities, meetings, etc. I'm referencing one table, Events, for both the calendar and the current events (limited to the next 30 days). I'd like to display all events in the calendar page, but have the display start at the event nearest to the current date. Viewers would, ideally, be able to scroll backward and forward to view all events in the database, but I'd like the most current to be the initial display. What's the best way to accomplish this? I'm using ASP/ADO (not .Net) with VBS for server scripting, btw.
"Your village called - They're missing their idiot."
|
|
|
|
|
Since you are redoing your website, I wouldn't code it from the scratch again. I would rather use a CMS, like Xoops (http://www.xoops.org), which is also open-source, although it's done in PHP/MySQL (I don't know if you can run it on your server).
Xoops already offer support for everything you mentioned, plus forums, messaging, news, controlled downloads, user registering, banners, and every cool feature you can imagine. It's extendable, so if it doesn't offer something you need in the future (there are *lots* of modules to install, I find it difficult to imagine), you can implement it.
To install it (I installed on Linux, but you can do it on Windows, too), it's just a matter of copying some files to a Web Server directory and pointing your browser there. A wizard will guide you through the process (about 6 "Next" button clicks).
Trying to make bits uncopyable is like trying to make water not wet.
-- Bruce Schneier
By the way, dog_spawn isn't a nickname - it is my name with an underscore instead of a space. -- dog_spawn
|
|
|
|
|
Sounds great! Unfortunately the hosting service doesn't support MySQL (though they claim to allow PHP). I'll have to check it out for the next site, though - XOOPS looks to be really feature rich. All of the coding is done for this site, except for the feature I mentioned above, and some tweaking I have to do manually because VID doesn't correctly implement CSS yet (pesky little stuff like :hover tags have to be coded manually, and once they are the file can no longer be opened with the CSS Editor). Thanks for the link, though!
"Your village called - They're missing their idiot."
|
|
|
|
|
VID6 Design Mode is entirely useless for ASP development, but the text editor is a great help. The only drawback is that all debugging messages from ASP refer to line numbers, and it gets tiresome counting down the lines of script source one by one. Is there any way to display line numbers? Nothing in the documentation (such as it is) or in the main menus offers any clue, but it would be a great help to be able to view them.
"Your village called - They're missing their idiot."
|
|
|
|
|
Um, am I missing something from what you're asking? I don't know how to display line numbers, but I do know that ctrl-G is a really handy way to go to the line of your choice. You shouldn't ever need to be counting through lines of script!
Rich.
|
|
|
|
|
I never knew that... Manuals don't exist for most products from MS anymore, and I've never stumbled across any mention of this while wandering around the online "documentation." Thanks!
"Your village called - They're missing their idiot."
|
|
|
|
|
ok ... going slightly mad here ... anybody got any clues why when i use the following in a style sheet:
a.tb:link {color: red; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
a.tb:hover {color: white; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
a.tb:active {color: yellow; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
a.tb:visited {color: green; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
my visited links dont change color when the mouse hovers over them?
(the hideous colors are for testing purposes b4 u say anything)
"there is no spoon" biz stuff about me
|
|
|
|
|
I tried the following and it worked for me
a.tb:link {color: red; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
a.tb:hover {color: white; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
a.tb:active {color: yellow; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
a.tb:visited {color: green; font-size:10px; font-family: "Century Gothic",Verdana,sans-serif; font-weight:bold;}
http://www.microsoft.com
|
|
|
|
|
thnx
it gets even more bizarre...
i changed the order of the elements in the list and it worked
but at least it works
"there is no spoon" biz stuff about me
|
|
|
|
|
|
Order is important, generally put hover at the bottom if you want it to override the visited or active styles. Same goes for if you want visited to override active etc. etc.
regards,
Paul Watson
Bluegrass
South Africa
Anna-Jayne Metcalfe wrote:
"Cynicism has it's place in life - but it should be kept well away from your inner self."
Crikey! ain't life grand?
|
|
|
|
|
|
ok
uptil now people have been developing databases which can be manipulated from a web page. i wan to manipulate a database with a phone line.
i know i need to make a IVR but i am clueless about it. plz give suggestions and where do i start?
Sparks
|
|
|
|
|
Hi everyone, I hope someone can help mw with this.
I created an invoice database with senders, recipients and orders for a gift basket company. Only one thing left to create. The company makes local deliveries and they can not have more then 200 deliveries per day. How can I write the script so it loops through records for a particular date and adds if its less then 200 deliveries, but prompts for another date if that day is not available. In what format would I add the dates into the database as well? Right now I have 3 delivery date options - 1st: oDelDay1, oDelMonth1, oDelYear1
2nd: oDelDay2, oDelMonth2, oDelYear2 and 3rd: oDelDay3, oDelMonth3, oDelYear3. I'm open to any suggestions, please help me.
Thank you in advance,
Eleonora
|
|
|
|
|
errrrrrr...
for (idx=0; idx < 200; idx++){
if (delivery_count < 200){
add to this day;
}
else {
add to next available day
}
}
???
"there is no spoon" biz stuff about me
|
|
|
|
|
Lauren,
I'm sorry, I don't undertsnd the code that much, I havn'e been working with asp that long. This actually looks like javascript.
Let me understand the logics first.
1. Count rs("DeliveryDate") with a particular day (say records for 12/15/2003)
2. If rs("DeliveryDate").count <= 200 then
add record
else
rs("DeliveryDate") = Request.Form("oDelDay2") & "/" & Request.Form("oDelMonth2") & "/" & Request.Form("oDelYear2")
End If
I know what needs to be done, except I can't seem toput the code together. I hope someone can help me.
Eleonora
|
|
|
|
|
ok what u want to do is find the first delivery day that has <200 deliveries booked against it
something like:
"select top 1 del_date from del_days where dels_for_day < 200 order by del_date"
that gives u the first date u can add a delivery to
then do an "insert into blah blah"
k?
"there is no spoon" biz stuff about me
|
|
|
|
|
Almost!
That wopuld be the second step after I have the count
Can't seem to get the count working.
If date is formatted as 12/15/2003, how do I look for it. I tried many different ways and it doesn't work. I have this
Set rsD = Conn.execute("SELECT Count(oDeliveryDate) AS oNum FROM Orders WHERE oDeliveryDate = 12/15/2003 ")
Thanks for all your help,
Eleonora
|
|
|
|
|
well the count thing is kinda superfluous if u just find the first day from today that has available delivery slots using something like that select statement i wrote last time
chk out sql server help files for the date formatting stuff
its been a while since i used it ... i use mysql these days
"there is no spoon" biz stuff about me
|
|
|
|
|
If I used your firsty suggestion, that means I have to creat a table that holds vailable number of deliveries. I have no idea how to do that, thats why I decided to do it this way, but thanks for all your help, i will use your advice.
Eleonora
|
|
|
|
|
well u have an item in the orders table i assume
and u would have a delivery days table no?
then when something is going to be delivered on a particular day u would assign the date or day_id of the delivery date to the item delivery date field in the items table and bump up the count for that delivery day entry by one
or thats how i would do it
"there is no spoon" biz stuff about me
|
|
|
|
|
Yes I have orders table, but no deliveries table. I didn't think it was necessary. I'm looking into what you are saying so I can understand better. Does that mean I would need to add 200 fields to the table and if they are filled then go to anether record?
This is killing me, sorry.
|
|
|
|