Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About wychegnome

  • Rank
  1. At least I think it is a timing issue but I could be wrong. I have a web page that loads an Ordnance Survey (UK) map into a window and then needs to add a series of overlays containing my own data. The overlays do not always load with one or all 'missing' when the page is loaded. The situation is worsened when the page is refreshed. And which overlay file(s) is missed seems to vary randomly. <body onLoad="initialiseMap()"> triggers the sequence and the following code forms a part of that sequence: $(document).ready(function(){ var commonOneFile = myMapPath + "
  2. Thank you for your help - a long question and a short reply. Now working, thank you again.
  3. I am struggling with trying to get two sets of validation to work together on a form. The main set of validation is set up using Dreamweaver 8 and that provides these two scripts which sit in the header section of the page: <script type="text/JavaScript">function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n]; for(i=0;!x&&d.layers&&i<
  4. I am struggling to understand the proper positioning of the global.asa file on an existing web site to which I am adding a shopping cart facility. Currently I have a global.asa file sitting in the root directory of the web site which contains just one item in the 'Session_OnStart' sub routine to set a security level for acess. In the same root directory there is a .asp page which, on successful login, changes the session security level and alters the timeout period from the default of 20 minutes to allow logged in users adequate time to browse the shop. Also in the same root directory are a nu
  5. Following my post earlier today I have found a way round the 4Mb file limit imposed by Microsoft in its IIS. The solution is to set a block size (less than 4Mb!) and then download a block at a time until the entire file is down. Tested up to a download file size of 109Mb and works ok. However, there is time to make the tea (or down a pint) while waiting for the download to finish - and you realise why they call it a while-wend loop!In Firefox I found it necessary to go to tools > options > advanced > network and tick the override automatic cache management as otherwise the download s
  6. Once again, thank you for your assistance. I searched for mime type and found the one at this link to be particularly well set out as it lists by file extension: http://www.webmaster-toolkit.com/mime-types.shtml I carried out some more changes to the subroutine and made further tests. One thing the tests revealed is that, on my computer at least, word and rtf documents don't open in the browser because the relevant links have not been embedded in the browser itself. The conclusion I reached, therefore, is that it is only worth opening a limited set of file types that browsers can be reasonably
  7. Thank you for responding so promptly. I amended the sub routine to read as follows: sub downloadfile(f, saveas)Response.ContentType = "application/pdf"Response.AddHeader "Content-transfer-encoding", "binary"dim txt, objStreamf = server.mappath(f)Set objStream = Server.CreateObject("ADODB.Stream")objStream.Mode = 3objStream.openobjStream.loadfromfile ftxt=objStream.readtext(-1)response.binarywrite(txt)objStream.closeset objStream=nothingtxt=nullend sub and that downloaded the PDF files without any problem, opening them in the browser as desired. I then tried one or two other combinations of Con
  8. I suspect the answer to this is simple - but I cannot find an understandable one in the W3 tutorials or by 'googling'. In order to prevent unauthorised download of files that are intended for 'members only' I have placed them in a 'secure' folder where they cannot be found by normal searches of the web site. And I don't want users or hackers to easily find the pathway to the file's true location by using the path in an anchor reference. I provide a link to the file on a page that is restricted to members only in this form: <a href="securedownload.asp?strFileName=book.pdf" target="_blank">
  9. Thank you for responding. Changing the \ to / in the railref.html page has resolved the matter - but still doesn't explain why Firefox didn't cope. IE and Safari didn't fall over on this and correctly expanded the links despite use of \ for / on the railref page.
  10. http://www.w3schools.../att_a_href.asp defines the attributes for urls that can be used with the href declaration in an anchor tag. I have been using a relative attribute as set out in that definition within a web site in the form "<a href="ref-mt.html#006">MT006</a>" where the html file called is in the same directory on the web site as the page containing the call. IE and Safari expand this call correctly to "http://www.s-r-s.org.uk/railref/ref-mt.html#006" and the link works as intended. Firefox does so as well when I use my local copy to test before uploading to the web site, B
  11. Thank you for that, it certainly works.Whilst waiting for responses I also tried window.scrollto() as an 'onClick' instruction and that produces the same effect.What I do find strange with window.scrollto() is the value in the x-axis seems to have no effect on positioning on my web page. I suppose this could be because I am using absolutely positioned divs. However, the y-axis value does enable me to scroll down to the desired position.Thank you again for your assistance.
  12. I have a web site/page that uses fixed position divs under css control to split the page into defined areas.The top area contains the menu area and is fixed in position so that the main body sections appear to 'slide under' it as the reader scrolls down the page. Included in the main body section are named anchors to allow quick access to specific items.When the named anchor is invoked, the browser commences the display at the top of the browser window which results in the first part of the information being out of view.Is there any way of directing the browser to commence display of the named
  13. Problem SOLVED !!Caused traced to the menu system I had implemented and specifically this line of entry in the css file -.anylinkcss {position: fixed!important; absolute; left: 0; top: 0; visibility:hidden; }The CSS page on the W3School site states :- "visibility:hidden hides an element, but it will still take up the same space as before. The element will be hidden, but still affect the layout.". Effectively the print out included the menu structure in 'hidden' form, added at the end of the visible print.Changing to -.anylinkcss {position: fixed!important; absolute; left: 0; top: 0; display:no
  14. The font size used for printing is already smaller than the on screen one. I don't think font size is the problem and I would not want to go even smaller as some of the readers' eyesight is not what it used to be.Thank you, however, for the suggestion.
  • Create New...