User Profile

Collapse

Profile Sidebar

Collapse
Avatar19
Avatar19
Last Activity: Feb 11 '12, 10:39 AM
Joined: Apr 5 '10
Location: South Africa,Johannesburg
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Avatar19
    replied to precedence for my ajax and javascript
    Hey JKIng just posting here to say that I solved my problem!, the solution looked like this:
    I made two ajax functions controlling my bids, one was set to run on page load which would initialize my timers ad one was set as an onclick condition in my bid buttons.
    I placed everything in my head and it worked great!!


    Code:
    <script type='text/javascript'>// countdown function
    ...
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to precedence for my ajax and javascript
    OK so I set myret = "April 28, 2011 12:55:55" like so"
    Code:
    <script type='text/javascript'>
    
    var myret "April 28, 2011 12:55:55";
    function get_bid(div_id)
    
    {
    if (div_id == 'contain')
    {
    var pass = 'apple_01';
    } 
    else if (div_id == 'contain2')
    {
    var pass = 'mp3_01';
    }
    else if (div_id == 'contain3')
    {
    ...
    See more | Go to post
    Last edited by Avatar19; Apr 27 '11, 07:33 AM. Reason: code tags

    Leave a comment:


  • Avatar19
    replied to precedence for my ajax and javascript
    oh thanks, but thats jus a lil error in pasting it here, its fine in my file.
    When I run it through firebug, it jus says that var myret is undefined, this is at the location that you pasted in your post. but as for errors, I can't see any
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to precedence for my ajax and javascript
    the ajax 'function get_bid()' is placed after the cdclass 'http://localhost/zebra/database/js/cdclass.js'
    my head looks like this:
    Code:
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Zebra Spots</title>
    <link rel="stylesheet" href="css/index.css" type="text/css" />
    
    <script type='text/javascript'
    ...
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to precedence for my ajax and javascript
    perhaps you can offer some advice on a more focused question.
    I have included a pdf attachment of what I am explaining.

    I believe the problem lies with the fact that my countdownclass is using the variable myret before it can be set. which is confusing me. Both my ajax func that collects my database info and my cd class are placed in my header. My ajax looks like
    Code:
    <script type='text/javascipt'>
    var
    ...
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to precedence for my ajax and javascript
    I can't give a link as far as I know cos it's not live on the web, I am developing on my laptop, but here is the actual file and a screen shot of whats returned.

    The information you need is btwn lines 219-236.
    lines 146,147,187,188 hold the divs that display the countdowns.
    I can include the countdown class if needs be, just let me know.
    Code:
    <?
    
    require('database/login_check.php');
    require('collect_sessioncvars.php');
    ...
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to precedence for my ajax and javascript
    can anyone give me any thoughts/ help????
    See more | Go to post

    Leave a comment:


  • Avatar19
    started a topic precedence for my ajax and javascript

    precedence for my ajax and javascript

    Hi there,

    I have a class that calls a dynamic countdown on my webpage.
    when I call the class it looks like this.

    Code:
    <script type='text/javascript'>
    var futuredate=new cdtime("contain","April 21, 2011 12:55:55")
    					futuredate.displaycountdown("days", formatresults)
    </script>

    A quick explanation: 'contain' is the...
    See more | Go to post

  • Great news I managed to get the timer working correctly, what I now discovered is that I need to create some way so that every time the page gets refreshed the extra seconds that have been added do not get lost.

    So, is the best way to do this to store all the date data in my database and call the input for all my functions from there?? Just in case you do not know what I mean , my function that handles the countdown takes in string...
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to error msg for mssql_query()
    Hey so perhaps someone can help give me a lil more direction on what I need to do cos I still cannot figure it out.

    I am using xampp and my directory looks like this
    and I am assuming that the ini file that I need to alter will be in the php folder within xampp.
    I think this cos I have looked in most of them and the only ones with ini files are in the php folder.

    So in the folder there are 3 files called 'php'....
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to error msg for mssql_query()
    Oh ok cool, thanks a lot I will give it a look when I get home and let you know if it works out.
    Thanks code green

    Avatar19
    See more | Go to post

    Leave a comment:


  • Avatar19
    started a topic error msg for mssql_query()

    error msg for mssql_query()

    Hi everyone,
    I am getting a confusing error message, I have done some googling an can't find a good solution.

    My error message is :

    Fatal error: Call to undefined function mssql_query() in C:\xampp\htdocs \dbf\database_f iles\AddUsers1. php on line 24

    The code that is generating this error is :

    Code:
    $q1 = mssql_query("INSERT INTO users (name, surname, dob, status) VALUES ('$name',
    ...
    See more | Go to post

  • ok cool I get that, so if you would not mind helping me with a little syntax and logic, if my js function is:

    Code:
    <html>
    <body>
    
    <script language="JavaScript" type="text/javascript">
    
    function bid(variable){
    variable = parseInt(variable)
    variable = variable+9
    variable = '0'+variable+''
    return variable
    
    }
    var seconds = '00'
    ...
    See more | Go to post
    Last edited by Avatar19; Apr 7 '11, 09:38 AM. Reason: adding output

    Leave a comment:


  • changing the value of a js variable through a form button or hyperlink.

    Hi,
    my question is this: I have a dynamic countdown script in which I can create a countdown on my webpage by passing a string into a countdown function. I have created a variable that deals with each element of the time i.e. month,day,hour, minute,second.
    what I want to do is have a button or hyper-link on my page that when pressed will update the timer i.e. add some extra time to it, such as 9 seconds.

    So if I have...
    See more | Go to post

  • Avatar19
    replied to The logic of this question
    Thank you for your patience with me,the question just clicked, I understand it now!!
    Thanks Ava19
    See more | Go to post

    Leave a comment:


  • Avatar19
    replied to The logic of this question
    hey jkmyoung thanks for the reply, what i mean by the logic of this question is that, the example that i listed in the original post is what they output as a correct answer
    Example
    Suppose that a stock has had historical prices of R10,
    R5, R30, R25, R23, R25, R20, R24 and R22. Then the
    maximum number of times it could be bought would be
    4, buying it for R30, R25, R24 and R22. Notice that the
    price must strictly...
    See more | Go to post

    Leave a comment:


  • Avatar19
    started a topic The logic of this question

    The logic of this question

    Hi there, I am not really asking for help in terms of a programming solution but rather if anyone is able to explain the logic of this question to me cause i really cannot make sense of this!!!!
    Here it is:

    Introduction
    For reasons understood only by stock-brokers, one of the
    signs of a good stock trading strategy is to always buy a
    stock for less than one previously bought it for.


    Task...
    See more | Go to post

  • Avatar19
    replied to Programming a rubik's cube
    Cool thanks I'll keep you updated
    See more | Go to post

    Leave a comment:


  • Avatar19
    started a topic Programming a rubik's cube

    Programming a rubik's cube

    Hi there, I have undertaken a personal project of trying to write a program that can solve a rubik's cube by outputting a complete solution on all the movements that need to be made in order to solve a cube from any position. I am not looking for people to give me a solution so please don't, but \I would appreciate any cool ideas of how to progress through the problem.
    What I have started with is this:

    Code:
    White=['ww','1w','2w','3w','4w','5w','6w','7w','8w','9w']
    ...
    See more | Go to post

  • Oh ok, I see it does work I just reversed the Lists and it gave the right result, is this how it was meant to be?

    original:
    Code:
    List3 = [item for item in List1 if item[1].strip() in [item[0].strip() for item in List2]]
    reversed:
    Code:
    List3=[item for item in List2 if item[0].strip() in[item[1].strip() for item in List1]]

    Thanks for the help bv
    Ava
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...