Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Polls


Message #1 by "John Tarbell" <kmind711@a...> on Sun, 25 Nov 2001 03:36:48
Hey, I am sorry but I am in a hurry right now and was wondering what a 

good script for a poll would be without using a database?



Thanks,

John
Message #2 by "Daniel O'Dorisio" <daniel@o...> on Sun, 25 Nov 2001 00:33:17 -0500
without using a db?? hmm.. maybe application vars.. have a var for each poll

option.. then lock the app and increment the var when the user votes.. use

the correct math functions to get percentages.. ect.



the only other thing that comes to mind is using fso and updating a text

file.. kinda hairy.. but it would work i guess..



daniel



--

-----------------------------

Daniel O'Dorisio

daniel@o...

www.odorisio-networks.com

-----------------------------

"John Tarbell" <kmind711@a...> wrote in message

news:122889@a..._web_howto...

>

> Hey, I am sorry but I am in a hurry right now and was wondering what a

> good script for a poll would be without using a database?

>

> Thanks,

> John

>

>





Message #3 by "Jason Salas" <jason@k...> on Sun, 25 Nov 2001 16:22:20 +1000
that's tough without a DB.  our online poll on our site is one of the most

popular attractions.  you might be able to have the form where the poll vote

is registered be a text file, and then just write a simple subroutine to

divide the choices by the total # of votes.  it's not truly automated, and

not really in real-time.



would you need any quality control limitations?  like not allowing people to

"stuff the ballot boxes" by constantly going back and voting over and over?

this might be quite difficult without a DB.







----- Original Message -----

From: "John Tarbell" <kmind711@a...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Sunday, November 25, 2001 3:36 AM

Subject: [asp_web_howto] Polls





> Hey, I am sorry but I am in a hurry right now and was wondering what a

> good script for a poll would be without using a database?

>

> Thanks,

> John




$subst('Email.Unsub')

>

>



Message #4 by "John Tarbell" <kmind711@a...> on Sun, 25 Nov 2001 17:08:15
OK, thanks, but I tried using a script with application vars and I got an 

error message. Could you perhaps give me the correct code for the poll?



thanks again,

John





> without using a db?? hmm.. maybe application vars.. have a var for each 

poll

> option.. then lock the app and increment the var when the user votes.. 

use

> the correct math functions to get percentages.. ect.

> 

> the only other thing that comes to mind is using fso and updating a text

> file.. kinda hairy.. but it would work i guess..

> 

> daniel

> 

> --

> -----------------------------

> Daniel O'Dorisio

> daniel@o...

> www.odorisio-networks.com

> -----------------------------

> "John Tarbell" <kmind711@a...> wrote in message

> news:122889@a..._web_howto...

> >

> > Hey, I am sorry but I am in a hurry right now and was wondering what a

> > good script for a poll would be without using a database?

> >

> > Thanks,

> > John

> >

> >

> 

> 

Message #5 by "Andrew Haslett" <scooter@p...> on Mon, 26 Nov 2001 08:55:09 +1030
Hi John,



Show us your code, and the error message and we'll try and troubleshoot for

you.



Cheers,



Andrew



-----Original Message-----

From: John Tarbell [mailto:kmind711@a...]

Sent: Sunday, 25 November 2001 5:08 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: Polls





OK, thanks, but I tried using a script with application vars and I got an

error message. Could you perhaps give me the correct code for the poll?



thanks again,

John





> without using a db?? hmm.. maybe application vars.. have a var for each

poll

> option.. then lock the app and increment the var when the user votes..

use

> the correct math functions to get percentages.. ect.

>

> the only other thing that comes to mind is using fso and updating a text

> file.. kinda hairy.. but it would work i guess..

>

> daniel

>

> --

> -----------------------------

> Daniel O'Dorisio

> daniel@o...

> www.odorisio-networks.com

> -----------------------------

> "John Tarbell" <kmind711@a...> wrote in message

> news:122889@a..._web_howto...

> >

> > Hey, I am sorry but I am in a hurry right now and was wondering what a

> > good script for a poll would be without using a database?

> >

> > Thanks,

> > John

> >

> >

>

>






$subst('Email.Unsub')





Message #6 by "John Tarbell" <kmind711@a...> on Sun, 25 Nov 2001 22:39:46
OK, see a friend of mine tried out a code with the application vars along 

time ago when he was trying a poll for his site. He saw your message and 

told me that, like I said, that he tried out a code with application vars 

