samaru 145 a.k.a inscissor Team Colleague

Is your data properly encoded in XML safely? I would do a check by taking the XML document you're posting, keeping all the nodes intact, but replace all the data with simple like text. For example, replace every text node and attribute value to xxxxxxx.

Try submitting that. Also, it could be possible that your XML post is being too restrictive for your web server to handle. You could change that.

Is there a way you could post the XML doc here so we can see?

samaru 145 a.k.a inscissor Team Colleague

I would go with http://www.dailyrazor.com/ . Good (for what you pay anyways) hosting that supports CF with SQL Server/MySQL.

samaru 145 a.k.a inscissor Team Colleague

I would write a dynamic TSQL statement(s) to loop through all the sys.tables / sys.columns across the different tables using the EXCEPT clause.

You can read more about it here (which was previously discussed): http://www.daniweb.com/forums/thread271165.html

samaru 145 a.k.a inscissor Team Colleague

Ah, I read all that for nothing! J/k.

As an aside, if you're dealing with extremely large strings, you may have to configure large character objects in your datasource in the cfadmin.

samaru 145 a.k.a inscissor Team Colleague

Is it a ColdFusion error? Or is that message being displayed with a white background? Could also be your web server crapping out. Check your web server logs and CF logs.

samaru 145 a.k.a inscissor Team Colleague

It's a server-side language and can function on the server side like Java, PHP, Perl, Python, etc. Check this out: http://en.wikipedia.org/wiki/Server-side_scripting

samaru 145 a.k.a inscissor Team Colleague

This is more of an ASP.NET question. A mod should move it.

samaru 145 a.k.a inscissor Team Colleague

You create a full-text catalog for the pool of data you want to search in.

samaru 145 a.k.a inscissor Team Colleague

