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]...
User Profile
Collapse
-
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, ' '); -
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.Leave a comment:
-
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">Leave a comment:
-
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.Leave a comment:
-
everything is accessible using DOM.
Posting your code would help us find the bug.Leave a comment:
-
A very simple solution would be to just post the data to the first script, and use
Otherwise it for some reason you totally need to do it as described, well it's going to require javascript.Code:<!--#include file="otherscript.asp" -->
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...Leave a comment:
-
Using COUNT FUN and CAST
SQL Value:
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.Code:"COUNT(tbl__UserLog._UserLog_ID) AS Count_Logins "
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... -
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.Leave a comment:
-
...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 (versionLeave a comment:
-
You will also have to give the td element a unique "ID" in order to reference it using javascript....Leave a comment:
-
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.Leave a comment:
-
Im going to try to accomplish my goal using the form elements index.Leave a comment:
-
This raises new challenges...
Any other observartions are much appreciated....Leave a comment:
-
i just went through and made the input names unique.
Access it the old fashioned way.Leave a comment:
-
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...Leave a comment:
-
-
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.
... -
Code:position:absolute;
http://developer.yahoo .com/yui/grids/
http://www.glish.com/css/
Also helpful.Leave a comment:
-
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
Leave a comment:
No activity results to display
Show More
Leave a comment: