Hello gang, here I am with another, difficult to explain question.
I have a page called vars.asp this contains a ling list of variables that are used on various pages through the site. What I want to do is to be able to change the value of a variable on that page by a form submission on...
while I am happy to have figured this out myself, I need help on one more thing. I need the number rounded down to the 10's only rounded down.
for example, if this forumla yields 1234566 i want it to display 1234560 how would I accomplish this?
Ok, i think I answered my own question with this.
I used value = Math.floor(120000 * Math.pow(1.4,qty.value - 1));
and it appears to be working just fine.
I have tried this
value = (120000(Math.pow((1.4,(qty.value-1)))))
but It doesn't return anything. By anything I mean it returns blank field. I know the qty.value returns the value from the form, so that part is working.
anything look wrong here?
I know the basic exponent formula using javascript:
(Math.pow(x,y)}
What I do not know, nor can I find is how to have x and y be variables.
x needs to be the variable of qty.value the formula I am using is
3000 * resfactor * 1.4(qty.value-1) the x-1 is the exponent.
so resfactor is a set...
I know about changing IP's an that part. Have to give up something I guess.
I like the idea of tracking the ratings they gave there as well.
thanks for the idea on that
I think the way I am going to do it until I find a better solution, is make a table that tracks the IP and the joke id, and do a lookup to see that ip shows up with the joke id in that table, and not show the rating system if it does.
That sound sensible?
What have you guys found, to be the easiest way to track when users do things like vote on something or rate something?
As I said before, I have a large Joke site, and users can rate the jokes, but I only want them to rate a joke one time. Right now, since the site is young, I only have about...
thanks for the advice. I will have to look into the rewrite. I am thinking of working on this as a project myself, since I have the time. I don't think I have enough control over my server to install that. I am tlking to them now.
thanks again
This may or may not be the right place to ask this, but direct me if it isn't
I have a site that contains jokes, 1000's of them. they are all stored in a db and all are categorized and have a unique id. you know the drill, you click on the title, and it passes the id and obtains the joke. Here...
WOrks well thanks a bunch.
Do you think in doing what I am doing, it would be better to count words instead? And is this possible?
I just think it would be better, so it doesn't break up a word.
I have tried to search for help, but since I am unsure as to what it is called, I am unable to get the right answer.
I am creating my own blog. I have everything working the way I want it to with posts and responses. The only thing I am unable to do is this.
When the thread is returned from...
I am not sure if this is the proper forum to ask this. If not, please direct me to the right place.
I have made a printer friendly page for music that I write. It shows the song name, key, and the body of the music that contains chords and stuff.
I have added a print button, that brings up a...
Here is the actual code
<textarea name="s_song" style="width: 569px; height: 690px" cols="20"><%=var1%>
<%
if var3 = var4 then
%>
Words and music by: <%=var4%>
<% else %>
Words By: <%=var3%>
Music By: <%=var4%>
<%end if%>
<%=var4a%></textarea>
variables aside, where...
I searched and saw that, wasn't sure if it fit my application.
But I do not understand where I would place that. Everywhere I put it, it shows up as "\r\n
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.