Microsoft Vbscript Runtime Error 800a139a
OptimizeHTML(sText) Dim objRegExp Set objRegExp = New RegExp objRegExp.IgnoreCase = True objRegExp.Global = True objRegExp.Pattern = "<(?!\/?(table|h4|tr|th|td|br|p|b|li|ul|a)\b)[\s\S]*?>" 'Here the fun begins!! sText = objRegExp.Replace(sText, "") Set objRegExp = Nothing 'Clean up! OptimizeHTML = sText End Function I'M getting this error: Microsoft VBScript runtime error '800a139a' And it fails on this line sText = objRegExp.Replace(sText, "") I have exactely the same code on another dev server and it works perfect! From the server: SERVER_NAME=www.half.dk SERVER_PORT=80 SERVER_PORT_SECURE=0 SERVER_PROTOCOL=HTTP/1.1 SERVER_SOFTWARE=Microsoft-IIS/5.0 BUT I do not have THIS server at my reach - what do i do??? Best regards Michael Christensen www.half.dk Sat, 21 Aug 2004 03:11:47 GMT Atrax #2 / 5 Microsoft VBScript runtime error '800a139a' what script engine versions are the two different servers runing? Atrax - MVP [Microsoft Most Valued Professional] http://www.infinitemonkeys.ws/ Host with me for $100 a year! http://www.atrax.ws/hosting/ *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it! Sat, 21 Aug 2004 07:03:57 GMT Alex Angelopoulo#3 / 5 Microsoft VBScript runtime error '800a139a' FWIW, with WSH 5.6, WinXP, I can run the code as -shown with no issues; looks like a versioning problem as a Atrax suggests or possibly a minor transfer typo. : I have this function: : : Function OptimizeHTML(sText) : Dim objRegExp : Set objRegExp = New RegExp : objRegExp.IgnoreCase = True : objRegExp.Global = True : objRegExp.Pattern = : "<(?!\/?(table|h4|tr|th|td|br|p|b|li|ul|a)\b)[\s\S]*?>" 'Here the fun : begins!! : sText = objRegExp.Replace(sText, "") : Set objRegExp = Nothing 'Clean up! : OptimizeHTML = sText : End Function : : I'M getting this error: : Microsoft VBScript runtime error '800a139a' : And it fails on this line sText = objRegExp.Replace(sText, "") : : I have ex
GoogleВойтиСкрытые поляПоиск групп или сообщений
be down. Please try the request again. Your cache administrator is webmaster. Generated Thu, 20 Oct 2016 18:06:41 GMT by s_wx1126 (squid/3.5.20)
problem The SitePoint Forums have moved. You can now find them here. This forum is now closed to new posts, but you can browse existing content. You can find out more information about the move and how to open a new account (if necessary) here. If you get stuck you can get support by emailing forums@sitepoint.com If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. SitePoint Sponsor User Tag List Results 1 to 3 of 3 Thread: highlighting problem Thread Tools Show Printable Version Subscribe to this Thread… Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode Jun 22, 2006,20:04 #1 gilgalbiblewheel View Profile View Forum Posts SitePoint Guru Join Date Aug 2004 Location Canada Posts 730 Mentioned 0 Post(s) Tagged 0 Thread(s) highlighting problem I don't know if I accidentally play around with the script. But now it's showing error: Microsoft VBScript runtime error '800a139a' Unexpected quantifier /wheelofgod/showverse.asp, line 210 Line 210 shows: Code: strText = mobjRegExp.Replace(strText,strReplace) Attached Files showverse.txt (6.7 KB, 5 views) Compare bible texts (and other tools): TheWheelofGod Jun 22, 2006,23:46 #2 siteguru View Profile View Forum Posts SitePoint Wizard Join Date Oct 2002 Location Scotland Posts 3,631 Mentioned 2 Post(s) Tagged 0 Thread(s) Why do you have TWO functions called Highlight? (lines 19 and 190). Are you sure you are passing all the required data to the function and of the correct format? Ian Anderson www.siteguru.co.uk Jun 23, 2006,08:25 #3 gilgalbiblewheel View Profile View Forum Posts SitePoint Guru Join Date Aug 2004 Location Canada Posts 730 Mentioned 0 Post(s) Tagged 0 Thread(s) You're right. The first one is the older version I had. I tried the exact same script on my website (the other was my server, which didn't work) it worked: You can test it here: http://i.domaindlx.com/wheelofgod/Bibletext.asp Compare bible texts (and other tools): TheWheelofGod Quick Navigation Classic ASP Top Site Areas Settings Private Messages Subscriptions Who's Online Search Forums Forums Home Forums Community Center News & Announcements General Discussions Introductio