Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About ecluley

  • Rank
  1. hmmm, have been playing about with this all day and it looks like the offsetWidth is giving me an incorrect value, i.e. it is returning the width of the window and not of my flash movie. is there any way of just getting the width of the flash movie? basically what I am actually trying to do is make a page with a flash movie and then an iframe layed over the top of it. The flash movie will resize with the window (this works using the width=100% and height=100%) but what i need is to resize the iframe in the div layer and possition it so that it remains in proportion to the flash movie.does th
  2. wow, thanks so much for the quick reply and solution- it worked well!for some reason the width works perfectly but the height just always returns 16. not sure why but to be honest it doesn't matter as i can use math to work out the height anyways! cheersEwen
  3. hi, i am trying to use javascript to get the dimensions of a flash movie and i found a tutorial and script which does this. the only problem is that my flash movie resizes with the window but the javascript keeps returning the original dimensions- i assume it's simply getting the actual dimensions of the swf file but i need it to get the dimensions of the flash movie on screen. Is there a way of doing that? hope that makes sense and thanks in advance!here's my code: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta http-equiv="Content-Type" content
  4. ok, i see, so i can't send a file to an asp script using ajax?i think i found a tutorial for doing it with so ill take a look at that.thanks for your help, u always seam to be around to assist me with my silly questions.Cheers,Ewen
  5. Hey, having a bit of trouble with a file upload that im building. I know that my upload script (ASP) works as I have used it. My problem is getting it to run correcly from ajax.I have a form with a button and a file input and a text box (for some sort of response)my ajax function is called when the button is clicked and the button passes the file object to the ajax function.I have put in several "alert()"s to see where my code is at and whether it is working and all come up as if the code runs completely.The problem is, i get back "<h1>Length Required</h1>" rather than the output
  6. ah dear, i am a bell end!I found the problem, i simply wasn't referencing the iframe correctly- by referencing the actual frame rather than the document within i think?!I used document.getElementById("rte").execCommand(insertimage, false, imagePath)rather thandocument.getElementById('rte').contentWindow.document.execCommand(insertimage, false, imagePath)Thanks for the suggestions, made me look over my code and a few tutorials.I am a total javascript noob :)ta
  7. Thanks for your quick response.I did originally think that that maybe the problem but had at first tried a different name for the function- RTEinsertImage. I tried changing everything back to this but the same problem.When i click the button to bring up the DIV for the image selector the iframe becomes unfocused. I then click back in the iframe, returning the cursor to the correct place but when I click to actually insert the image the iframe unfocused and nothing else happens.The focus functions I have are different but this was simply because I was testing different ways to see if it made
  8. Hi,I have a small problem and was wondering if anyone could give me some advice about it.I am building a WYSIWYG text editor using JavaScript and a bit of ASP. I have built the basic functions but am having problems adding a way of inserting an image. I have read many examples which bring up a prompt box and the user types in the image location and it inserts it but I was wanting something a little more sophisticated with thumbnails of all available images coming up in a div layer. When the layer comes up it displays fine but upon clicking to insert an image absolutly nothing happens. I ge
  9. ok, that does work but surely I shouldnt have to. to further complecate things this is all part of a web site and web editor i made for a friend. basically the web editor takes in rich text and encodes it to html. it generates the html code and I cannot find a way- even using replaces of getting this to wrk. i understand your solution works as a work around but unfortunately it does not fix my problem. I need to know why the include is not allowing the £ to be displayed.thanks for your help and your quick response- it has given me some food for thought. still looking for a solution though!Ew
  10. when I try to include html files on an asp webpage any £ symbols in them become ? or funny little boxeshere is how the include file displays: appointments last for one hour and cost �100 - you can make an appointment by calling Caroline on 07886234559 or by emailing kathleen@reverse-therapy.com Make the first step to getting your health back! and this is the html code for the include file: Appointments last for one hour and cost £100 - you can make an appointment by calling Caroline on 07886234559 or by emailing kathleen@reverse-therapy.com <br><br>Make the first step to getting
  11. ok, got it. im an idiot. sory!
  12. I have a very strange problem. I have built an online calendar for myself to keep track of things with and all works fine untill i go to june. Basically the calendar is one asp page that takes in a Query string of the month it is to display which then links into the database and returns the data required. Whenever this query string is equal to 6(for june), no other number, it comes back with this error.Response object error 'ASP 0251 : 80004005'Response Buffer Limit Exceeded/calendar2.asp, line 0Execution of the ASP page caused the Response Buffer to exceed its configured limit. Any ideas w
  13. Hey,I am needing to allow people to buy a product from my website using paypal. The product is a download so i want the download to start once the payment is complete. is there anyway of doing this using asp?Cheers
  14. ecluley

    Make folder

    amazing mate! worked a treat. cheers for the quick response too!
  15. ecluley

    Make folder

    I am trying to have a script make a folder then copy some files into itmy code is as follows:dim fs,fset fs=Server.CreateObject("Scripting.FileSystemObject")set f=fs.CreateFolder("test")fs.CopyFile "new\*.mdb", "test"set f=nothingset fs=nothingWhen the code executes I get a errorMicrosoft VBScript runtime error '800a0046'Permission denied/adduser_update.asp, line 10Line 10 is set f=fs.CreateFolder("test")I have emailed my hosting company and they say permissions for asp scripts to write to the disk are enabled. what am I doing wrong?ThanksEwen
  • Create New...