Click here to Skip to main content
15,913,610 members
Home / Discussions / Web Development
   

Web Development

 
Questionscroll lock key status in javascript? [modified] Pin
murali_utr2-Aug-06 21:06
murali_utr2-Aug-06 21:06 
QuestionProblem in hinding Image url Pin
rkyawal2-Aug-06 20:27
rkyawal2-Aug-06 20:27 
AnswerRe: Problem in hinding Image url Pin
Hy Chanhan2-Aug-06 21:23
professionalHy Chanhan2-Aug-06 21:23 
AnswerRe: Problem in hinding Image url Pin
Guffa2-Aug-06 23:52
Guffa2-Aug-06 23:52 
QuestionHi all, Pin
Hy Chanhan2-Aug-06 19:14
professionalHy Chanhan2-Aug-06 19:14 
AnswerRe: Hi all, Pin
Steve Echols2-Aug-06 20:00
Steve Echols2-Aug-06 20:00 
AnswerRe: Hi all, Pin
Brent Lamborn4-Aug-06 7:56
Brent Lamborn4-Aug-06 7:56 
QuestionRegExp Problem Pin
Abbas822-Aug-06 5:48
Abbas822-Aug-06 5:48 
Hello,

I am having a little problem with my function to encrypt the query strings....

<br />
Function encryptMenu(HTMLstring)<br />
<br />
	Dim objRegExp : Set objRegExp = New RegExp<br />
	Dim expressionMatch, expressionMatched, strTemp<br />
<br />
	With objRegExp<br />
		.Pattern = "(\?)[(\w\.\&*)+(\=)[\w\d ]*"<br />
		.IgnoreCase = True<br />
		.Global = True<br />
	End With<br />
<br />
	Set expressionMatch = objRegExp.Execute(HTMLstring)<br />
<br />
	If expressionMatch.Count > 0 Then<br />
		For Each expressionMatched in expressionMatch<br />
			<br />
			strTemp = Right(expressionMatched.value, (Len(expressionMatched.value)-1))<br />
			'Alert strTemp<br />
			HTMLString = Replace(HTMLString, strTemp, EncryptQS(QSCleanup(strTemp), Salt()))<br />
			<br />
		Next<br />
		'Alert HTMLString<br />
	encryptMenu = HTMLString<br />
<br />
	Else<br />
		'Response.Write "" & objRegExp.Pattern & " was not found in the string: " & StringToSearch & "."<br />
	End If<br />
<br />
	Set objRegExp = Nothing<br />
	Set expressionMatch = Nothing<br />
<br />
End Function<br />
<br />
' Perform the necessary cleanup to the QueryString.<br />
Function QSCleanup(QS)<br />
	QSCleanup = Replace(QS, "&", "&")<br />
End Function<br />


Now, I correctly pick out the query string (everything after the "?"), and for most entries it works fine....However, I have a couple of them that even though I pick out the query string, it doesnt replace the whole thing...for example:

noretrieve=true&rptid=jax212&dbcode=2&leasepro_id=1000018528&udb_id=100001.8528&usertype=V

becomes...

noretrieve=true&rptid=jax212&ENC_QfsJ/OaMUZ1cHMjPnUEM4o8C2+tdI/173ET767CvDXE4CEHmTyc5eWNTwinaV+/lI0K5idTSH32yKg+myuvdjA==

it should just be ...

ENC_QfsJ/OaMUZ1cHMjPnUEM4o8C2+tdI/173ET767CvDXE4CEHmTyc5eWNTwinaV+/lI0K5idTSH32yKg+myuvdjA==

Anybody have an idea as to why this is happening?

Thanks!
AnswerRe: RegExp Problem Pin
Guffa2-Aug-06 8:03
Guffa2-Aug-06 8:03 
GeneralRe: RegExp Problem Pin
Abbas822-Aug-06 9:08
Abbas822-Aug-06 9:08 
Questionsearch engine Pin
militiaware2-Aug-06 1:52
militiaware2-Aug-06 1:52 
AnswerRe: search engine Pin
Brent Lamborn4-Aug-06 8:02
Brent Lamborn4-Aug-06 8:02 
Questionmoving strip of companies current price of stock exchange Pin
nitinjdalal1-Aug-06 23:23
nitinjdalal1-Aug-06 23:23 
AnswerRe: moving strip of companies current price of stock exchange Pin
Ted Ferenc1-Aug-06 23:28
Ted Ferenc1-Aug-06 23:28 
QuestionHelp on creating chat online website... Pin
Talent Chan1-Aug-06 22:55
Talent Chan1-Aug-06 22:55 
QuestionJavascript Regular Expression Pin
Wesley Samuel1-Aug-06 21:31
Wesley Samuel1-Aug-06 21:31 
GeneralRe: Javascript Regular Expression Pin
Guffa2-Aug-06 9:09
Guffa2-Aug-06 9:09 
AnswerRe: Javascript Regular Expression Pin
eggie53-Aug-06 14:05
eggie53-Aug-06 14:05 
QuestionHow to resize to any size say(200,200) when used fullscreen=yes feature with window.open() Pin
jagmit201-Aug-06 21:16
jagmit201-Aug-06 21:16 
QuestionHide an Option Item in Select Box Pin
Tiger4561-Aug-06 17:49
Tiger4561-Aug-06 17:49 
AnswerRe: Hide an Option Item in Select Box Pin
Steve Echols1-Aug-06 18:43
Steve Echols1-Aug-06 18:43 
GeneralRe: Hide an Option Item in Select Box Pin
Do Ngoc Tu3-Aug-06 15:45
Do Ngoc Tu3-Aug-06 15:45 
GeneralRe: Hide an Option Item in Select Box Pin
Steve Echols3-Aug-06 16:39
Steve Echols3-Aug-06 16:39 
QuestionHow to Updating an Excel file using ASP Pin
kachchh kunvar1-Aug-06 7:54
kachchh kunvar1-Aug-06 7:54 
QuestionGet client email address w/javascript? Pin
manicreader1-Aug-06 6:33
manicreader1-Aug-06 6:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.