View Full Version : Open html file with browser
bobbie
02-06-2006, 06:50 AM
I have a html file I'm trying to open with a button but not having much luck? see what I have wrong?
Web.LoadURL("Web1", "Docs\links.html");
bobbie
02-06-2006, 07:06 AM
I got it never mind. need \\ not just \
azmanar
02-06-2006, 11:29 AM
I got it never mind. need \\ not just \
I often did the same mistake, forgotting to escape the slash. Maybe this forum has an escape required list somewhere.
bobbie
02-06-2006, 11:32 AM
What is funny if you use the quick link stuff to load a page in the the web browser it don't show the \\ just the reg links to the file .
Know what I mean?
azmanar
02-06-2006, 03:21 PM
What is funny if you use the quick link stuff to load a page in the the web browser it don't show the \\ just the reg links to the file .
Know what I mean?
Bobbie,
I was also wondering whats with the \\.
Someone told me the reason is to ESCAPE the slash. ESCAPE? What ESCAPE??? hehe ... I thought he was kidding. Nope... he wasn't.
The first "\" actually tells the AMS Scripting Engine to leave alone ( to ESCAPE ) the next character. Well, I'd call it SKIP. So far, I did some SKIPPING like:
- \r telling AMS it's a Return and not an r
- \n telling AMS it's a New Line and not an n
- \" telling the Engine to treat it as a " and not the end of a variable
- \\ was the oddest but tells the engine it's a slash and not an ESCAPE. heehe ...Escape the Escaper.
I saw someone put up a \t for TAB. I think there are other characters that can SKIP.
Corey
02-06-2006, 03:24 PM
Yep exactly. All scripting languages have the same thing although implementation may vary. :yes
bobbie
02-06-2006, 03:31 PM
Some php scripts you can use \\ for file paths when they use unix paths / on a windows server .
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.