Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. Lol I like opera but it runs a bit wierd at work so I use FF at work which is most of the time that I am on the internet.
  2. Try thisok so you have 2 multiline ddl and 2 buttons on your page... private void Page_Load(object sender, EventArgs e){ if(!IsPostBack) { //setup your database objects here //setup sql query conn.Open(); dataReader = comm.ExecuteReader(); while(dataReader.Read()) { ddl1.Items.Add(new ListItem(dataReader["label"].ToString(),dataReader["value"].ToString())); } dataReader.Close(); conn.Close(); } private void AddButton_Click(........) { ddl2.Items.Add(ddl1.Items[ddl1.SelectedIndex]); ddl1.Items.Remove(ddl1.SelectedIndex); } private RemoveButton_Click(........) { ddl1.Items.Add(ddl2.Items[ddl2.SelectedIndex]); ddl2.Items.Remove(ddl2.SelectedIndex); }}
  3. first question. Do you have SSL installed? If the site is not secure you cannot process sensitive information like credit cards.
  4. where did you get this code? I would like to check out the documentation and hopefully they have a live demo.
  5. well let me dust off my telepathic powers and see if I can read your mind and guess what the code in those 2 files might be....how about posting the code.
  6. You cannot make those types of games in JS...well I guess you could but they would run so slow they would be unusable. Look at the 3D walk around sample...even that is s bit choppy and slow. Like I said before the browsers that we have now cannot handle the demands of intense games like warcraft. Maybe in the future if APIs are intorduced that let JS access the PC video card then maybe things will change but not for a while.
  7. I use FireFox mostly and have not seen this problem. However I have had a problem...when I have read all the topics in a forum and go tot he forum index it still says that there are unread topic sin the forum...mostly has to do with someone voting for a poll but IPB doesn't mark the topic as unread just flags the forum with unread topics...wierd
  8. what does this layout look like??? Can you post the code you already have.You are goign to have to provide a lot more detail than that.
  9. no IO stands for Input/Output sorry :)look at this http://www.tizag.com/phpT/filecreate.php
  10. aspnetguy

    Full Text Search

    I am doing some research on Full Text Search (FTS) but haven't been able to find an answer to this question.I am developing a Site Search Component for a fully dynamic CMS. What would the performace differences be if I used Full Text Indexing or just did direct search queries on the actual tables?Thanks
  11. yes you just create a file with the .html extension, basic IO
  12. what an awful color to try and read *blinded*
  13. nice I really need to get a MoBo with PCIe I have a GeForce MX 4000 128Mb...thing runs way too hot.
  14. I have 1280x1024, 1024x768, and 1024x768 at home and 1024x768 at work.
  15. In case anyone is interested I played with the tutorials from Mozilla and came up with the code below. You just need to change the img.src to your own image and it produces a game board that allows you to use WASD to move the image around the dimensions of the board.I really like canvas it makes this so much simpler...too bad IE doesn't support this. <html><head> <title>Canvas Test</title> <script type="text/javascript"> //preload image var img = new Image(); img.src="under-construction.gif"; var ctx; var unit = 10; var x = 0; var y = 0; var minx = 0; var miny = 0; var maxx; var maxy; function setup() { canvas = document.getElementById('canvas'); canvas.style.border = '1px solid #b8b8b8'; maxx = canvas.width - img.width; maxy = canvas.height - img.height; ctx = canvas.getContext('2d'); //overloads //+1 drawImage(imageObject,x,y) //+2 drawImage(imageObject,x,y,width,height) //+3 drawImage(imageObject,sx,sy,sWidth,sHeight,dx,dy,dWidth,dHeight) ctx.drawImage(img,x,y); } function keyPress(e) { switch(e.which) { case 97: //w - forward move("up"); break; case 119: //a - left move("left"); break; case 100: //s - down move("down"); break; case 115: //d - right move("right"); break; default: //anything else break; } } function move(dir) { switch(dir) { case "up": x = x - unit; if(x < minx) x = minx; break; case "left": y = y - unit; if(y < miny) y = miny; break; case "down": x = x + unit; if(x > maxx) x = maxx; break; case "right": y = y + unit; if(y > maxy) y = maxy; break; default: alert('other'); break; } ctx.clearRect(0,0,canvas.width,canvas.height); ctx.drawImage(img,x,y); } window.onload = setup; window.addEventListener("keypress", keyPress, false) </script></head><body> <canvas id="canvas" width="625" height="425"/></body></html>
  16. your radio buttons should share the same name (indicates a radio group)then you can do thisdocument.formName.radioGroupName[1].checked = true;this will work if the no radio button is second and yes is first.
  17. dhost doesn't seem to be accepting anymore free signups..I couldn't find it.
  18. aspnetguy

    Class'

    this should work <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html><head> <title>Test</title> <style> #grid{border:1px solid #000;font-family:arial} #grid td{padding:5px;border:1px solid #000;text-align:center} #grid td.rcell{border-bottom:0px} #grid td.ncell{border-right:0px;border-bottom:0px} #grid td.bcell{border-right:0px} #grid td.xcell{border:0px;padding:0px;} #grid td.answer{font-weight:bold;color:red} </style></head><body> <table id="grid" cellspacing="0" cellpadding="0" width="100"> <tr> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> </tr> <tr> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> </tr> <tr> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell answer">7</td> <td class="rcell answer">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> <td class="xcell"> <table cellspacing="0" cellpadding="0" width="100"> <tr> <td class="ncell">1</td> <td class="ncell">3</td> <td class="rcell">6</td> </tr> <tr> <td class="ncell answer">9</td> <td class="ncell">7</td> <td class="rcell">5</td> </tr> <tr> <td class="bcell">2</td> <td class="bcell">4</td> <td>8</td> </tr> </table> </td> </tr> </table> </body></html>
  19. it looks like the guy from FarCry with an AKA47:lol:
  20. I hope IE continues to slide...I had hopes they would do more for developers not only work on the most visible issues that regular users see.Over all IE7 is just going to be a nicer looking IE6
  21. Very cool although it was a bit slow for me...probably just my PC tho...have a very bad video card at work.Hey choco what is the canvas tag? I never heard of it.
  22. aspnetguy

    Forms

    you can set the action of a form with javascript and submit ti with javascript but you cannot process the submitted information with javascript you m\need a server side language for that.
  23. aspnetguy

    forms

    you will have to use cint() to convert he string to an int value for addition
  24. I would set a boolean variable based on the ddl selection and populate the correct array based on the boolean.I never liked using redim.
  25. post the ASP code you use to make the query and execute it. It is probably a simple syntax error.
×
×
  • Create New...