Jump to content

Reg Edit

  • Content Count

  • Joined

  • Last visited

Everything posted by Reg Edit

  1. Hey, what happened to the poll counts? I realize the thread's been viewed a lot without many actual votes being placed, but there were at least 3 votes when I last looked... Now the counts are all zero again! My very first w3schools forum poll... in ruins... Is this a known "feature" with these forum polls?
  2. I think the sp_dboption call is a hangover from SQL Server 7, which gave error messages unless you did that when using UPDATETEXT. If omitting it doesn't give error messages, I think you can leave it out.I've renamed your @arrow as it's confusing me with that name--the text pointer points to the start of the details field, not the arrow position within it. Call it what you will but I've called it @txtptr in the example code below.To update multiple records, use a cursor. This will enable you to loop through all the matching records. For instance:CREATE PROCEDURE [dbo].[spRemoveArrow]AS BEGIN D
  3. No, the sample has:DECLARE @ptrval binary(16)SELECT @ptrval = TEXTPTR(pr_info) ... so you need to have: CREATE PROCEDURE [dbo].[spRemoveArrow]ASBEGINDECLARE @arrow binary(16) SELECT @arrow = TEXTPTR(details)...ENDGO The example you showed does not use any SP or bulkcopy. Can you post a link to the example that has SP and bulkcopy that you refer to.
  4. That error will occur if you pass a varchar to your stored procedure's @arrow parameter. Why is @arrow a parameter? Just declare it in the stored procedure. Its value is set by your call to TEXTPTR. UPDATETEXT has an offset parameter, which you're setting to NULL. You need to set it according to where your arrow occurs in the text. So if the text is '& #9658;abcdefg', offset needs to be 0, and if text is 'abc& #9658;defg', offset needs to be 3. You can use PATINDEX to obtain the index within a TEXT, so subtract 1 to get the offset, i.e. PATINDEX('& #9658;', details) - 1 Is there o
  5. Please post the javascript you're trying to run.
  6. Realized that the links I originally posted, while giving useful background, themselves link to the Virtual PC 2004 download. Just in case that misleads anyone: Virtual PC 2007 is the current free download from Microsoft.
  7. Just wondered what folks are using to run both IE6 and IE7 for testing web pages.(Saw the browser discussions thread, but wanted to make this one a poll... hope that's OK! )As Microsoft have made IE an operating system component, you can only run one version at a time on the same box, unless you use one of the workarounds, of which Microsoft say: (which of course they would say). How many of you are using one of these workarounds? (Please provide link to the workaround in question.) What was it like to set up, and what problems (if any) do you experience with it?But anyway, in case anyone's
  8. I don't know about the menu, but loads of stuff is getting pushed down below the divs. For instance, your <h1> heading (that's not in a div) doesn't appear at all when the page is loaded. I have to page down to see it.So I think it's the div styles you need to look at. (As a last resort, you could consider putting everything in divs...)
  9. Reg Edit

    States of link

    javascript navigationcss navigationphp navigationasp navigation
  10. I agree. And in fact just yesterday I sent the following reply to a PM: As you say, it's a compliment to be selected by a member for an individual question, but usually the best way is by posting to the forums.
  11. Reg Edit


    There's an extra ) on the end of that line. It will cause a javascript error, so the cookie won't get set.
  12. OK but I still don't see why you want to generate the element contents in a javascript function. Edit: ...or why you want to put a script block in that element. /Edit What would be the reason not to do as Synook suggests?
  13. Instead of trying to write the tag characters from your stylesheet, write element nodes. The tag characters are then created for you in the output:<xsl:element name="img"> <xsl:attribute name="src"> <xsl:value-of select="player/image"/> </xsl:attribute> <xsl:attribute name="alt"> <xsl:value-of select="player/name"/> </xsl:attribute></xsl:element>
  14. I don't know about pdfs, but what about all the free videos, interactive tutorials and downloads on the ASP.NET site?
  15. OK. BTW I see that site has the same DTD you used, with no URI. Weird. The W3C site says: But I just tried the W3C validator, and it says that site is valid!So I would like to know what is the point of the URI being optional.
  16. It depends what you're trying to achieve, how much effort you want to invest in learning, what resources you have, etc etc. But if you want to build on your VB experience and use VB in web applications, have you looked at ASP.NET?
  17. Reg Edit

    States of link

    It's not consistent across browsers: in Firefox, the :active style is applied till you release the mouse-click, but in IE, it remains after you release the mouse-click. Javascript.
  18. You just need to return true or false from the validation function. Currently it's not returning false, so the submit goes ahead and the page refreshes. Try something like this (isValid variable added):function Validate(theForm){ var elemValues = theForm.elements; var idArray = new Array("firstname", "surname", "address", "userID", "password", "email"); //Clear errors //some code to go here to delete the errors which i have deleted for the sake of this problem var isValid = true; for (i=0;i<elemValues.length; i++ )//scrolls through the form elements { if(elemValues[i].value == ""){
  19. The "doctype" thing (DTD) tells the browser what kind of document it is. Your DTD doesn't look complete; there's some info here about DTDs. (You mention frames, and there is a frameset DTD, but actually your source doesn't appear to use frames? so the frameset DTD would not be relevant.)BTW I don't know if the scrollbar styling works at all in Firefox: it didn't when I just tried, from your page (2) or from the Try It example.
  20. Good point--hadn't seen that might be was what was going on. I would like more information to understand the overall intent better...
  21. You need to use two equals signs to compare:if (hour == 0) A single equals sign is for assigning a value.
  22. Like, uh, here in this thread, for example!
  23. From your description of what happens in FF, it's not that bit of code that has the problem. Can you post the html form please, and all the javascript it uses?
  24. If you want to become familiar with VBScript, the tutorial is probably a good place to start. You can learn there about syntax, Sub and Function procedures, the scope of variables, object creation and so forth in VBScript.Just out of interest, why do you want to use VBScript?
  25. This is not an area I've gone into deeply myself (yet). But what I did find out is that you can specify HTTP headers at two levels:- the entire site- an item within the site (file or folder)At either of those levels, you can explicitly set expiration, and/or add custom headers. THe custom headers are name/value pairs, and this may, for all I know, include finer-grained expiration control such as file type or wildcard filename patterns.Apache. Must look at that myself sometime... the usual zero-cost lure of open source software is less straightforward for me, as the nature of my work means I'm
  • Create New...