Jump to content

vinphetamin

Members
  • Content Count

    32
  • Joined

  • Last visited

Community Reputation

0 Neutral

About vinphetamin

  • Rank
    Newbie
  1. erm nope.Can you explain that one again please
  2. Try this:http://aspnet.4guysfromrolla.com/articles/032702-1.aspxor failing that Google; Access & .net
  3. Good stuff.Happy codingVin
  4. Like this: <%'------------------------------------'These Variables'------------------------------------selectWidth = 200 'width of select box in pixelsselectHeight = 200 'height of select box in pixelsselectAlpha = 80 'transparency of drop-down listselectBackgroundColor = "#00FF00" 'Background colour of drop down listselectHighlightColor = "#FF0000" 'background colour of option when mouse overselectTextHighlightColor = "#FFF" 'text colour of option when mouse over%><script language="javascript"> function showHide(){// if(document.getElementById('mySelectBox').
  5. Try and stop the page from being cached in the first place. Try putting this in the head of the page: <META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Expires" CONTENT="-1">
  6. To remove the scrollbar(s) just alter the code fromoverflow-y : auto;tooverflow-y : none;or just delete it altogether.At the moment it is set to auto so it should only show if the list disappears beyond the viewable area.Is that what you meant?
  7. Yeah sorry about that, we closed the DSN conn and tried to use it again before reopening/declaring what conn was.I've moved the clean-up to the end of the script, try this one out: <%'------------------------------------'These Variables'------------------------------------selectWidth = 200 'width of select box in pixelsselectHeight = 200 'height of select box in pixelsselectAlpha = 80 'transparency of drop-down listselectBackgroundColor = "#00FF00" 'Background colour of drop down listselectHighlightColor = "#FF0000" 'background colour of option when mouse overselectTextHig
  8. You'll have to bear in mind that you'll probably be creating an infintite loop so you'd probably need to pass a variable round to counter-act it: <%if request("myVar")="" then response.redirect "?myVar=1"%> Also if you're trying to refresh the pages content you may want to look at doing it with java script:location.reload()or <script language="javascript"><!--if (location.search.indexOf("myVar")==-1){ location="?myVar";}//--></script>
  9. Try this: <%'------------------------------------'These Variables'------------------------------------ selectWidth = 200 'width of select box in pixels selectHeight = 200 'height of select box in pixels selectAlpha = 80 'transparency of drop-down list selectBackgroundColor = "#00FF00" 'Background colour of drop down list selectHighlightColor = "#FF0000" 'background colour of option when mouse over selectTextHighlightColor = "#FFF" 'text colour of option when mouse over%><script language="javascript"> function showHide(){ if(document.getElementById('mySelectBox
  10. I think it may have been the values:<tr onclick="document.myForm.country.value='<%=thisCountry%>';There were no quotes around them before.If you copy the following and save it as an asp page it should work.Can you try this and see if it works at your end: <%Dim testArray(50) for i = 0 to 50 testArray(i)="Test country "&i next%><script language="javascript"> showVar=null; function showHide(){ if(document.getElementById('mySelectBox').style.visibility=="hidden"){ document.getElementById('mySelectBox').style.visibility='visible'; }else{ doc
  11. Can you paste your code and the error message in it's entirety so I can have a look.CheersVin
  12. Hi,yes, that was my mistake for changing the name of the text-box to 'country' following your code.Can you try this and see if this works: <script language="javascript"> showVar=null; function showHide(){ if(document.getElementById('mySelectBox').style.visibility=="hidden"){ document.getElementById('mySelectBox').style.visibility='visible'; }else{ document.getElementById('mySelectBox').style.visibility='hidden'; } } function hideSelect(){ //setTimeout("document.getElementById('mySelectBox').style.visibility='hidden'",100) } function move_up()
  13. <style> a{cursor:pointer;}</style><form id="myForm"> <input type="text" name="myField" /></form><a onclick="document.getElementById('myForm').myField.value='One';">One</a><br /><a onclick="document.getElementById('myForm').myField.value='Two';">Two</a><br /><a onclick="document.getElementById('myForm').myField.value='Three';">Three</a><br />
  14. vinphetamin

    detect SSL

    <%if request.servervariables("server_port_secure") then%>SSL<%else%>NOT SSL<%end if%>
  15. Can you paste the code from the aspx page. It may be possible to rewrite it.
×
×
  • Create New...