User Profile

Collapse

Profile Sidebar

Collapse
darkdirk1
darkdirk1
Last Activity: Apr 23 '07, 07:13 PM
Joined: Oct 10 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • darkdirk1
    replied to smart split()
    k figured it out...!
    seems to work all right.


    function processFactors( ){
    var factors = new Array();
    var factors_in = document.form1. factors_in.valu e;
    factors_in = factors_in.repl ace(/\r\n|\r|\n/g, ' ');
    factors = factors_in.spli t(' ');
    var factorsList = new Array();
    var c = 0;
    for (var i =0; i<factors.lengt h; i++){
    if (factors[i] > ""){
    factorsList[c]...
    See more | Go to post

    Leave a comment:


  • darkdirk1
    started a topic smart split()

    smart split()

    I am trying to create a function that parses a string and creates an array with the values which will be seperated by either white space or and unknown number of carriage returns/linebreaks....

    I was trying something along these lines:

    Code:
    function processFactors(){
    var factors = new Array();
    var factors_in = document.form1.factors_in.value;
    factors_in = factors_in.replace(/\r\n|\r|\n/g, ' ');
    ...
    See more | Go to post

  • darkdirk1
    replied to Open a Printer Share using HTML
    HTML is used to describe parts of a document.
    Using it for anything else is bad practice and in some cases impossible.

    sounds more like you are getting into Active X objects.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to images to fit tables
    except dont use inline its a bad habit to get into if just starting.
    Give your image an ID then reference that ID in your stylesheet and set the dimensions there.

    Code:
    <style>
    img#pic1{
    width: 250px;
    }
    </style>
    
    <img src="lala.jpg" id="pic1">
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to SQL database Diagrams
    visio is nice but the way to go is undoubtedly MicroOlap.
    Believe you me - i have designed schemas w/ both and the latter is hugely more intuitive.


    Also, though I have never done it, (im pretty sure) if you add your database to Visual Studio 2005 it can spit a diagram out for you - w/out the need to fill in any details.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to Javascript Help for Stylesheet change
    everything is accessible using DOM.
    Posting your code would help us find the bug.
    See more | Go to post

    Leave a comment:


  • A very simple solution would be to just post the data to the first script, and use
    Code:
    <!--#include file="otherscript.asp" -->
    Otherwise it for some reason you totally need to do it as described, well it's going to require javascript.
    You could either use 2 form tags w/ different actions on them and submit each using document.form1. submit() - document.form2. submit()

    Or more tricky, one form...
    See more | Go to post

    Leave a comment:


  • darkdirk1
    started a topic Using COUNT FUN and CAST

    Using COUNT FUN and CAST

    SQL Value:
    Code:
    "COUNT(tbl__UserLog._UserLog_ID) AS Count_Logins "
    Returns as varchar which is killing me, because my user interaction is loaded w/ sort features. Unfortunately the count_logins var getting posted to the script is an integer.
    So I recieve :
    Syntax error converting the varchar value 'Count_Logins' to a column of data type int.
    When the post var gets compared to the AS Count_Logins...
    See more | Go to post

  • The simplest way is to set the image as the background of the box (css) or <td>.
    You could get into layers and defining the z-index but try to keep it simple.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to CSS in IE6 help much apreciated.
    Code:
    <SCRIPT LANGUAGE = "JavaScript">
    <!-- 
    var browser     = '';
    var version     = '';
    var entrance    = '';
    var cond        = '';
    // BROWSER?
    if (browser == ''){
    if (navigator.appName.indexOf('Microsoft') != -1)
    browser = 'IE'
    else if (navigator.appName.indexOf('Netscape') != -1)
    browser = 'Netscape'
    else browser = 'IE';
    }
    if (version
    ...
    See more | Go to post

    Leave a comment:


  • You will also have to give the td element a unique "ID" in order to reference it using javascript....
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to stupid getElementById
    I ended up giving the elements unique names and adding a hidden input with no value. Then when the user is navigating he forces value to the hidden input.
    Which I then detect with vbscript and process the appropriate vars based on that value....

    Which got me by and onto the next screen.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to stupid getElementById
    Im going to try to accomplish my goal using the form elements index.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to stupid getElementById
    This raises new challenges...
    Any other observartions are much appreciated....
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to stupid getElementById
    i just went through and made the input names unique.
    Access it the old fashioned way.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to stupid getElementById
    Darn - i had hoped it was that simple.
    Unfortunately this is not the solution.
    Consider i am actually trying to create an identifier to that page element.
    Not nessecarily caring about the value of the input itself.
    I am using getElementById successfully to control the display property with the syntax shown above - it's only when trying to access the DISABLED prop that I recieve unexpected results...
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to stupid getElementById
    hehheh... thanks.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    started a topic stupid getElementById

    stupid getElementById

    I have a bunch of input elements which are DISABLED="true" .
    Based on certain actions I want to enable them using javascript.
    It would be simple to just do this by accessing their names directly, unfortunately this page is a bit more complex. I have it split into DIVs and am making copious usage of style.display=" none"....Also some of the names are common.
    Only the element ID's are definetly unique.
    ...
    See more | Go to post

  • darkdirk1
    replied to Dynamically Sizing a Content Div
    Code:
    position:absolute;


    http://developer.yahoo .com/yui/grids/
    http://www.glish.com/css/

    Also helpful.
    See more | Go to post

    Leave a comment:


  • darkdirk1
    replied to HTML Title Menu question
    This is the gist of it:
    Code:
    <?php
    // lets's define some variables
    
    $title='This page is pretty musical!';
    
    $content='There are unsmiling faces and bright plastic chains, and a wheel in perpetual motion.';
    
    $author='The Alan Parsons Project.';
    // now let's replace variable values in the document
    ?>
    <html>
    
    <head>
    
    <title><?php
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...