User Profile

Collapse

Profile Sidebar

Collapse
DennyLoi
DennyLoi
Last Activity: Feb 1 '08, 09:56 AM
Joined: Nov 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • DennyLoi
    started a topic simple while loop in c++
    in C

    simple while loop in c++

    Hi there

    I am writing a simple while loop which terminates on the condition that a certain value is found, as follows


    Code:
    std::string question = q.quest().que();
                std::string answer = q.ans().answer();
                std::string graphic = q.inf().info();
                std::string english1;
                std::string english2;
                std::string arabic1;
    ...
    See more | Go to post

  • DennyLoi
    replied to Regular expressions and string matching
    in Java
    I wrote the following method in order to test the matching using . in my regular expression.

    public void getWords(int y)
    {
    int x = 0;
    for(y=y; y < buff.length(); y++){
    String strToCompare = buff.substring( x,y); //where buff holds the partially decrypted text
    x++;
    Pattern p = Pattern.compile (strToCompare); ...
    See more | Go to post

    Leave a comment:


  • DennyLoi
    started a topic Regular expressions and string matching
    in Java

    Regular expressions and string matching

    Hi everyone,

    Here is my problem, I have a partially decrypted piece string which would appear something like.

    Partially deycrpted: the?anage??esid eshe?e
    Plain text: themanagerresid eshere


    So you can see that there are a few letter missing from the decryped text. What I am trying to do it insert spaces into the string so that I get:

    The ?anage? ?esides he?e
    ...
    See more | Go to post

  • DennyLoi
    replied to Creating a list of users
    Yep, that's the plan.
    I'm just talking about the container. What is best to use? A list? a div?
    See more | Go to post

    Leave a comment:


  • DennyLoi
    started a topic Creating a list of users

    Creating a list of users

    Hi Everyone,

    I am just in need of some advice. I need create some sort of place in my page which will store a list of users which are currently logged in.

    Perhaps some sort of text box (a div element?), which reads from some place to get each users username, and then display each username in a list.

    Can anyone give me a starting point?
    See more | Go to post

  • DennyLoi
    replied to updating values with getelementsbyid
    I see.

    I went a layer up and gave the id to my P, which contains the text node.

    I then wrote this (where 'test' now refers to the holder of the text node).

    [CODE=javascript]function updateDetails()
    {
    var zzz = (document.getEl ementById('test '));
    zzz.removeChild (zzz.firstChild );
    zzz.appendChild (text(getQuesti on()));

    }[/...
    See more | Go to post
    Last edited by gits; Nov 8 '07, 05:09 PM. Reason: added code tas

    Leave a comment:


  • DennyLoi
    started a topic updating values with getelementsbyid

    updating values with getelementsbyid

    Hi everyone,

    I am trying to update the value which is stored in a particular part of my page by using the getElementsById method, followed by calling a function to update the field. However, I don’t know how to do this. The relevant parts of my code are as follows:

    [CODE=javascript]
    function text(t)
    {
    return document.create TextNode(t);
    }
    function start(){

    var oHelloText...
    See more | Go to post
    Last edited by gits; Nov 8 '07, 03:11 PM. Reason: added code tags

  • DennyLoi
    started a topic Countdown Timer

    Countdown Timer

    Hi everyone.

    I am trying to implement a countdown timer which is displayed on my page. The counter needs to countdown from 10 seconds to 0 upon the page loading up.

    I tried the following, but am running into difficulties.

    [CODE=javascript]//Some other script here^^^^

    var counterForm = document.create Element("form") ;
    counterForm.nam e = "form";
    counterForm.act ion...
    See more | Go to post
    Last edited by gits; Nov 4 '07, 09:55 PM. Reason: added code tags

  • DennyLoi
    started a topic XML & images

    XML & images

    Hi Everyone,

    I just want to know if it is possible to store an image/sound (or link to) in an XML file.

    Basically, I want to add an image my XML file which appears as follows:

    [CODE=xml]<?xml version="1.0" encoding="utf-16"?>
    <Questions>
    <Question>
    <quest>Which continent is coloured red?</quest>
    <option>افريق يا...
    See more | Go to post
    Last edited by gits; Nov 4 '07, 11:55 AM. Reason: added code tags

  • DennyLoi
    started a topic onClick woes

    onClick woes

    Hi Everyone,

    I have a problem with my javascript code. I am trying to pass a parameter to the checkAnswer function during using the onClick event handler.

    I wrote the following lines of code:

    [CODE=javascript]var option2= document.create Element("input" );
    option2.type = "button";
    option2.name = alldetails[3];
    option2.id = "test123";
    option2.value...
    See more | Go to post
    Last edited by acoder; Nov 3 '07, 05:20 PM. Reason: Added code tags
No activity results to display
Show More
Working...