Hi, I am trying to create a website where the visitor can choose one of two languages when first arriving at the website. Then I want that choice to be saved throughout the whole visit without the visitor having to log in. I've always felt that cookies are a lame way of solving things so first I tried out always including the language choice in the url and making sure that the language choice always remained (if not the user switched it) through variables and php redirects if the choice was removed from the url. But it too felt unprofessional so I tried out storing the information in a session and it works perfectly except that I'm trying to create a script that deletes the session variable when the user leaves the site (onunload on the body doesn't work here because then it gets executed when the user wants to view another page of the site and not just when he leaves).

Maybe this is all unnecessary and I should just go with a cookie? Or does anyone have another solution?

Sessions still use cookies. That's how the session data structure in the server's memory is mapped to the user's machine. Here's more on the topic from a daniweb user: http://www.daniweb.com/forums/thread138791.html

samaru 145 a.k.a inscissor Team Colleague

What will trigger the validate() function? When you tab or switch the cursor to another textbox? This is what this does.

<html>
<head>
  <title></title>

<script language="javascript">

function validate() 
{
  // Verify that both passwords put in match. 
  if ( ( document.getElementById("password").value != document.getElementById("passwordverify").value ) ||
  document.getElementById("password").value.length == 0   )
  {
    alert("Both passwords must match.");
    // return false;  
  }

}

</script>
  
</head>

<body>



<p align="center">To reset your password, provide your current password</p>
<form id="form1"  name="form1" method="post" action="pcq.php">
    
     <table border="0" align="center" class="mytable2" style="margin-left:175px"  >
	 <tr>
         <td>Current Password</td>
         <td>
         
        <input type="password" name="oldpass" style="width:150px;" />
         
         </td>
       </tr>
       <tr>
         	    <? $user=$_SESSION[myusername] ?>
		          <td><input type="hidden" name="usr" id="usr" value="<?php echo $user; ?>"style=" width:150px;" />
         </td>
       </tr>
       <tr>
         <td>New Password</td>
         <td><input type="password" name="pass"  style="width:150px;" id="password" /></td>
       </tr>
	   <tr>
         <td>Repeat New Password</td>
         <td><input type="password" name="rpass"  style="width:150px;" id="passwordverify" onblur="validate()"/></td>
       </tr>
       <tr>
       
       
       <tr>
	   <td>
	   </td>
<td > <input type="submit" value="submit"  >
 <input type="reset" value="Reset"></td>

</tr>

       
       
     </table>
   </form>


</body>
</html>
samaru 145 a.k.a inscissor Team Colleague

Maybe I'm not reading you correctly. Why can't you do this (take the logic from the concat UDF and put it above the UPDATE statement?:

DECLARE @s varchar(max)
DECLARE @Name varchar(50)
DECLARE @Actv int

SET @s = ''

SELECT @s = @s + IsNull(',' + Cast(Cycletemplate AS varchar), '')
FROM temp (NOLOCK)
WHERE temp.Descr = @Name And temp.Actv = @Actv
GROUP BY Cycletemplate
ORDER BY Cycletemplate
IF (@S IS NOT NULL) AND (@S <> '') SET @S = SubString(@s, 2, Len(@S)-1)

UPDATE #TempSummary
SET CycleIdList = @S
samaru 145 a.k.a inscissor Team Colleague

From a quick eyeballing...

In index.html:

Lines 12-19 and 27-34 are repetitive. I would remove them from both functions and put that block of code once above line 9, since you're declaring them global anyways.

Line 26 needs a semicolon.

Line 35, you meant XML not XLM. Typo.

Line 43, did you mean to put a closing button tag? It's one of those funky tags where you need a closing one to render correctly.

samaru 145 a.k.a inscissor Team Colleague

The way it would work would be JavaScript creates an XmlHttpRequest object which fires off GET/POST method to a PHP page that has your PHP function. You could also pass variables from JavaScript to your PHP page. I have a meeting right now, so I'll write you some sample code later.

samaru 145 a.k.a inscissor Team Colleague

You can use JavaScript to load a txt file via the XmlHttpRequest object (AJAX). You can code this yourself, or use framework like jQuery, which makes the process easily, basically use 1 line of code.

For writing, since the txt file is on the server, you need a backend service, like PHP to manipulate the file. You can still use JavaScript to stream the data to the PHP file, nonetheless.

Let me know if you want code.

samaru 145 a.k.a inscissor Team Colleague

Get rid of the the extra stuff befor the event attribute. So it should look like this:

<input name="b1" type="button" value="CANCEL APPOINTMENT" document.apptcalendar.b1.onClick="javascript:PrcsBtn1();">

You also don't need the "javascript:"

So this is what it turns to:

<input name="b1" type="button" value="CANCEL APPOINTMENT" onClick="PrcsBtn1();">
samaru 145 a.k.a inscissor Team Colleague

Weird. Maybe a cookie hasn't been cleared, since browsers store cookies differently. Try clearning the cookies in IE that are related to your site. This is a very weird error indeed. Have you tried asking others to view the site or tried on another computer with IE?

samaru 145 a.k.a inscissor Team Colleague

No problem buds. Glad I could help. Now I have to get to work on a new avatar and sig. My account here is currently digitally naked.

samaru 145 a.k.a inscissor Team Colleague

May I ask, what is more powerful. A colleague or a moderator? And what other levels are there? I've seen a marsupial moderator as well.

A moderator is more powerful. Colleagues have access to a forum called "Community Helpers" where they can contribute ideas to make the forum better. They can share thoughts and talk among other colleagues, all levels of moderators, and the Admin (Dani). A Colleague can't modify posts though. Moderators can. Also, this colleague forum is invisible to regular users.

Moderators have control over certain forums. Super Moderators can control any forum. By "controlling" I mean deleting, moving, editing posts, banning, warning, etc. Their power is still controlled by the Admin though. The Admin, of course, has ultimate control of managing the entire forum, its options, users, database information, etc.

These were the rules before I left the forum I don't know if they have changed since I came back.

samaru 145 a.k.a inscissor Team Colleague

Dani, I can't believe you did chem. You should've join me in physics.

samaru 145 a.k.a inscissor Team Colleague

Other people had to suffer by taking it, so they want us to suffer as well. I never hear a CS student who's in the process of getting their degree comment on how beautiful CS/Math is... that is until they graduate. Then and only then will they comment on how exciting, rewarding, and fun it was. Some even brag about how easy it was over exaggerating. Of course they can say that, the nightmare is over! They don't have to take it anymore! ;)

samaru 145 a.k.a inscissor Team Colleague

Let me just make this clear. I'm up for validation, but as a last step. Also that doesn't mean that one should be careless when creating the HTML/XHTML design. One should do proper nesting, proper tag usage, and follow W3C standards as much as possible, but not get overwhelmed over just validation.

samaru 145 a.k.a inscissor Team Colleague

All sites should and can pass validation with a few tweaks. It's a highly useful tool that means your site will dispaly correctly on a wealth of browsers.
The default style of most forum software is written to pass validation.

I agree with the word should. There are other things that also SHOULD be. Software should be free. Software should not have bugs. Software should be super optimized. Why isn't this always the case? Green little pieces of paper?

I know what you mean. But from a business perspective, sometimes this can't happen. Time is money, and validating and making sure everything is too perfect adds another layer of time to your project. This can be a tedious task when working with complex web sites and just can't happen.

samaru 145 a.k.a inscissor Team Colleague

I hate to say, but in my experience, it seems that only programmers, who rarely have graphic abilities, are interested in validation. I should know, I'm a programmer. Then again, I'm a graphic designer too. ;)

