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 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: crmpicco
Forum: Javascript How-To March 29th, 2006, 06:31 AM
Replies: 25
Views: 4,857
Posted By crmpicco
but, it needs to know what textbox to replace the...

but, it needs to know what textbox to replace the charatcer with.....

www.crmpicco.co.uk
www.ie7.com
Forum: Javascript How-To March 23rd, 2006, 05:56 AM
Replies: 25
Views: 4,857
Posted By crmpicco
thanks Chris, but I need to pass the name of the...

thanks Chris, but I need to pass the name of the textbox to the function as more than one textbox is using it.......

www.crmpicco.co.uk
Forum: Javascript How-To March 22nd, 2006, 06:11 AM
Replies: 25
Views: 4,857
Posted By crmpicco
<input type="text" tabindex="3" name="ariapt"...

<input type="text" tabindex="3" name="ariapt" id="ariapt" size="12" value="" onChange="this.value=this.value.toUpperCase();destination_name();" class="selects" onDblClick="destination(this.name);"...
Forum: Javascript How-To March 21st, 2006, 12:34 PM
Replies: 25
Views: 4,857
Posted By crmpicco
/* FUNCTION NAME: fix_chars Replace specific...

/*
FUNCTION NAME: fix_chars
Replace specific characters with [BLANK] as they are no valid city/airport code entries
*/
function fix_chars(id,val)
{
var doce = document.forms["fexp"].elements;
...
Forum: Javascript How-To March 21st, 2006, 08:55 AM
Replies: 25
Views: 4,857
Posted By crmpicco
yeah, that worked great Chris. it will catch the...

yeah, that worked great Chris. it will catch the bad characters both Client-Side and Server-Side now. thank you.

www.crmpicco.co.uk
Forum: Javascript How-To March 17th, 2006, 09:03 AM
Replies: 25
Views: 4,857
Posted By crmpicco
but try putting an apostrophe (') into the...

but try putting an apostrophe (') into the variable 'scotland'.........................

it all goes Pete Tong!

www.crmpicco.co.uk
Forum: Javascript How-To March 16th, 2006, 01:40 PM
Replies: 25
Views: 4,857
Posted By crmpicco
SELECT county FROM Stadiums where countryname...

SELECT county FROM Stadiums where countryname like '&scotland&'

www.crmpicco.co.uk
Forum: Javascript How-To March 16th, 2006, 06:04 AM
Replies: 25
Views: 4,857
Posted By crmpicco
set rs2=con.execute("SELECT country FROM...

set rs2=con.execute("SELECT country FROM `stadiums` WHERE countryname LIKE '"&choice&"%'", ,adCmdText)



www.crmpicco.co.uk
Forum: Javascript How-To March 6th, 2006, 08:02 AM
Replies: 25
Views: 4,857
Posted By crmpicco
what SS-code are you using? ...

what SS-code are you using?

www.crmpicco.co.uk
Forum: Javascript How-To March 2nd, 2006, 10:14 AM
Replies: 25
Views: 4,857
Posted By crmpicco
just wondering Chris, you mentioned that most of...

just wondering Chris, you mentioned that most of those chars SHOULDNT crash my db, but surely the apos and ampersand and classic MySQL crashing characters. are you thinking of something else?
...
Forum: Javascript How-To March 1st, 2006, 01:15 PM
Replies: 25
Views: 4,857
Posted By crmpicco
choice = request("choice") set...

choice = request("choice")
set rs2=con.execute("select * from db_stadiumname where countryname like '"&choice&"%' and languagecode = 'gb'")


Choice is coming from a text box in the previous...
Forum: Javascript How-To February 24th, 2006, 09:39 AM
Replies: 25
Views: 4,857
Posted By crmpicco
BTW, what characters WOULD crash my DB? the & and...

BTW, what characters WOULD crash my DB? the & and ' for sure. but what out of my function and what ive not got would crash, or cause problems with my db. thanks for your help chris
...
Forum: Javascript How-To February 24th, 2006, 09:31 AM
Replies: 25
Views: 4,857
Posted By crmpicco
thanks Chris, it was mainly the & and the ' that...

thanks Chris, it was mainly the & and the ' that would crash the db, i was just being sure that the others wouldnt by filtering them out......

www.crmpicco.co.uk
Forum: Javascript How-To February 24th, 2006, 05:26 AM
Replies: 25
Views: 4,857
Posted By crmpicco
javascript remove bad characters for MySQL db hit

function fix_chars(id,val)
{
if ((typeof(val)=="undefined")||(typeof(id)=="undefined")){
return;
}
if(/'/.test(val))
{
document.forms["fexp"].elements[id].value = val.replace(/'/g,'');
}...
Showing results 1 to 14 of 14

 


All times are GMT -4. The time now is 09:57 AM.


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