and could not figure out how to do it after he tried and tried and said 

that some weird message always occurred. So, he does not have the code 

anymore and he is better at .asp than I am so I have no clue of how to do 

this since he can't get it to work. Is there an example code that you 

could write for me and my friend please?



thanks,

John 



> Hi John,

> 

> Show us your code, and the error message and we'll try and troubleshoot 

for

> you.

> 

> Cheers,

> 

> Andrew

> 

> -----Original Message-----

> From: John Tarbell [mailto:kmind711@a...]

> Sent: Sunday, 25 November 2001 5:08 PM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Re: Polls

> 

> 

> OK, thanks, but I tried using a script with application vars and I got an

> error message. Could you perhaps give me the correct code for the poll?

> 

> thanks again,

> John

> 

> 

> > without using a db?? hmm.. maybe application vars.. have a var for each

> poll

> > option.. then lock the app and increment the var when the user votes..

> use

> > the correct math functions to get percentages.. ect.

> >

> > the only other thing that comes to mind is using fso and updating a 

text

> > file.. kinda hairy.. but it would work i guess..

> >

> > daniel

> >

> > --

> > -----------------------------

> > Daniel O'Dorisio

> > daniel@o...

> > www.odorisio-networks.com

> > -----------------------------

> > "John Tarbell" <kmind711@a...> wrote in message

> > news:122889@a..._web_howto...

> > >

> > > Hey, I am sorry but I am in a hurry right now and was wondering what 

a

> > > good script for a poll would be without using a database?

> > >

> > > Thanks,

> > > John

> > >

> > >

> >

> >

> 




> $subst('Email.Unsub')

> 

> 

Message #7 by "Andrew Haslett" <scooter@p...> on Mon, 26 Nov 2001 09:56:00 +1030
John,