samaru 145 a.k.a inscissor Team Colleague

Dani, I think your web site is fine. There's not at least ONE COOL LOOKING web site that's feature rich that can pass any sort of validation. Web sites that pass validation are web sites like http://www.useit.com/ or http://www.w3.org - but they're boring, ugly, and have no where near the functionality that a site like this has.

samaru 145 a.k.a inscissor Team Colleague

No taste is better than bad taste. Ms. Bloatware. :P

samaru 145 a.k.a inscissor Team Colleague

Cool, but I still don't like Tuxes. So there. :shock:

samaru 145 a.k.a inscissor Team Colleague

Somehow the technical difficulties have changed the stars into Tuxes. Yuck. :P

samaru 145 a.k.a inscissor Team Colleague

Pardon me, aeinstein, but don't you think a pm on that would have been more appropriate? ;)

I'm just joking. Ok now someone say it back to me. :)

samaru 145 a.k.a inscissor Team Colleague

I guess I disagree. I think a good author can make a good book no matter what. I know what you mean by the publisher and staff. They might restrict the author in some ways, and probably even "break" the book, like you stated.

I think though, if the author is good, he can work around that. Overall, to me, if the author can explain the material well, I'm satisfied. Even if it has mistakes, I'll excuse that if he has a web site for errata, for which most do. Let me give you an example. I despise the O'Reilly format. When I open up one of the books, the layout reminds me of man pages (linux documentation). It just gives a very dry appearance. This is not the author's fault, it's the standard layout all O'Reilly authors have to follow. But then when I read "Programming ColdFusion," by Rob Brooks-Bilson, I forgot about the way it was layed out by O'Reilly because the author was good enough to explain the material in a way that kept me interested.

I'm speaking from experience by the way. I buy an average of two books a week and own several online books from Sams, QUE, Wrox, O'Reilly, New Riders, McGraw Hill, Osborne, and Coriolis, and Friends of Ed. I already know the layout of each publisher. I'm not going to tell you which one is the best because again, in my opinion, it all depends on the author. You can …

samaru 145 a.k.a inscissor Team Colleague

QVS? Did you mean VQS (Visual Quick Start)? Their format is ok if you're in a hurry to learn the material. It's also cheap. But because its aim is to get you up to speed fast, it misses in depth issues.

Just remember that the overall quality always depends on the author, not the publishers.

samaru 145 a.k.a inscissor Team Colleague

I'm inscissor, you're einstein... einstein. Ok ok, yours has an "a," big whoop. ;)

I wasn't sure if you remembered or asked for the sake or asking again, or what. I just answered. I wasn't trying to be a smart alec. But hey, sometimes we do things twice... like how many times have you looked at your watch for the time, then a second later, looked at it again?

samaru 145 a.k.a inscissor Team Colleague

Director uses Lingo. :) Remember how I compared it to Logo? ;) [thread]113[/thread]

It's been more than a year since Macromedia has initiated a campaign to move Flash usage from movies (skip intros) to GUIs for web applications. It was funny seeing Kevin Lynch's (CEO of Macromedia) reaction when he asked how many people use it for GUIs. Not that many. Mostly prefer to use traditional HTML/CSS/JavaScript. Too encourage that, Flash MX now comes with premade components (drop down boxes, textboxes, buttons, and other cool stuff), which is kind of cool. If you want to see some cool components, check out:

http://www.flashcomponents.net/

samaru 145 a.k.a inscissor Team Colleague

What is your overall goal with Flash? Even if you get a book on application development with Flash, they tend to cover the basics of Flash. Also it's less boring. Some Flash books are just too basic (you spend drawing circles and squares for the first five chapters). If you already have some background in a graphics program, even an authoring program like Dreamweaver, it will seam somewhat redundant. I think you'd rather learn the basics while learning something else, like XML, which Flash MX does a better job with.

Like Bob, I think ActionScript, the Definitive Guide O'Reilly is a good book. I have it (for version 5) and make good use of it. I've never been too fond of O'Reilly books, except their references.

In my experience, the Friends of Ed books are ok. I have three of their books (ActionScript, ActionScript Studio, and ColdFusion for Flash) which are ok, but the pace might seem a bit slow, for these books anyways... just my 2 cents.

If you want to develop Flash games, these two books rule:

Macromedia Flash MX Game Design Demystified (ISBN: 0201770210)
Flash Games Studio (ISBN: 1903450675)

samaru 145 a.k.a inscissor Team Colleague

Yes, it was a tragedy. I was stunned when I first heard of it. I was watching the Fox News Channel during a segment on Iraq, and out of nowhere I heard the news.

