Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. justinbezanson@hotmail.com is my MSN/EmailEmail me first...I rarely go on MSN
  2. aspnetguy

    redirect

    a blank page??? make a page blank.html and dn't put any code in it. then response.redirect("blank.html");
  3. ok joomla must come with some default themes right???PM me one of them so I can see what elements they use, etc.Tell me the details of what you want it to look like (webapges you like are good too), colors, etc.I enjoy making thems/templates...it is probably my fav part of web design.I'd be happy to do it for you.
  4. have you tried declaring the ArrayList like this protected ArrayList TheItems = new ArrayList(); or ArrayList TheItems = new ArrayList(); ???declaring it as private may have an affect on it
  5. ok the best I can suggest is this...Lets say the gradient image you have is 500px in height. It is black on the top and fades to white at the bottom.Your cell is 750px in height so you need to give the illusion of continuity. I would do this <td style="background-image:url(gbg.jpg);background-color:#fff;background-repeat:repeat-x"> In doing this any extra height over 500px will be white so it looks like the image is continuing. it will tile horizontally to fill the width of the cell or if the image is the correct width already you can change repeat-x to no-repeat.That is the best solution I can suggest.
  6. aspnetguy

    Units in CSS

    em just increase or decrease based on the default or current size. Pixels are the size you set them no matter what.If you use pixels users cannot change the text size in their browsers (View->Text Size) but they can if you use em
  7. aspnetguy

    Time to Design

    I usually design the layout (XHTML,CSS) in 2-3 hours...if the content is cut and paste then it is a snap...my websites usually only have 2 page styles...a homepage and then the rest of hte pages follow a similar layout with minor tweaks as needed. With no programming involved I can wip a site together in 5-6 hours (10 or less pages).BTW this would not be graphics intensive...graphics take me a long time.
  8. aspnetguy

    Tutorial

    in .Net you can easily open a given file and read it contents and dump it into a page but a better approach is to compile a custom class that contains your content that you want to reuse. then with one line you can call the class and it sumps in hte content for you...sort of like SSI but it conseals all your source code.in the .aspx you could also insert an include just the same as in ASP
  9. in the CSS place a (.) before bgImg ---> .bgImgand sometimes td will not load background images if not inline code, if it still doesn't load try this<td style="background-image:url(gbg.jpg);background-repeat: repeat-y">
  10. aspnetguy

    publish my project

    on your local machine go to the c:\Inetpub\wwwroot\YourProjectFolderCopy YourProjectFolder to the webserver...in IIS make sure YourProjectFolder is created as an application.now you are all set. people in your work place can view your website at www.domainname.com/YourProjectFolder/firstPage.aspxor if they are on the same network//SERVERNAME/YourProjectFolder/firstPage.aspx
  11. aspnetguy

    Help

    VS 2003 uses ASP.Net 1.1 and 2005 uses ASP.NET 2.0 so if you are just starting out use 2005...no sense in learning some techniques twice when you upgrade ....I have to get off my butt and upgrade to 2.0
  12. aspnetguy

    Dumb Question

    please post your code...I can give you a better,quicker answer if I know exactly what you are doing.
  13. <form....><table>...<tr> <td> <table cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td style="text-align:left"><INPUT style="WIDTH: 10%" TYPE="submit" NAME="PREV" VALUE="Prev"> </td> <td style="text-align:center"><INPUT style="WIDTH: 10%" TYPE="submit" NAME="REFR" VALUE="Refresh"> </td> <td style="text-align:right"><INPUT style="WIDTH: 10%" TYPE="submit" NAME="NEXT" VALUE="Next"> </td> </tr> </table> </td></tr>...</table></form> how is that?As far as the <form> goes if you are going to use javascript to process the button click you do not need the <form>...although XHTML strict might require it...I can't remember.
  14. aspnetguy

    Ajax

    obviously they have made a change in the way the code is parsed since version 1.0.4.I am not familiar with AJAX enough to find the problem...I am stumped.
  15. try this, it works in IE and FF <html><head> <title>test</title><script type="text/javascript"> function insertText(textareaObj, tag) { //IE support if (document.selection) { textareaObj.focus(); var sel = document.selection.createRange(); var currentText = sel.text; sel.text = "["+tag+"]" + currentText + "[/"+tag+"]"; } //Mozilla/Firefox/Netscape 7+ support else if (textareaObj.selectionStart || textareaObj.selectionStart == '0') { var startPos = textareaObj.selectionStart; var endPos = textareaObj.selectionEnd; var currentText = textareaObj.value.substring(startPos,endPos); textareaObj.value = textareaObj.value.substring(0,startPos) + "["+tag+"]" + currentText + "[/"+tag+"]" + textareaObj.value.substring(endPos,textareaObj.value.length); } else textareaObj.value += tag; } </script></head><body> <textarea id="rte" rows="10" cols="45"></textarea><br/> <input type="button" value="Insert [b] tags" onclick="insertText(document.getElementById('rte'),'b')"/></body></html>
  16. if you have this HTML <table cellpadding="0" cellspacing="0" style="width:750px"><tr><td style="width:250px">...some content...</td><td class="bgImg" style="width:500px">...some more content...</td></tr></table> this CSS .bgImg{ background-image:url(yourimage.gif); background-repeat: repeat-y;} Providing yourimage.gif is at least 500px wide (the width of the cell) then this will tile vertically to fill the height of the cell.Note: I said tile not stretch...you cannot stretch a bg image but if you make it so it will tile nicely that is a good option.
  17. <div style="width:100%;text-align:center"><INPUT style="WIDTH: 10%; ALIGN: left" TYPE="submit" NAME="PREV" VALUE="Prev"><INPUT style="WIDTH: 45%; ALIGN: center" TYPE="submit" NAME="REFR" VALUE="Refresh"><INPUT style="WIDTH: 10%; ALIGN: RIGHT" TYPE="submit" NAME="NEXT" VALUE="Next"></div> ...<tr> <td> <table cellpadding="0" cellspacing="0" style="width:100%"> <tr> <td align="left"><INPUT style="WIDTH: 10%; ALIGN: left" TYPE="submit" NAME="PREV" VALUE="Prev"> </td> <td align="center"><INPUT style="WIDTH: 10%; ALIGN: left" TYPE="submit" NAME="REFR" VALUE="Refresh"> </td> <td align="right"><INPUT style="WIDTH: 10%; ALIGN: left" TYPE="submit" NAME="NEXT" VALUE="Next"> </td> </tr> </table> </td></tr>... try that...it should space them evenly apart.
  18. aspnetguy

    Dumb Question

    this is what I use for a login script (one page)login.php <?phpsession_start();//db.php includes the database variablesinclude('db.php');if($act == "login"){ $form_username = $_POST['username']; $form_password = $_POST['password']; $match = false; $db = mysql_connect($db_server,$db_usr,$db_passw); @mysql_select_db($db_name) or die("Unable to select database"); $sql = "sql statement to select all user records"; $data = mysql_query($sql); $rows = mysql_numrows($data); $i=0; while($i < $rows) { $db_username = mysql_result($data,$i,'username'); $db_password = mysql_result($data,$i,'password'); if($form_username == $db_username && $form_password == $db_password) { $match = true; } } if($match) { $_SESSION['username'] = $form_username; $_SESSION['loggedin'] = "yes"; //other session info you want to log header("Location: newPage.php"); } else $msg = "Invalid username or password";}?><html><head>...</head><body><form action="?act=login" method="post">...the form...</form><!--error messages--><?php echo $msg?> I also create a authenicate.php to include on at the top of all protected pages.authenticate.php <?phpsession_start();if($_SESSION['loggedin'] != "yes") header("Location: login.php");?> hope this helps
  19. aspnetguy

    XML Data Islands

    you could use a server side language to parse the XML
  20. aspnetguy

    Ajax

    It loaded fine in both IE and FF. There is only 1 record to load right? Neither browser gave any JavaScript errors and were identical.What version of FF are you using? I am using 1.0.4
  21. But the include file and all its code is a part of the main source code when the page finishes rendering. So yes the page will probably self destruct...lolTake a look at the browser source one the page has loaded
  22. aspnetguy

    xml generated by php

    is the php file you are creating in the same directory as the xml file or at least on the same server/domain???if you you could use this article.http://www.codehelp.co.uk/php/xmlparse1.phpif not this may helphttp://javascriptkit.com/dhtmltutors/ajaxt...axticker2.shtml
  23. why not do thismain page<html><head>...</head><body><div>Header</div><div><?php include('menu.html');?></div><div>some more code...</div></body></html> menu.html <ul><li><a href="somepage.html">some link</a></li><li><a href="somepage.html">some link</a></li><li><a href="somepage.html">some link</a></li><li><a href="somepage.html">some link</a></li><li><a href="somepage.html">some link</a></li></ul><!--or what ever--> The includes do not have ot contain all the html tags of a normal page becuase they are not they are just pieces of a page that you want ot reused easily.There is no need to put in an extra set of body tags.
  24. aspnetguy

    Combobox values

    good to here...thats what programmin gis about...finding creative solutions.
×
×
  • Create New...