Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by pixelz

  1. pixelz

    RegExp question

    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...
  2. pixelz

    RegExp question

    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...
  3. pixelz

    RegExp question

    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...
  4. pixelz

    using variables in recordset object

    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...
  5. pixelz

    using variables in recordset object

    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...
  6. pixelz

    using variables in recordset object

    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...
  7. pixelz

    using variables in recordset object

    BTW - I've DEFINATELY checked all spelling between the code and the database! :)
  8. pixelz

    using variables in recordset object

    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...
  9. pixelz

    User definition problem - BIG PROBLEM!

    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...
  10. pixelz

    User definition problem - BIG PROBLEM!

    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...
  11. pixelz

    Stysheet not applying to code generated on onload event.

    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...
  12. pixelz

    Stysheet not applying to code generated on onload event.

    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...
  13. pixelz

    Stysheet not applying to code generated on onload event.

    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...
  14. pixelz

    Matching strings with RegExp

    Sweet!! Thanks for that dude! You, as always, have been a real help! Cheers Pix
  15. pixelz

    Matching strings with RegExp

    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...

Part and Inventory Search

Back
Top