 |
 | Excelent Simon Anonymous | 3:39 1 Apr '05 |
|
|
 |
 | %26 --> & JMS_ | 7:04 5 Jun '04 |
|
 |
The '&' may get mangled to hex (%26). You may want to add a line like this after you get the URL to fix that: sURL = sURL.replace("%26", "&");
|
|
|
|
 |
|
 |
Thanks for the info.
Cheers, Simon
sig :: "Don't try to be like Jackie. There is only one Jackie.... Study computers instead.", Jackie Chan on career choices.
article :: animation mechanics in SVG blog:: brokenkeyboards "It'll be a cold day in Hell when I do VB.NET...", Chris Maunder
|
|
|
|
 |
 | Windows cannot find the file... HawkSoftware | 14:51 25 Mar '02 |
|
 |
I have a simple html page that loads a picture. I really would like to pass parameters to an html page and this article looks like it can solve my problem.
Unfortunately when I try the example I have trouble. My "test.htm" file works fine it loads a background image. I added the script function you provided and when I open test.htm it shows an alert box with 0. Then when I try to open "test.htm?mynewname=Thanks" explorer barfs and shows an error message that:
"Windows cannot find 'D:/web/html/test.htm?mynewname=Thanks'. Please check the spelling ..."
Any guess as to what I am doing wrong?
Thanks.
|
|
|
|
 |
|
 |
Please can you send me/post the whole page, and I'll figure out the problem.
mail : brokenkeyboards@hotmail.com
Cheers, Simon
X-5 452 rules.
|
|
|
|
 |
|
 |
Simons,
Works great. I must have had a cut and paste problem.
Thanks for the help!
Hawk
|
|
|
|
 |
|
 |
I had the same problem, but noticed that if I post the page on Tripod, it works just fine. Just a guess, but I think it might have to do with accessing the file on a local drive. I know it doesn't make much sense, but just the same...
Hope this helps.
|
|
|
|
 |
 | Please enhance for passing parameters using bookmark notation Victor Vogelpoel | 22:30 30 Jan '02 |
|
 |
Instead of using the Search notation '?', the bookmark notation '#' can also be used to pass parameters to OTHER pages. So it would be nice to enhance the code for this.
Why would you use the bookmark notation for passing parameters? The search notation doesn't work within HTML Help files (.CHM), but you can pass parameters using the bookmark notation! I used this in the electronic photo album to remember the last photo being shown. See http://www.codeproject.com/winhelp/htmlhelpdemoalbum.asp for the article and code (code is not explained, but can be found in the album).
I say OTHER pages, because a browser (at least IE) doesn't reload a page when you would call the same page but with different parameters in the # notation. (Chris Maunder actually uses this behaviour in the forums to open a thread without reloading the whole page).
Victor
|
|
|
|
 |
|
 |
Thanks for the feedback, Victor. My reasoning for using "?" was because of the web developer's familiarity with the way Request.Querystring works, but I like your idea. Any idea if there is a delimiter for the bookmark notation. It doesn't really make sense since IE would not know what to do with it. If I use "&" as the delimiter, will this not be against an internet standard?
I'll be keen for any more feedback that you have on this.
Cheers, Simon
If we fail to anticipate the unforeseen or expect the unexpected in the universe of infinite possibilities, then we may find ourselves at the mercy of anyone or anything that can not be programmed, categorized or easily referenced.
|
|
|
|
 |
|
 |
I suggest that you use the "&" as delimiter (as I did in the album code). It keeps your code simple as well.
Using the bookmark for passing parameters is a workaround for not be able to pass parameters using "?" in an HTML Help file, which I needed in my HTML Help photo album. In 1999 I prepared some files to demonstrate the problem and the solution. Interested folks can find it at: http://home01.wxs.nl/~vvogel/htmlhelparg/index.html
VictorV
|
|
|
|
 |
|
 |
Thanks again for the info, Victor. You should write a whitepaper on this and send it to RoboHELP, etc...
Cheers, Simon
|
|
|
|
 |
|
 |
Well, it's in the open anyway now in my photo album article on this site (at least it's mentioned) and I already published it in the WinHelp mailing list a long time ago, so I don't have the urge to start writing. I'm not too thrilled about eHelp anyway (the creators of RoboHelp).
Victor
|
|
|
|
 |