Jump to content

novartic

Members
  • Posts

    42
  • Joined

  • Last visited

Everything posted by novartic

  1. Will look into when I get some more time.
  2. As said before. This is a school we are talking about here that has there site internally and externally.The external servers are only ISS and ASP with no front end. All I have assess to is the web space. Internally, we can do what ever we want to do, from php/asp/databases etc... but this does not help the matter.If I were doing this for my own site, then doing a database would be trying to do as we speak via the front end. If this all makes scence.
  3. Interesting posts there. I will investigate in these, esp this one.. Though the database one would be a good idea.... but externally we do not have access to this on our SWGFL server. This totally sucks.One more quick question tho.. How come on many sites that teach you to do RSS feeds explain them in a way that make you think that they just automatically update themselves according to the tags you give your text on your site.PS. Only used ASP in the site to include the main navigation bar in all the pages. Other then that no other asp is used. (due to the servers externally not supporting php. )
  4. The only problem is that the servers we have externally only support ASP. As we go via SWGFL (as we are a school). And no.. im not a teacher. This is my first ever job working in a school. Before hand I worked in the world.. :)PS... found this... cant get it to work tho http://msdn.microsoft.com/en-us/library/aa478968.aspx
  5. Yer thats right.I need to be able to make a script that looks for updates on my hard coded website, then gets this information, translates it into the feed.xml file automatically.Many websites do it and im surprised that everyone's hidding the code and know how.Thanks for the advice, I will look into "read/render an RSS feed using ASP",.Ill be back
  6. YES.Basically I would like the information in the news section, once added by a member of staff, to automatically be added into the RSS Feed. And if the information was to be removed from the main site, the information which was copyed into the RSS feed also gets removed.Like a clone really but one set of info is on the site, and the other on the RSS feed. (note: the information currently in the feed was in-putted by hand and was not automatically added in.)
  7. What I am trying to do is the following:1. Get the information from off a website (eg my works one) (The stuff under College News & Events)2. Then automatically, Synchronize the website content that you have specified,... to the RSS Feed.3. RSS Feed has updated information with out you lifting a finger... well apart from adding the information on the website in the first place.Tried searching on Google and also on forums and failed epicly, a bit like my spelling.Updated Website info. + script + RSS feed = Updated Website info on RSS Feed.Could some one please help me out here as im going spare and im wasting allot of time. (2 weeks and counting)
  8. Found that there were some odd things in the code that upset the JS. Its fixxed now. Though some other docs stil have this same issue so im just going to +30 at the end again.
  9. OK, Sixth Form | Parents Information pages now do not correctly expand.
  10. I tested this out on Chrome, FF, IE7Works perfect.Your a legged.scrollHeight hay.... intresting...All the Same, thank you very much for both of your help.
  11. Nope, Sorry, this does not work.else if(F.contentWindow) { F.height = F.contentWindow.document.documentElement.offsetHeight; }
  12. Nope, the curriculum page still does not work correctly in IE7 with this. Also, you took out method 2 that did work for home but not curriculum.
  13. EDIT:"Do you understand the code?" = Hardy at all... but getting there via this. = http://www.w3schools.com/js/js_if_else.aspI haven't yet looked at your last post. But... (comments are inside.) <script type="text/javascript">function sizeFrame() { var F = document.getElementById("myFrame"); if(F.contentDocument) {//In fire fox, Home and Curriculum works ok with this one.alert("running frame hight method 1"); F.height = F.contentDocument.documentElement.offsetHeight; }//In IE7, home works ok with this one.//In IE7 Curriculum chooses this one. But the page does nothing at all.else if(F.document) {alert("running frame hight method 2"); F.height = document.documentElement.offsetHeight; } else {alert("running frame hight method 3"); F.height = document.frames["myFrame"].document.documentElement.offsetHeight; }}window.onload = sizeFrame;</script>
  14. So you mean like this? <script type="text/javascript">function sizeFrame() { var F = document.getElementById("myFrame"); if(F.contentDocument) {alert("running frame hight method 1"); F.height = F.contentDocument.documentElement.offsetHeight+30; } else if(F.document) {alert("running frame hight method 2 as 1 does not work"); F.height = document.documentElement.offsetHeight; } else {alert("running frame hight method 3 as 1 and 2 does not work"); F.height = document.frames["myFrame"].document.documentElement.offsetHeight+40; }}window.onload = sizeFrame;</script> <script type="text/javascript">function sizeFrame() { var F = document.getElementById("myFrame"); if(F.contentDocument) {alert("running frame hight method 1"); F.height = document.documentElement.offsetHeight; } /*else if(F.contentdocument) {alert("running frame hight method 2"); F.height = document.documentElement.clientHeight; }*/ else {alert("running frame hight method 3"); F.height = document.frames["myFrame"].document.documentElement.offsetHeight; }}window.onload = sizeFrame;</script>
  15. OK, its the Home page and the Curriculum pages.http://www.oakmead.dorset.sch.uk/But that link does not have the modd's I am currently doing, but it does the the original iframe hight JS code that we were dealing with.With what were doing now though..... on the curriculum page.Method 1 does nothing.Method 2 processes, but then totally makes the iframe or its contents totally disappear.Method 3 works, but only expands the iframe for half of the document.Method 4, 4b works fine for the home page only. <script type="text/javascript">function sizeFrame() { var F = document.getElementById("myFrame"); if(F.contentDocument) {alert("Running frame hight method 1"); F.height = document.documentElement.offsetHeight; } else if(F.document) {alert("Running frame hight method 2"); F.height = document.documentElement.clientHeight; } else {alert("Running frame hight method 3"); F.height = document.frames["myFrame"].document.body.offsetHeight; }}window.onload = sizeFrame;</script> Method 4 <script type="text/javascript">function sizeFrame() { var F = document.getElementById("myFrame"); if(F.contentDocument) {alert("running frame hight method 4a"); F.height = F.contentDocument.body.offsetHeight+30; } else if(F.document) {alert("running frame hight method 4b"); F.height = document.documentElement.offsetHeight; } else {alert("running frame hight method 4c"); F.height = document.frames["myFrame"].document.body.offsetHeight+40; }}window.onload = sizeFrame;</script>
  16. Interesting, as you are correct as it works fine one Fire fox V3.0.11, Google Chrome 2.0.172.33 were as on IE7 V7.0.5730.11 it does not.If the page was constructed by tables (which it is), would this affect the final output? I mean like, the JS might only get the overall hight of the document from the content, and will ignore the fact there are brakes and tables etc.. if you get were I am coming from.What's not working is the following.If you have a long document, its only expanding half of the way or three quarters of the way down. There for leaving a scroll bar for the iframe still.
  17. Sorry to bring this up again. The script does not work correctly still in IE7. Found this out the other day. Are there any other ways of obtaining the hight from the main document? <script type="text/javascript">function sizeFrame() { var F = document.getElementById("myFrame"); if(F.contentDocument) {alert("running frame hight method 1"); F.height = F.contentDocument.body.offsetHeight+30; } else if{alert("running frame hight method 2 as 1 does not work"); } else {alert("running frame hight method 3 as 1 and 2 does not work"); F.height = document.frames["myFrame"].document.body.offsetHeight+40; }alert("loading page title junk that dont work");}window.onload = sizeFrame;</script> I gathered I have to use an else if before the else. Is this correct?
  18. I did do this and it didnt work. But I didnt post it up :)Ill post it up later on as I am really busy at work at the mo..
  19. Hee is my little bash from scratch. lol Does not work though lol.
  20. Im missing something here I thinks... Help
  21. Im really stumped by what you just said. O well...<script type="text/javascript">function sizeFrame() {var F = document.getElementById("myFrame"); if(F.contentDocument) { F.height = F.contentDocument.body.offsetHeight+30; } else { F.height = document.frames["myFrame"].document.body.offsetHeight+40; }pagetitle();}window.onload = sizeFrame;function pagetitle() { var frame = document.getElementById("myFrame"); frame.onload = function() { if else(frame.contentDocument) { document.title = frame.contentDocument.title; } }}</script></head>What I have modded is in the red...
  22. I get both alerts.But no outcome.Also, when I use this script. function sizeFrame() {var F = document.getElementById("myFrame");if(F.contentDocument) {F.height = F.contentDocument.body.offsetHeight+30;} else {F.height = document.frames["myFrame"].document.body.offsetHeight+40;}}window.onload = sizeFrame; The page hight works fine.When I then add the extra line, it does not work. function sizeFrame() {var F = document.getElementById("myFrame");if(F.contentDocument) {F.height = F.contentDocument.body.offsetHeight+30;} else {F.height = document.frames["myFrame"].document.body.offsetHeight+40;}pagetitle();}window.onload = sizeFrame;
  23. I know what I did wrong >.< what a numpty... sorry to bother you on that last question.
×
×
  • Create New...