|
I'd like to add that you should take a look at the Expresso tool found on this site for working with regular expressions. In case you have more regular expressions to work with, you may find it very useful
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
also I found that this code
style[\s]*=[\s]*"([^"]+(?!=[>"]))["]
works a bit better as the previous code cut off the style code at "-" characters
Le Roux Viljoen
Web Developer
PCW New Media
South African Branch
www.pcwnewmedia.com
|
|
|
|
|
I want to use the code below to check the age of who ever fills in a form, I am trying to use a regulary expression to do this, at the moment it keeps giving me the wrong results;
|
|
|
|
|
Regular expressions are for pattern matching, not numeric comparisons. Replace:
var reg_expression = /[0-18]/;
if (reg_expression.test(quiz.personal_age) == true) ...with:
var age = parseInt(quiz.personal_age);
if (age <= 18 )
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
I need to provide a 'code' for people to enter to prove they are human (well at least that they are reading the page!)
I am getting huge amounts of mail generated by some russian 'hacker' and I need to stop this.
Does anyone know how to go about coding these little boxes, or if there is a tool available to do it? It is a very simple HTML web - no jave etc - as I am a very simple programmer and am not into Java. (Well not yet anyway)
Thanks for any assistance.
David
|
|
|
|
|
|
Thank you ever so much Phil. I will give that a try. What a fabulous idea!!
David
|
|
|
|
|
If you want to have full control over the code yourself, there are some CAPTCHA projects on CP.
For example this[^] one.
|
|
|
|
|
I second that referenced article. It is a very good one.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I am currently developing a small web site using MySQL - PHP, but I am not sure the technology really matters in my problem.
I have a page where users can search for items based on some parameters they can select. I have made this using a simple HTML form and this works like a charm, but for one parameter: the user must select an area on a map. What I have done is that I display a map on which different areas are numbered from 1 to 7 and the user chooses an area using radio buttons near the map (I know, a dropdown would be better, but I chose to consistent with the rest of the form). What I would like is that he could be able to select an area directly on the map. I have no idea which technology to use to achieve something like that (basically "selecting" an area on a map and keep that selection marked). HTML area tags do not fit, since I don't want to jump to the target on mouse click, but only to mark the area as selected and use that value later.
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
well, you can still use an HYTML area map, but you don't have to jump anywhere on a mouse-click / selection, but call a Javascript function instead that either sets a hidden variable and/or sets the appropriate radio button....
|
|
|
|
|
OK, and how do I make the choice of the user visible for him (change the selected area on the map), without the page reloading (so as not to lose his other form data) ?
I guess I could change the picture, switching between 7 images where a different area is selected on each picture according to the area having been clicked into. But does not this need reloading ?
I'm waiting for Windows Feng Shui, where you have to re-arrange your icons in a manner which best enables your application to run. Richard Jones
|
|
|
|
|
well, it's slighty tricky... with only 7 areas you could have 8 different images (one with each area highlighted and one with none) and use JavaScript to swap to the appropriate one each time... if your images aren't too big that could work ok... or, if you have atool like Fireworks [^] then you could create a really fancy map that does what you want - but trying to code that "by hand" would be a bit much...
If it's not 100% necessary to show the selection on the map, you could just highlight and select the apprpriate radio button - so when they click on Area 2, for example, then radio button 2 gets selected and has it's background colour set to red, say.. all possible wiht JavaScript...
|
|
|
|
|
Thank you very much for your advice Phil, I'll have a go at the javascript version. I suppose that I will need an alternative for people having javascript disabled...
~RaGE();
I think words like 'destiny' are a way of trying to find order where none exists. - Christian Graus
Do not feed the troll ! - Common proverb
|
|
|
|
|
Hi all
Has anyone got any experience in the above (http://www.tibco.com/devnet/gi/[^].
We're just about to embark on evaluating it and wondered if anyone had any pointers or gotchas?
Thanks
Ben
|
|
|
|
|
I used to use Cute FTP several years ago when it was free.
I've gotten back into creating my own websites and when I went to download Cute FTP I found out that it does not appear to be free anymore.
What is your current free FTP tool of choice?
|
|
|
|
|
|
|
|
It depends what you need to do, for simple FTP this is fine, but if you need to use the command line, the MS FTP client doesn't support SFTP or passive connections which caused us problems when connecting to external clients.
Horses for courses.....
Ben
|
|
|
|
|
Hi...
I am using Asp.net and want to add gridview inside gridview.
Like a gridview shoud have one column with link "+" and if one clicks it,
child gridview should appear just under this row.
I am bit confused for what sort of control to use.
Please guide me to get me out of this problem.
Thank you.
Hemant Thaker.
By:
Hemant Thaker
|
|
|
|
|
|
Hi,
I am trying to run a personal website in localhost, but it asks for a localhost username and password when I type in http://localhost/MyWebsite/
I don't recall setting a password any where? It works fine in IE 7. Please can someone advise as what to do?
Thanks
Brendan
|
|
|
|
|
Presumably you have IIS configured for Windows Integrated Authentication. IE will pass along your credentials by default, but FF requires that you explicitly configure it to allow this (there's a white list of allowed servers and such). Unless your app needs your login credentials (for impersonation or something), just turn on Anonymous auth in IIS.
---- You're right.
These facts that you've laid out totally contradict the wild ramblings that I pulled off the back of cornflakes packets .
|
|
|
|
|
Can anyone help me have an Idea about the Market rate prevailing for PHP developers in the countries like US,UK, GULF countries?
I need it very much. It will be a great help to me.
Girish Nbr.
|
|
|
|