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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
This is more of an ASP.NET question. A mod should move it.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
You create a full-text catalog for the pool of data you want to search in.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
Dani, I can't believe you did chem. You should've join me in physics.
samaru
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22
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
a.k.a inscissor
1,256 posts since Feb 2002
Reputation Points: 262
Solved Threads: 18
Skill Endorsements: 22