I know presently a lot of people are hurt by this tragedy and are mourning (the media makes sure of this). They have every right to and I understand. However sometimes I get the feeling that that's all they think happens in this world. It's a big world and equally herrendous things happen on this planet. It's just a shame that the media doesn't cover it because it thinks it's not important enough to cover. I know it would not be practical to cover every little piece of news that goes on on this earth, but I think more people should be aware of this.

Just my ranting.

samaru 145 a.k.a inscissor Team Colleague

Hey, that's nothing. You should take advantage of those prices. Around here, it's expensive. I wanted to go for a weekend training, 2 days, 3 hours each... it cost about $1400. They have Boccess here, and it's still pretty pricey compared to the prices you just mentioned.

Hey, maybe you can bring a tiny camera and record the lessons and make bootleg. We can start a business! Yeah, you do the work and I'll keep all the money. ;)

samaru 145 a.k.a inscissor Team Colleague

ARGH! You might as well live in Pluto because that college is far away from where I live. :) Those are REALLY good prices though. I wish they had classes at that price around Long Island, NY.

samaru 145 a.k.a inscissor Team Colleague

That's right, sucka.

samaru 145 a.k.a inscissor Team Colleague

Whoa, excellent use of language. That paragraph you just wrote reminds me of something I see in law books. ;)

I meant it as a joke. There were no hidden meanings, methaphors, etc. Enough said. If you don't want me to do it again, then it's cool... I won't do it.

samaru 145 a.k.a inscissor Team Colleague

Whoa, you're making it seem like I used the word "Mafia" in good terms. Where did you get THAT idea? Romantic? Glamorous? Honorable? No idea where you got that from (from eight words that didn't even make a sentence in that post). It was a joke, because the name "Pauly" sounds Italian, and Italians have that Mafia stereotype. :) (Pauly was the name of the head guy in Goodfellas.)

Believe me, I'm very aware not to trust the media/entertainment industry when it comes to real life issues... know why? It's for entertainment! It's easy to follow and believe some of the stuff we see in movies though... for example, martial arts. Especially the moves that Jackie Chan does. No martial artist fights like that in real life... and I know, me being one. No boxing match is like Rocky, and no space launch is like the Apollo-13 movie. The entertainment industry spices it up so it becames "entertainment" and we watch it, otherwise it wouldn't be interesting.

I have not read much literature on mafias, but I have watched several especials on the history of mafias, gangs, and many of the criminal activities they were involved in.
Nothing of what I saw was "romantic" or "glamorous" or "dear lord, honorable."

samaru 145 a.k.a inscissor Team Colleague

So it's a misused word? Is that what you're saying?

samaru 145 a.k.a inscissor Team Colleague

Yeah... Pauly... you're in the mafia, aren't you? ;)

samaru 145 a.k.a inscissor Team Colleague

Hey Pauly. :)

samaru 145 a.k.a inscissor Team Colleague

Then definitely go with Java. It's perfect for the web envirnonment. It's gotten a bad rap from it's applets that have been coded by poor programmers, but it's a good language to do other tasks such as servers/networks, client applications, graphic user interfaces that can run with the same code on macs, unix, windows, to name a few. Also, once you know the basics, you can also try out JavaServer Pages\Servlets to develop web applications.

samaru 145 a.k.a inscissor Team Colleague

This depends what you'd like to program for and what your target audience is. C++ and Java almost have the same learning curve to an extend - C++ is easier to pick up yet harder in the long run when your programs become more complicated. Java might be a little harder to pick up because it forces you to make ANY program object oriented even if you just want to add 2 numbers - but it's easier to maintain in the long run I think compared to programs developed in C++.

Let me know what kind of programs you'd like to write and what your target audience is - I'll help you out then.

samaru 145 a.k.a inscissor Team Colleague

Don't you mean "expert"? ;)

samaru 145 a.k.a inscissor Team Colleague

It makes no difference to me where you put it. =) You could've put it in under "Modding Cases" if you wanted, but then Dani might have a fit...lol ;)

samaru 145 a.k.a inscissor Team Colleague

Yeap, definitely. Java 3D is a set of classes that makes programming in 3D environment a lot easier. Similar to OpenGL, DirectX, and MFC. You don't necessarily need to know how Java3D works in every little detail, but you need to know how you're going to use it...and therefore you have to know Java to use it.

samaru 145 a.k.a inscissor Team Colleague

Hmm... gimme a hint.

samaru 145 a.k.a inscissor Team Colleague

If that means pronouncing it like the word "incisor" (yes, it really does have one "s"), then yeah... ;)

samaru 145 a.k.a inscissor Team Colleague

You're welcome. Hey you spelled "inscissor" right. ;) Now try pronouncing it. :P