I just did a search on google (http://www.google.com/advanced_search).

Enter



"poll script" "no database" asp free



in the 'all words' input box and you will receive a number of scripts to

suit your needs.



Cheers,



Andrew



-----Original Message-----

From: John Tarbell [mailto:kmind711@a...]

Sent: Sunday, 25 November 2001 10:40 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: Polls





OK, see a friend of mine tried out a code with the application vars along

time ago when he was trying a poll for his site. He saw your message and

told me that, like I said, that he tried out a code with application vars

and could not figure out how to do it after he tried and tried and said

that some weird message always occurred. So, he does not have the code

anymore and he is better at .asp than I am so I have no clue of how to do

this since he can't get it to work. Is there an example code that you

could write for me and my friend please?



thanks,

John



> Hi John,

>

> Show us your code, and the error message and we'll try and troubleshoot

for

> you.

>

> Cheers,

>

> Andrew

>

> -----Original Message-----

> From: John Tarbell [mailto:kmind711@a...]

> Sent: Sunday, 25 November 2001 5:08 PM

> To: ASP Web HowTo

> Subject: [asp_web_howto] Re: Polls

>

>

> OK, thanks, but I tried using a script with application vars and I got an

> error message. Could you perhaps give me the correct code for the poll?

>

> thanks again,

> John

>

>

> > without using a db?? hmm.. maybe application vars.. have a var for each

> poll

> > option.. then lock the app and increment the var when the user votes..

> use

> > the correct math functions to get percentages.. ect.

> >

> > the only other thing that comes to mind is using fso and updating a

text

> > file.. kinda hairy.. but it would work i guess..

> >

> > daniel

> >

> > --

> > -----------------------------

> > Daniel O'Dorisio

> > daniel@o...

> > www.odorisio-networks.com

> > -----------------------------

> > "John Tarbell" <kmind711@a...> wrote in message

> > news:122889@a..._web_howto...

> > >

> > > Hey, I am sorry but I am in a hurry right now and was wondering what

a

> > > good script for a poll would be without using a database?

> > >

> > > Thanks,

> > > John

> > >

> > >

> >

> >

>




> $subst('Email.Unsub')

>

>






$subst('Email.Unsub')





Message #8 by "Daniel O'Dorisio" <daniel@o...> on Sun, 25 Nov 2001 21:05:21 -0500
you and your friend wouldnt happen to be study buddies.. working on a

college project??? lol..



umm.. well it should be something like:



application.lock

application("count1") = application("count1") +1

application.unlock



process that code everytime somone votes on a particular subject.. but then

again.. im only 16, with no formal training.. so anyway..



hth

daniel



--

-----------------------------

Daniel O'Dorisio

daniel@o...

www.odorisio-networks.com

-----------------------------

"John Tarbell" <kmind711@a...> wrote in message

news:122964@a..._web_howto...

>

> OK, see a friend of mine tried out a code with the application vars along

> time ago when he was trying a poll for his site. He saw your message and

> told me that, like I said, that he tried out a code with application vars

> and could not figure out how to do it after he tried and tried and said

> that some weird message always occurred. So, he does not have the code

> anymore and he is better at .asp than I am so I have no clue of how to do

> this since he can't get it to work. Is there an example code that you

> could write for me and my friend please?

>

> thanks,

> John

>

> > Hi John,

> >

> > Show us your code, and the error message and we'll try and troubleshoot

> for

> > you.

> >

> > Cheers,

> >

> > Andrew

> >

> > -----Original Message-----

> > From: John Tarbell [mailto:kmind711@a...]

> > Sent: Sunday, 25 November 2001 5:08 PM

> > To: ASP Web HowTo

> > Subject: [asp_web_howto] Re: Polls

> >

> >

> > OK, thanks, but I tried using a script with application vars and I got

an

> > error message. Could you perhaps give me the correct code for the poll?

> >

> > thanks again,

> > John

> >

> >

> > > without using a db?? hmm.. maybe application vars.. have a var for

each

> > poll

> > > option.. then lock the app and increment the var when the user votes..

> > use

> > > the correct math functions to get percentages.. ect.

> > >

> > > the only other thing that comes to mind is using fso and updating a

> text

> > > file.. kinda hairy.. but it would work i guess..

> > >

> > > daniel

> > >

> > > --

> > > -----------------------------

> > > Daniel O'Dorisio

> > > daniel@o...

> > > www.odorisio-networks.com

> > > -----------------------------

> > > "John Tarbell" <kmind711@a...> wrote in message

> > > news:122889@a..._web_howto...

> > > >

> > > > Hey, I am sorry but I am in a hurry right now and was wondering what

> a

> > > > good script for a poll would be without using a database?

> > > >

> > > > Thanks,

> > > > John

> > > >

> > > >

> > >

> > >

> >



scooter@p...


> > $subst('Email.Unsub')

> >

> >

>

>





Message #9 by Kyle Burns <kburns@c...> on Mon, 26 Nov 2001 13:08:46 -0500
I'm not sure how deep into things you want to/are able to get, but the "how

can I store data without a database?" question always seems to pull me

toward XML.  Using the MSXML objects, you can store structured, meaningful

data in a way that can also be queried through the objects.  If you feel

like digging into it, this would probably be your best solution.  With the

application variable solution, you have to remember that your results will

get wiped out every time your application unloads or the server is

restarted.





=================================

Kyle M. Burns, MCSD, MCT

ECommerce Technology Manager

Centra Credit Union

kburns@c...



 



-----Original Message-----

From: Daniel O'Dorisio [mailto:daniel@o...]

Sent: Sunday, November 25, 2001 9:05 PM

To: ASP Web HowTo

Subject: [asp_web_howto] Re: Polls





you and your friend wouldnt happen to be study buddies.. working on a

college project??? lol..



umm.. well it should be something like:



application.lock

application("count1") = application("count1") +1

application.unlock



process that code everytime somone votes on a particular subject.. but then

again.. im only 16, with no formal training.. so anyway..



hth

daniel



--

-----------------------------

Daniel O'Dorisio

daniel@o...

www.odorisio-networks.com

-----------------------------

"John Tarbell" <kmind711@a...> wrote in message

news:122964@a..._web_howto...

>

> OK, see a friend of mine tried out a code with the application vars along

> time ago when he was trying a poll for his site. He saw your message and

> told me that, like I said, that he tried out a code with application vars

> and could not figure out how to do it after he tried and tried and said

> that some weird message always occurred. So, he does not have the code

> anymore and he is better at .asp than I am so I have no clue of how to do

> this since he can't get it to work. Is there an example code that you

> could write for me and my friend please?

>

> thanks,

> John

>

> > Hi John,

> >

> > Show us your code, and the error message and we'll try and troubleshoot

> for

> > you.

> >

> > Cheers,

> >

> > Andrew

> >

> > -----Original Message-----

> > From: John Tarbell [mailto:kmind711@a...]

> > Sent: Sunday, 25 November 2001 5:08 PM

> > To: ASP Web HowTo

> > Subject: [asp_web_howto] Re: Polls

> >

> >

> > OK, thanks, but I tried using a script with application vars and I got

an

> > error message. Could you perhaps give me the correct code for the poll?

> >

> > thanks again,

> > John

> >

> >

> > > without using a db?? hmm.. maybe application vars.. have a var for

each

> > poll

> > > option.. then lock the app and increment the var when the user votes..

> > use

> > > the correct math functions to get percentages.. ect.

> > >

> > > the only other thing that comes to mind is using fso and updating a

> text

> > > file.. kinda hairy.. but it would work i guess..

> > >

> > > daniel

> > >

> > > --

> > > -----------------------------

> > > Daniel O'Dorisio

> > > daniel@o...

> > > www.odorisio-networks.com

> > > -----------------------------

> > > "John Tarbell" <kmind711@a...> wrote in message

> > > news:122889@a..._web_howto...

> > > >

> > > > Hey, I am sorry but I am in a hurry right now and was wondering what

> a

> > > > good script for a poll would be without using a database?

> > > >

> > > > Thanks,

> > > > John

> > > >

> > > >

> > >

> > >

> >



scooter@p...


> > $subst('Email.Unsub')

> >

> >

>

>










$subst('Email.Unsub')

Message #10 by "Daniel O'Dorisio" <daniel@o...> on Mon, 26 Nov 2001 13:08:57 -0500
very true... i need to use more xml.. i just poped out a simple solution..



daniel



--

-----------------------------

Daniel O'Dorisio

daniel@o...

www.odorisio-networks.com

-----------------------------

"Kyle Burns" <kburns@c...> wrote in message

news:123278@a..._web_howto...

>

> I'm not sure how deep into things you want to/are able to get, but the

"how

> can I store data without a database?" question always seems to pull me

> toward XML.  Using the MSXML objects, you can store structured, meaningful

> data in a way that can also be queried through the objects.  If you feel

> like digging into it, this would probably be your best solution.  With the

> application variable solution, you have to remember that your results will

> get wiped out every time your application unloads or the server is

> restarted.

>

>

> =================================

> Kyle M. Burns, MCSD, MCT

> ECommerce Technology Manager

> Centra Credit Union

> kburns@c...

>

>

>







Message #11 by "Jason Salas" <jason@k...> on Tue, 27 Nov 2001 10:13:39 +1000
hi daniel & kyle,



i found a very good application of XML with ASP to be in the use of XSLT to

selectively filter and/or arrange content.  my big thing about advocating

XML is that it's extremely lightweight, relatively easy to learn (at the

basic level), and doesn't come with all the overhead (i.e.,, DSNs,

