Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Johnmitchell

  1. that could've been helpful from the start :)i'll have a look at the code now i know what the problem is.edit: apart from you having some really old / wierd styling in there, it's all inline, each TD has it's own style="..." which is silly. you'd be much better off creating two classes (one for the dashed border and one for the solid border) and allocating that class to the relevant datacells.the fact that it doesn't work in firefox suggests that your using outdated styles.also you've assigned the style element text-align to a table wich is odd.i can't actually pinpoint the problem, if i had time then mayb e i could but i don't sorryp.s. i never knew ctrl+shift+a was validator shortcut either
  2. Thanks for that guys, helps alot. i'll get hold of some of the standards so that it will help you lot more.the name nextstep is supposed to be lowercase bold, which is a problem when linking in a menu.
  3. "If I am not wrong, IE7 doesn't allow putting <head> tag in <body> tag while FF and Opera allow it"why on earth would you put <head> tag in the <body> tag?
  4. i'm thinking about re-designing one of our websites. it's very plain and basic - would appreciate ideas and tips.http://www.nextstep-cds.org.ukthe thing thats the biiiitch is that we have quite strict standards to adhere to. it'd take me too long to type them all, and you too long to read so i wont bother :)thanks
  5. http://www.google.co.uk/search?q=painting+...cial&hs=xC2
  6. i agree with aspnetguy, it certainly took me back too far. it reminds me of the average user homemade websites in frontpage or similar. if it's targeted at a specific group of people then it may well work but for an average web surfer...possibly if you change the colour scheme, mainly the acid green.just my oppinion - other people will obviously think different
  7. nice site and nice idea, shame spurs are crap really gwan plymouth argyle.the way the different shades of pink work together looks nice n feminin, the picture previews are all the same size which looks nice, for some reason the contact us box is blue, kinda throws me off a bit. :mellow:on the contact us page you have <li style="margin:5px;"> on almost all of the li's - it would be better to put these in a class in the CSS. infact most of your styles semes to be inline now that i look at it. which is especially bad for the nav.you also have links that look like their trying to reach the folder above, using things like "href="./contact.php" - i could be wrong but i think it's two .s so "href="../contact.php" however if it's in your root folder it's probably easier to just use a forward slash indicating the root folder: "href="/contact.php"looking nice and girly though.P.S. - the girls are nice
  8. whats extension of your include file, it sounds like your trying to include .html file? try .asp
  9. Johnmitchell

    send mail

    you could load it into more than string variable and then concatenate the variables together, to avoid exceeding the memory limit.
  10. Johnmitchell

    newb error

    maybe i've been taught ASP in a funny way but this usually works for me:you have,<%response.write("<p style='color:#0000ff'>This text is styled with the style attribute!</p>")%>where i would use double " for the paragraphs style:<%response.write("<p style=""color:#0000ff"">This text is styled with the style attribute!</p>")%>what that basically does is goes out of ASP into html to write <p style=, then it comes out of html into asp then back into html to write color: #0000ff, out of html then back into html to finnish the statement off.i think the ASP is seeing the ' as a comment notation, thus why it's expecting a statement.edit: also what you could do is<p style="color:#0000ff"><%= This text is styled with the style attribute! %></p>but that tends to be more useful when your working with variables:<% dim StrSQLStrSQL = "This is the SQL String"%><p style="color: #0000ff"><%= StrSQL %></p><%= is the same as saying response.write
  11. i haven't read these posts because there are too many and at a glance it looks like a flame fest.all i'd say is, it really isn't much different / unique from anything else - if you can make it a brand new idea then great.p.s. if the first post you see is one that sais it's boring and uneventfull then you can count it as bitchy. if the next 5 posts say the same thing then maybe you should start taking on the criticism positively and thinking how you can make it better rather than fighting a lost battle.
  12. cool looking site, but you could do better than using an image to render the background, though it's no doubt small file size it could be improved using styles. that would give you a bit more experience using html / css aswell. another work around that would be better for download speeds is just making the background image 1px high and repeating it down. or if it needs to be the same height as the slanted lines to the side, you can make it the same height.apart from that it looks cool, so long as the blog isn't you typing it drectly into html?
  13. cool site that's helpfull to me too.i think what he means by special software is things like flash, swish and stuff.it all depends on the amount of effort your going to put into it and whether it's just going to fall on it's arse in a few weeks. i'd suggest trying to code it in HTML and CSS first is a good idea.
  14. 'alt' abreviation for alternate, as in alternet text. title is pretty self explanatory.although in firefox i'm sure alt brings up a tooltip :S might be wrong.
  15. i did hear somewhere that IE7 doesn't like certain colour modes of images. although i've never actually experienced it.to find the colour modes (RGB, CMYK, ETC.) the menu with file edit image, look in image>mode> there should be a list of different colour modes - Bitmap, Greyscale, Duotone, indexed color, RGB color, CMYK color, Lab color, monochrome. try setting it RGB, if not then one of the others. be wary of image optimisation and stuffz though
  16. here's a nice plainer version that will do the same thing, but easier. it's a little more plain but usefullhttp://www.alistapart.com/articles/horizdropdowns
  17. Sorry to bring up a closed topic, but if it's saved as a html file, wouldn't any tag with unrecognised attributes be counted as XML? if thats right then the reason it wasn't validating would be because the '?=' would throw the checker off - "it isn't XML but it isn't HTML - what the ###### is it?"oh and if your trying to parse PHP script in a non-PHP file surely it won't know to read it as PHP, therefor your scripts won't work.
  18. yeah, i didn't really word it that well i guess.the whole point of the search is to limit the results as much as possible, so as to narrow down the amount of organisations that our clients find, depending on what they need.as it was, our database lady hadn't told me that during testing i was to point to another database. Doh!
  19. no i understand you. but the only reason that the first statement doesn't have the same bunch of conditions is the fact that the 'orgSearch' text box was empty when i ran the ASP as was the 'location' text box.this is the actuall sql inside the page strSQL = "select * from Organisation " & _"where (orgname like '%" & orgSearch & "%' or AlternativeNames like '%" & orgSearch & "%') " & _"and keywords like '%" & keywords & "%' " & _"and (addtown like '%" & location & "%' or addcounty like '%" & location & "%' or addr_postcode like '%" & location & "%') " and this is just what happens (what it spits out to the page) when i tell it to write out the strSQL variable: i have three text box's labled orgSearch location and keywords. i have left orgSearch empty and i have left location empty, but i have filled keywords with mental. that is why the two differ. sorry it was my fault i didn't explain that the first sql string was just a quote from my web page after the query was ran. it would return it as 'orgname like '%%' ' if i left the text box empty.
  20. exactly my point, and it has returned 7 results, but when i run it via filling in my form, nothing is displayed where it should be. hence me thinking its my ASP that's wrong...
  21. but like i said, when i run through the Database it returns several resultsall im doing in the second statement is, instead of definately defining that the 'and keywords like' result to be %mental%, it is what ever is in the keywords text field of the form. so if they searched for mental the sql statement would say 'and keywords like %mental%'if they searched for psychotic then it would say 'and keywords like %psychotic%'the first quote was just what i had searched for in the text box's it was just spaffing it out with the sql aswell.
  22. first off, i am almost 100% positive that the error is going to be something small, likely a wrong case char or something of that nature, but i can't spot it!it's just a small search form which is for now, only searching one table in the database. this SQL statement, when run through the database returns 7 results, but when i use my form nothing is being written out.for security reasons i have edited the sql connect string. oh and i have just noticed that this has been word wrapped.<div><form action="index.asp" method="post"><table id="searcharea"> <tr> <td><strong>Oranisation: </strong><Br /><input type="text" name="orgSearch" /></td><td> </td> </tr> <tr> <td style="text-align: right;"><strong>Area: </strong></td><td><input type="text" name="Location" ></td><td><input type="submit" Value="Search" /></td> </tr> <tr> <td><strong>Keywords: </strong><br /><input type="text" name="Keywords" /></td><td> </td> </tr></table><%'pull in the search from the formorgSearch = request.Form ("orgSearch")location = Request.Form ("Location")keywords = Request.Form ("Keywords")'write to the page what you searched for:response.write ("<strong>You searched for: </strong> Organisation; " & orgSearch & ". Area; " & Location & ". Keywords; " & Keywords)'write to the page the SQL statement: response.write("<p><strong>SQL Statement:</strong><br />" & strSQL & "</p>")'select all from the table 'organisation' where orgname is like {wildcard} and whatever was in the textbox 'orgSearch' or alternative names like it, and keywords that are like what was filled in the keywords text box etcstrSQL = "select * from Organisation " & _"where (orgname like '%" & orgSearch & "%' or AlternativeNames like '%" & orgSearch & "%') " & _"and keywords like '%" & keywords & "%' " & _"and (addtown like '%" & location & "%' or addcounty like '%" & location & "%' or addr_postcode like '%" & location & "%') " 'order results by orgname in ascending order. strSQL = strSQL & "ORDER BY orgName ASC" 'declare the SQL Connection. set objcmd = server.createobject("adodb.command") objcmd.activeconnection = "Provider=gsefrv;Database=sfrdv;Server=fsvd;trusted_connection=yes" objcmd.commandtext = strSQL response.write strSQL set objRS = objcmd.execute 'write out the address of each company: If not objRS.EOF Then objRS.moveFirst while not objRS.eof response.write("<address>") response.write("Name = " & objRS("orgName") & "<br />") ' Dwelling if not isNull(objRS("AddDwelling")) and trim(objRS("AddDwelling")) <> "" then response.write("Dwelling = " & objRS("AddDwelling") & "<br />") end if ' Street if not isNull(objRS("AddStreet")) and trim(objRS("AddStreet")) <> "" then response.write("Street = " & objRS("AddStreet") & "<br />") end if ' Locality if not isNull(objRS("AddLocality")) and trim(objRS("AddLocality")) <> "" then response.write("Locality = " & objRS("AddLocality") & "<br />") end if ' Town if not isNull(objRS("AddTown")) and trim(objRS("AddTown")) <> "" then response.write("Town = " & objRS("AddTown") & "<br />") end if ' County if not isNull(objRS("AddCounty")) and trim(objRS("AddCounty")) <> "" then response.write("County = " & objRS("AddCounty") & "<br />") end if ' Postcode if not isNull(objRS("Addr_Postcode")) and trim(objRS("Addr_Postcode")) <> "" then response.write("Postcode = " & objRS("Addr_Postcode") & "<br />") end if ' Phone number if not isNull(objRS("PhoneNo")) and trim(objRS("PhoneNo")) <> "" then response.write("Telephone = " & objRS("PhoneNo") & "<br />") end if ' Fax number if not isNull(objRS("FaxNo")) and trim(objRS("FaxNo")) <> "" then response.write("Fax = " & objRS("FaxNo") & "<br />") end if ' Web address (includes checking for "http://" at the start of the address if not isNull(objRS("WebAddress")) and trim(objRS("WebAddress")) <> "" then if lcase(left(objRS("WebAddress"),7)) = "http://" then response.write("<a href=""" & objRS("WebAddress") & """ target=""_blank"">" & objRS("WebAddress") & "</a><br />") else response.write("<a href=""http://" & objRS("WebAddress") & """ target=""_blank"">http://" & objRS("WebAddress") & "</a><br />") end if end if response.write("</address>") response.write("<br/>-------------------------------------------<br/>") objRS.MoveNext wend End if objRS.Close set objRS = nothing%></form></div> Thank you if you can help!
  23. i'm trying to say that if the text feild has nothing in it then it won't send, so it is a mandatory feild. but i can't get it to display the message i want and it's doing my nut! <script type="text/javascript"> function testcontact() { var complete=true; var emailaddress=document.theform.email.value; if ((emailaddress == "")) || ((emailaddress == null)) { window.alert('This is an ALERT ALERT ALERT!!!!'); complete=false; } return complete; </script> thats the extract of code that isn't doing anything any ideas / tips for tidying it up wouldn't go a miss either! :)cheers if you can help
  24. hiya, i think %20 in the URL is the equivilant of a space.
  25. ***************EDIT***************i've sorted this problem now i was missing the <% response.ContentType="text/xml" %> at the top of the asp!***************/EDIT**************what i've got kind of works, but not the way i want it.i have dim'd variables and given the variables content (which eventually i'll pull from a database but for now is static data)i've then tried to write it into xml, in the same page, i really don't want to start messing about with FileSystemObject, because i'm not sure about using that, and the project is on a bit of a tight timescale.heres the code <%dim job, jobdescription, training, notes, hours, wages, vacancynumberjobdescription = "advanced apprenticeship - trainee chef"training = "NVQ3 Professional Cookery"notes = "Opportunity to work towards an Advance Apprenticeship in Professional Cookery. You must have a passion for cooking, acheived an NVQ2 and be keen to learn more. You will need your own transport due to the rural location."hours = "40 hours per week"wages = "National Minimum Wage"vacancynumber = "20673"%><job> <jobdetails> <jobdescription> <%= jobdescription %> </jobdescription> <training> <%= training %> </training> <notes> <%= notes %> </notes> <hours> <%= hours %> </hours> <wages> <%= wages %> </wages> <vacancynumber> <%= vacancynumber %> </vacancynumber> </jobdetails></job> the result in a web browser is: edit: what i intend to do after i've written the xml is import it into flash, to kind of have a dynamic news reader which displays on a plasma screen. i can import the file i need so i just need to get it writing the xml really :)cheers if you can help!
  • Create New...