Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 12 of 12
Search took 0.00 seconds.
Search: Posts Made By: ChrisScott
Forum: Javascript How-To March 29th, 2006, 06:34 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
Try it. "this" is a handle to the textbox,...

Try it.

"this" is a handle to the textbox, the function uses this handle to decide which one.
Forum: Javascript How-To March 23rd, 2006, 06:56 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
The function works fine with multiple textboxes...

The function works fine with multiple textboxes as it is.
Forum: Javascript How-To March 22nd, 2006, 06:42 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
You need to change... ...

You need to change...
onKeyUp="fix_chars('ariapt',this.value);"
to...
onKeyUp="fix_chars(this);"
HTH,

Chris
Forum: Javascript How-To March 22nd, 2006, 05:06 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
Hi Picco, The function I posted works fine...

Hi Picco,

The function I posted works fine for me in IE, Mozilla & Opera.

Cheers,

Chris
Forum: Javascript How-To March 17th, 2006, 11:12 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
Yep, but like I said, replace apostrophes with...

Yep, but like I said, replace apostrophes with two apostrophes and it will work.
Forum: Javascript How-To March 16th, 2006, 02:01 PM
Replies: 25
Views: 4,857
Posted By ChrisScott
Query runs fine for me with no errors.

Query runs fine for me with no errors.
Forum: Javascript How-To March 16th, 2006, 07:35 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
The sql statement itself please, not the code...

The sql statement itself please, not the code that creates it.

Cheers,

Chris
Forum: Javascript How-To March 10th, 2006, 01:58 PM
Replies: 25
Views: 4,857
Posted By ChrisScott
Did you try replacing the apostrophes? Can...

Did you try replacing the apostrophes?

Can you post the sql that is causing the errors?

Cheers,

Chris
Forum: Javascript How-To March 2nd, 2006, 10:30 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
Hi Picco, I insert apostrophes and...

Hi Picco,

I insert apostrophes and ampersands all the time without any problems.

Cheers,

Chris
Forum: Javascript How-To March 1st, 2006, 06:21 PM
Replies: 25
Views: 4,857
Posted By ChrisScott
You just need to replace apostrophes with two...

You just need to replace apostrophes with two apostrophes e.g.

choice = request("choice")
If choice <> "" Then
choice = Replace(choice, "'", "''")
End If

HTH,

Chris
Forum: Javascript How-To February 24th, 2006, 09:52 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
If we're talking text fields here, you should be...

If we're talking text fields here, you should be able to insert all the above characters into a MySQL db.

Can you post the sql that's causing the problems?

Cheers,

Chris
Forum: Javascript How-To February 24th, 2006, 05:48 AM
Replies: 25
Views: 4,857
Posted By ChrisScott
Hi Picco, You could do something like...

Hi Picco,

You could do something like this...

function fix_chars(textBox)
{
textBox.value = textBox.value.replace(/['&_,%`"@~#]/g, "");
}
...
<input type="text" name="depapt"...
Showing results 1 to 12 of 12

 


All times are GMT -4. The time now is 11:28 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.