recordsets, etc.) and headaches (too many users accessing resources, etc.)

involved with a traditional database application.



one of the biggest hurdles i always run into when preaching the gospel of

XML to developers and businesspeople is "couldn't i just old that i HTML?"

and the same holds true for DB-driven content.  the thing is that you can do

mostly evertythintg the same...just easier, and with more interoperability.



one of the coolest implementations of XML/XSL/DHTML i've seen is a Microsoft

sample for client-side sorting of stock info:

http://www.xmlpitstop.com/Examples/Microsoft/StockSorter/StockSorter.asp



a friend and fellow ASP coder in Guam,,

jason  :)





----- Original Message -----

From: "Daniel O'Dorisio" <daniel@o...>

Newsgroups: asp_web_howto

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Tuesday, November 27, 2001 4:08 AM

Subject: [asp_web_howto] Re: Polls





> very true... i need to use more xml.. i just poped out a simple solution..

>

> daniel

>

> --

> -----------------------------

> Daniel O'Dorisio

> daniel@o...

> www.odorisio-networks.com

> -----------------------------

> "Kyle Burns" <kburns@c...> wrote in message

> news:123278@a..._web_howto...

> >

> > I'm not sure how deep into things you want to/are able to get, but the

> "how

> > can I store data without a database?" question always seems to pull me

> > toward XML.  Using the MSXML objects, you can store structured,

meaningful

> > data in a way that can also be queried through the objects.  If you feel

> > like digging into it, this would probably be your best solution.  With

the

> > application variable solution, you have to remember that your results

will

> > get wiped out every time your application unloads or the server is

> > restarted.

> >

> >

> > =================================

> > Kyle M. Burns, MCSD, MCT

> > ECommerce Technology Manager

> > Centra Credit Union

> > kburns@c...

> >

> >

> >

>

>

>

>




$subst('Email.Unsub')

>

>




  Return to Index