Jump to content

pulpfiction

Members
  • Posts

    1,210
  • Joined

  • Last visited

Everything posted by pulpfiction

  1. Is there a way to close popup from alert() statement??something like Self-closing Alert Window.... Pop-up window which user do not need to close.
  2. Change this <%@ Language=JavaScript%> to <%@ LANGUAGE="VBSCRIPT" %>You code is VBScript and not JavaScript.... This <%@ language=..... %> is used to mention the language you will use later between <% ...CODE...... %>
  3. Here's the link http://www.somacon.com/p355.phpbut no explanation about the regex in there.... as of I know, White space in regular expressions is described as \s. The beginning of the string is matched by ^ and the end is matched by $.
  4. I missed reading that part about the initial warning....
  5. hey i didnt mean any offence to anybody here, was just trying to be funny....
  6. poor notjustbrowsing , just shows not to mess with the top 5 posters of this forums..... change your login name as justbrowsing and do that, you wouldnt invite so much trouble....
  7. Did you test the code without the Try..catch block?? cos i was in same situation and it worked without try.....
  8. a.menu { style for the menu here }This is a CSS class [classname: menu], so when you need that style in a particular <a> then you need to use that class <a class="classname"..... And other part is styling elementa { other links get styles from here }this is styling the tag itself, so when you use that tag anywhere in the page the style will apply.This might help a bit..http://www.tizag.com/cssT/class.php
  9. Its the same in VB just remove the ";". i kinda had the similar problem, remove the try...catch block and see if it works... postedFile.SaveAs(savePath + fname)
  10. The getTimezoneOffset() method returns the difference in minutes between local time and Greenwich Mean Time (GMT). So you can manipulate the time based on that and calculate the time difference....http://www.w3schools.com/jsref/jsref_getTimezoneOffset.asp
  11. Glad could help you.... Yeah its not in w3schools tuts, it has mostly kinda basic details....
  12. There is a small change in the Javascript part and commented the <div> in HTML..... <html><head> <title></title> <script> //clickable item ids var items = ["item0"]; // EDIT: Modify this to add/remove menu //function to open and close items function toggle() { //get item var item = this.parentNode; //note: this = anchor from attachEvents //get subitem var subitem = document.getElementById(item.id + "sub"); //toggle subitem if(subitem.style.display == "none") //closed //open it subitem.style.display = "block"; else //open //close it subitem.style.display = "none"; //prevent anchor from following href return false; } //function to attach events function attachEvents() { for(i=0;i<items.length;i++) { //get next item var item = document.getElementById(items[i]); //get item anchor var anchor = item.childNodes[0]; //attach onclick event anchor.onclick = toggle; } } //initial setup function init() { //hide all sub items for(i=0;i<items.length;i++) { //get next item var item = document.getElementById(items[i]); //get subitem var subitem = document.getElementById(item.id + "sub"); //hide subitem subitem.style.display = "none"; //indent subitem subitem.style.paddingLeft = "10px"; } } </script></head><body> <div id="menu"> <div id="item0"><a href="#">Item 0</a></div> <div id="item0sub"> <div id="item00"><a href="#">Item 0.0</a></div> <div id="item01"><a href="#">Item 0.1</a></div> <div id="item02"><a href="#">Item 0.2</a></div> </div> <!-- <div id="item1"><a href="#">Item 1</a></div> <div id="item1sub"> <div id="item10"><a href="#">Item 1.0</a></div> <div id="item11"><a href="#">Item 1.1</a></div> <div id="item12"><a href="#">Item 1.2</a></div> </div>--> </div> <script> init(); attachEvents(); </script></body></html>
  13. Try this.... dim arr(9)arr(0)=1arr(1)=2arr(2)=3arr(3)=4arr(4)=5arr(5)=6arr(6)=7arr(7)=8arr(8)=9Call RemoveElementFromArray(1,arr)' parameter ind is Index of the element in arrayPublic Function RemoveElementFromArray(ind,vals)dim ii = 0'ind = 9lTop = UBound(vals)lBottom = LBound(vals)response.write(ltop &", "& lbottom &", "& ind)If ind < lBottom Or ind > lTop-1 Then response.write("ERROR: Index out of range")Else for i = ind to lTop-1 vals(i) = vals(i+1) nextEnd Iffor i=0 to 8response.write("<br>")response.write(vals(i))nextend function
  14. Guess there is no function you can use to remove item from array...check this outhttp://www.dotnetindex.com/articles/3232_W...ove_An_Item.asphttp://www.freevbcode.com/ShowCode.asp?ID=585
  15. Try using "toFixed" to format decimal numbers...http://www.mredkj.com/javascript/nfbasic2.html
  16. Incase you need to convert from mssql to mysql, here are some free/commercial softwares..http://www.google.com/search?hl=en&q=m...mysql+converter
  17. Guess you can use CSS to handle this, overflow: scroll OR overflow:auto [scrollbars appear when content is longer]
  18. It should work similarly, for multiple dropdowns.... on selected item change of firstbind 2ndon selected item change of secondbind 3rdwhere is that you are having problem??
  19. Use this in the second page.... all the data entered by user in the previous page will be available, except for "password" fields..<form><input type="button" value="Back to Previous Page"onClick="java script: history.go(-1)"><form>
  20. Check you datatype of the "date_added" field, cos if its type is "date" then if you give string or number then it will give an error, also what database are you using? as jesh mentioned the date format might be different [eg: US format - mm/dd/yyyy]
  21. rather than giving min-height, try giving height: 252px; [equal to height of image]......#menu { position: absolute; left:auto; right:auto; top: 200px; margin-left: 500px; width: 170px; height: 252px; background-image: url(menuback.jpg); background-repeat: no-repeat; background-position: left top; padding-left: 30px;color: #F7931D;font-weight: bold;}
  22. It must be some "reserved keywords" problem.... in that case you need to use such words within square brackets []. try this.... guessing reserved word must be "date" so, your query should be like this....INSERT INTO emails (email,[date]) VALUES ('admin@enterf2.co.uk','13/03/2007')code:insertSQL = "INSERT INTO emails (email,[date]) VALUES ('" & emailadd & "','10')"
  23. Its because of the width of #content, reduce it and it should work fine.....#content { top: 266px; position: relative; left: 20px; color: #000000; width: 475px; padding-bottom: 29px; text-align: justify;}
  24. I dont think thats how IE works, but it tries to maintain the ratio, say image size is 100X50 [W X H] and you try to increase the height from 50 to 100 [double] then the width also doubles 100 becomes 200......
  25. found some discussion related to this....http://p2p.wrox.com/topic.asp?TOPIC_ID=25438one method mentioned in it is http://www.protware.com/ an html encryption method, not sure if it would work...
×
×
  • Create New...