Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
C

cjoki

@cjoki
About
Posts
219
Topics
20
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • cp newsletter spamming me
    C cjoki

    I am up to 22 as of this posting

    Chris J www.redash.org

    Site Bugs / Suggestions announcement

  • cp newsletter spamming me
    C cjoki

    … it has the subject title "Web Developer Newsletter - IntelliTask - An Alternative Windows Version to the Famous Task Manager"

    Chris J www.redash.org

    Site Bugs / Suggestions announcement

  • newsletter spamming me
    C cjoki

    The subject line is "Web Developer Newsletter - IntelliTask - An Alternative Windows Version to the Famous Task Manager" If you could go ahead and fix that, that would be great!

    Chris J www.redash.org

    Site Bugs / Suggestions tools help announcement

  • browsers adding whitespace to display (solved)
    C cjoki

    Richard! You rock! The box model was it and your link was just the solution. Final screen shot with ff and ie http://s5.postimage.org/ec7yb5vqf/browser_weirdness_solved.jpg[^] Now they match up

    Chris J www.redash.org

    Web Development html css database data-structures help

  • browsers adding whitespace to display (solved)
    C cjoki

    I am running ie8 on an win xp box

    Chris J www.redash.org

    Web Development html css database data-structures help

  • browsers adding whitespace to display (solved)
    C cjoki

    Here are two more screen shots that show my firebug window. http://s5.postimage.org/z8zl234dj/fb_ss1.jpg[^] http://s5.postimage.org/fsevfk99j/fb_ss2.jpg[^] I also highlighted the ul in the first one and the li in the second. You can see the code dislayed in the window below which is odd as I did not have line breaks or tabs in my code, soI assume that fire bug is formating it. The generated source looks like this

    <ul id="banner_nav"><li id="ban_nav_btn_0" onclick="selectFocus(0);" class="">1</li><li class="" id="ban_nav_btn_1" onclick="selectFocus(1);">2</li><li class="banner_nav_current" id="ban_nav_btn_2" onclick="selectFocus(2);">3</li><li class="" id="ban_nav_btn_3" onclick="selectFocus(3);">4</li></ul>

    I do not see any whitespace, but it looks like a css issue with a height of 25px and padding 5px on the li. Firefox, Chrome and Safari do add this. the odd one is IE, but I think IE is correct (I could be wrong). I had read online that making an element float forces a dislay block on the element which also adds spacing to the bottom, which is what I see here. But I also think that firefox and company are taking my 25px height and 25 px width, and adding the 5px padding to these along the y axis. I suspect that IE is respecting the 25px h+w and forcing the padding to stay with those limits....this is all just guess work on my part, so I am hoping the community has some advice. I can run the code with the extra spacing, it does not stop it from working, but I would like it to truly look the same on all platforms. ideas...?

    Chris J www.redash.org

    Web Development html css database data-structures help

  • browsers adding whitespace to display (solved)
    C cjoki

    I have a link showing my issue, link below. In the background firefox looks to be adding extra space to the bottom of my banner nav buttons and also to the div block above it. http://postimage.org/image/krt95j1wj/ I have tried the following with no effect, or an undesired effect; ...font-size: 0 in the ul and font-size:normal on the li ...display inline ...add divs to the text inside the inside of the li tags here is the html. any ideas...?

    *{
    margin:0;
    padding:0;
    border:0;
    }
    #banner_container{
    width:770px;
    height:360px;
    overflow:auto;
    }
    #banner{
    position:absolute;
    list-style-type:none;
    width:770px;
    height:360px;
    overflow:hidden;
    clip:rect(0px,770px,360px,0px);
    }
    #banner li{
    width:770px;
    height:360px;
    position:absolute;
    top:0;
    left:0;
    }
    .right_side_container{
    float:right;
    clear:left;
    width:250px;
    height:360px;
    }
    .ad_box{
    height:160px;
    width:230px;
    margin:10px;
    //background:url('bg_white_fade.png');
    background:white;
    }
    .main_banner_text{
    position:relative;
    background:url('bg_white_fade.png');
    color:black;
    height:60px;
    width:400px;
    top:240px;
    padding:10px;
    }
    #banner_nav{
    list-style-type:none;
    margin:0;
    padding:0;
    border:0;
    position:absolute;
    top:325px;
    left:10px;
    width:300px;
    height:25px;
    }
    #banner_nav li{
    float:left;
    clear:right;
    width:25px;
    height:25px;
    border:0;
    margin-left:3px;
    padding:5px;
    font-size:10pt;
    text-align:center;
    background:url('bg_black_fade.png');
    color:white;
    }
    .banner_nav_current{
    background:url('bg_white_fade.png') !important;
    color:black !important;
    }
    var bg_images = new Array('slide0bg.jpg','slide1bg.jpg','slide2bg.jpg','slide3bg.jpg');
    var max_banners = bg_images.length;
    // these are <li> indexes
    var current_banner = 0;
    var next_banner = 0;
    var last_banner = max_banners-1;
    var btimer = null;
    $(document).ready(function(){
    $('#banner>li').each(function(){
    $(this).css('background-image','url('+bg_images[$(this).index()]+')');
    $(this).css('z-index','-'+$(this).index());
    });
    make_buttons();
    start_banner();
    });
    function start_banner()
    {
    if(max_banners>1)
    {
    next_banner = current_banner+1;
    btimer = setInterval('rotate_banner()',5000);
    }
    }
    function set_z_index(</x-turndown>

    Web Development html css database data-structures help

  • php...no love
    C cjoki

    Maybe its me but I kinda miss having the php forum. Everytime I come back to CP, I feel like I just got back to my hometown after being away to find out that the house I grew up in was torn down...kind of a bummer :(

    Chris J www.redash.org

    Site Bugs / Suggestions php

  • what happened to the PHP forum?
    C cjoki

    :-D

    Chris J www.redash.org

    Web Development php question

  • what happened to the PHP forum?
    C cjoki

    Looks like mine have mostly been moved to Linux, Apache, Perl, Python (Forum).... If they are gonna merge the forums, least they could do is add a ", PHP too! oh my!", to it. -- edit --- or just call it the lamp stack and we can assume our favorite 'P'

    Chris J www.redash.org

    Web Development php question

  • what happened to the PHP forum?
    C cjoki

    That sir is a sad and cruel jest. Why not just force aspx on me too while I'm down!

    Chris J www.redash.org

    Web Development php question

  • what happened to the PHP forum?
    C cjoki

    I do not see it listed in the menus. :^)

    Chris J www.redash.org

    Web Development php question

  • Inputs needed for a naive web developer to develope a website.
    C cjoki

    I follow the lamp stack of Linux, Apache, MySQL and PHP I do this mainly because of cost, resources, a friendly and knowledged community can be easily found to help guide you on your way. This stack is also very wide used and for good reasons. So to your questions 1) What technologies should I start. PHP, MySQL, HTML, CSS, JavaScript (and the jQuery library). For local dev I use the abyss x1 http because its free and very easy to setup. If you work on a linux box getting mysql, php and apache is often bundled in a group of packages that is an easier install. But Apache has a lot more bells and whistles to make it more custom, which why I use abyss. The order I would train in is html and css, then javascript and jQuery, and then PHP and MySQL. Once you get to PHP/MySQL you will want to focus on issues of sessions and security. 2) How these networking sites are built, with user login etc. This is a big question but the short answer is sessions. Sessions store values placed in them by the scripts you write, like a posted form sends username and password to a server. a script on the server scrubs the input, to protect from hackers, and validates the info. If its correct then a session variable(s) is(are) set so you can maintain persistant data between page request. Session related variables can include user name, security level, a saved shopping cart, etc. 3) Is there any helping documents which I can refer to. To numerous to count. This site, "Code Project" is a truly great resource for code snips and guidance. And I do not get paid to write this...well I do not think I do...maybe I should ask ;) also: http://www.php.net/ , http://www.mysql.com/ , http://www.w3schools.com/html/ , http://www.w3schools.com/js/ , http://jquery.com/ , and a place to see where online applications are going sites like this http://html5demos.com/ give you a glimps of whats possible 4) What database technologies that I should learn. MySQL is the most common db engine you will find on the net.

    Chris J www.redash.org

    Web Development database c++ javascript php html

  • 2 outta 3 ain't bad....but why is ftp_put() failing...?
    C cjoki

    I will have to get back to you in a few, this got pushed back by two other projects....grrrr! Thanks for the response tho.

    Chris J www.redash.org

    Linux, Apache, MySQL, PHP tools help question

  • 2 outta 3 ain't bad....but why is ftp_put() failing...?
    C cjoki

    This is an odd error and I hope someone has seen it before. I have a script that is called from other scripts. It also runs from the commandline and is used to ftp files to various destinations. One is to a google upload site and it looks to work 2 out of 3 runs with one time reporting this error Warning: ftp_put(): '': command not understood. Using a google search, I have found reference to "ftp_put(): 'STOR':" errors but nothing on the empty string I have. What else gets me is this does not fail always, just once in a while. I can use the same parameters too...sometimes it fails but usually it is good. ideas?

    Chris J www.redash.org

    Linux, Apache, MySQL, PHP tools help question

  • hi evry body(i need expord doc with html)
    C cjoki

    It sound like you want to use php to convert an html page to a microsoft word file (aka *.doc). Never done that myself, but a *.doc is just a file type and so if you read up on how the file is structured you can write code to do this. First though, you need to understand the file structure. You can google for this information as there are many people that have asked this same question. Here is one link that I found with a simple google search. http://blogs.technet.com/b/srd/archive/2008/07/18/how-to-parse-doc-file-format.aspx[^] Good Hunting!

    Chris J www.redash.org

    Linux, Apache, MySQL, PHP html help

  • I need help with this simple form intergration.
    C cjoki

    I should add that jquery can make the whole ajax thing much easier to do.

    Chris J www.redash.org

    Linux, Apache, MySQL, PHP help

  • partner site login
    C cjoki

    If you are gonna do it, then to answer your question...and this is just "off the cuff", I would most likey set up a seperate server to act as a central store of user logins. All sites must have a registration themselves to access the server and share data. I would then develop a series of scripts with a few interfaces to do... 1) share registered user logins, I would plan on the partner sites maintaining their own and current signup data store, but just have the data sent to a script on this server to process for a shared login. Be certain to scrub the hell out of this regardless of of transport (i.e. - never trust user input, no matter who the user is) 2) a script would be needed to dump the current user logins to the shared login db too. 3) a script to alter a status of a user, ie users baned on one site must not be able to login at yours and vise versa. 4) You will also need a message scheme to notify the target site that site abc has a user that wants login access. I would imagine that this should be managed with a direct server to server communication. This should be like setting a flag for the user. So when the user goes to the new site the login is already done and waiting for them. 5) since logins are handled via session, I imagine a custom session handler is in order as I doubt the default one in php would work. You can google for code to act as a base for your code, or at least for ideas for making your own design. In a sense this reminds me of have a single login for sites with multiple subdomains and different servers. Here are a few bookmarks of mine that may help shed some light on the session issues related to this and may be an issue to consider as you go forward. http://shiflett.org/articles/the-truth-about-sessions[^] http://www.josephcrawford.com/php-articles/going-deep-inside-php-sessions/[^] I will say again, I have a number of security issues with this. Your going to have a lot of trust in your partners to pull this off and I suspect if your group takes off in popularity the security issues will become even more profound. You can of course implement a google, or facebook, or some other 3rd party

    Linux, Apache, MySQL, PHP question database wcf

  • Clear history / Return to homepage
    C cjoki

    Just looking at your code your issue maybe with the javascript function called Home(), but you call it in the like as home() On a *nix server this may not fly as they are different "H" and "h"; As for clearing the browser history of you visitor, I'm not sure you can (I could be wrong though) but that is something the user can do, not a script. If you want to keep the user from doing a browser refresh and resending post variables, there are methods to do so and they do not invovle the users history.

    Chris J www.redash.org

    Web Development javascript html database help

  • container inside container
    C cjoki

    Have you looked for other css rules that may affect your divs..? like body div{ } or div div{ } maybe with a float value?

    Chris J www.redash.org

    Web Development docker architecture
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups