Ah brilliant! thanks for that.
Actually, I just noticed that it is picking it up. Sorry about that - I've got a script matching up the entry to a list of possible SQL injection attacks and one that sanitises the content of the entry - they both work in conjunction and, well, were working a...
Ah nice! didn't know you could define the flag outside the deinition like that. hmmmm... very tasty...
Seems to work fine on the [url, but I've got another small issue. Another thing I'm testing on is <script and, following the above eg, I've tried:
var thisReg = /<script/i;
but this...
Hi there,
I'm trying to validate a string input using the RegExp object. One of the things I want to watch out for is the [url] entry but I'm having problems putting it into the definition.
I can do this:
var thisReg = /\[url/;
with no problems. But I want to use the 'ignore case' flag in...
Right - fixed it!
This is very wierd - I changed the line:
var tempQuestion = new String(tempQuestion);
to actively cast the tempQuestion value into a string datatype
var tempQuestion = tempQuestion.toString();
And that works beautifully...
jeeez - i knew JScript was picky with it's...
yeah, that's what I thought, but still getting the error 'Item cannot be found in the collection corresponding to the requested name or ordinal' which seems to me that it's just not recognising the variable. Tried it out of the context of the function as well, but no luck there either...
Hey Tsuji,
first of all, this is just my first pass through this script - you're right, it's not very clear and I've been working on it subsequently in a slightly different form to get results out - ie not using the function, just writing it straight, and it's getting better.
Anyway, here are...
Hey all,
I have a database of responses to a questionaire - each question has a number of possible responses and each response is stored as a numerical value (ie answer A = 1; answer B = 2 etc)
I'm trying to write a function (in javascript ASP) that will give me an array of objects, each with...
OK, if anyone's intersted a friend of mine found the issue. One the top level site admin, under site collection administration there's a list called Site Collection User Information. This is where the old user names were still stored! Had just to delete them out of that list and replace the new...
Hi there,
I'm having the wierdest problem with a sub site in Sharepoint 2003. It comes in multiple steps, so bear with me:
Step 1:
I defined a couple of users (in 'Active Directory Users and Computers' on my server) but their names were wrong. So I changed them, again on the server.
Problem...
No problems Sal.
Give us a lil pink star if this has helped you. :)
If you want to know more, I'd recommend:
Great primer on javascript:
http://www.w3schools.com/js/default.asp
Great primer on the HTML Document Object Model:
http://www.w3schools.com/htmldom/default.asp
Also get yourself...
Hey again Sally,
have a look at the source code of this page:
http://www.ncri.org.uk/codetests/generateAllinDOM.html
That's what I meant about seperating content and structure. You pages will speed up dramatically if you render your structure in HTML first and them populate with dynamic...
Hey Sal,
OK, been playing with your concept. I'd say your best bet is to take your renderNetwork() function and define it in your header section. Then call your function in your body section. Not only will this seperate the two ideas physically into definition and instantiation, it will also...
Ah yes - You're right. Just plugged that in and it is indeed working. Could you explain the ?true:false addendum you made there. How does that ensure the return of a boolean? is it shorthand? What would happen if you wanted to return a string for eg or an integer?
I see what you mean with the...
Hi Sally
I agree with Ferherke. You've applied your stylesheet to your document anyway, no matter what's on there, by the very virtue of the fact that it's in the HEAD tags - and you're writing your content afterwards. Is the stylesheet link working properly? Referencing the right place and...
Ah, beautiful!
Have tried those and the one that seems to work the best is escaping the \b - that was probably my problem all along.
some feedback on the other solutions:
1. Sure - that's definately possible, but trying to get my head around using regular expressions so wanted to take that...
Hi Sal,
Could you post a link to a live version of your page, if you have one, so we can see the problem in action? Having a difficult time visualising it.
Also, you may not need to use the onload method for running your script. It could possibly be done by the following:
<BODY>
<script>...
Hi all,
This regular expression stuff does my head in. In theory I can SO understand it, but I seem to run into problems every time I try and do something even slightly complex with it.
So - I've written a little ASP app (in javascript) to take a whole bunch of feedback information out of a...
Yup - actually when I put the CDATA tags in, the urls that I had hardcoded with the replacement unicode stopped working completely, so they definately needed replacing!
Thank for pointing that out, tsuji!
;)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.