Jump to content
xisto Community

TavoxPeru

Members
  • Content Count

    865
  • Joined

  • Last visited

Everything posted by TavoxPeru

  1. khalilov no problem, you are welcome. Now, i just upload a simple page to test how this work and i can say that the getAttribute() has some issues. The getAttribute("value") and .value Test Page includes a simple form with two text boxes and a submit button, also i set up a default value for the first input box while the second input box is empty. Here are the results: Firefox 3 both empty first input box value using getAttribute = value first input box value using value = second input box value using getAttribute = second input box value using value = First with value Second empty first input box value using getAttribute = value first input box value using value = value second input box value using getAttribute = second input box value using value = First empty Second with value first input box value using getAttribute = value first input box value using value = second input box value using getAttribute = second input box value using value = value First with default value Second with value first input box value using getAttribute = value first input box value using value = value second input box value using getAttribute = second input box value using value = value First with other value Second with value first input box value using getAttribute = value first input box value using value = value1 second input box value using getAttribute = second input box value using value = value IE6 both empty first input box value using getAttribute = first input box value using value = second input box value using getAttribute = second input box value using value = First with value Second empty first input box value using getAttribute = value first input box value using value = value second input box value using getAttribute = second input box value using value = First empty Second with value first input box value using getAttribute = first input box value using value = second input box value using getAttribute = value second input box value using value = value First with default value Second with value first input box value using getAttribute = value first input box value using value = value second input box value using getAttribute = value second input box value using value = value First with other value Second with value first input box value using getAttribute = value1 first input box value using value = value1 second input box value using getAttribute = value second input box value using value = value As you can see with Firefox the getAttribute() always returns the default value of the input box even if you change it to another value, while with Internet Explorer it doesn't happens and in my opinion the getAttribute() works as you can expect. BTW, I hope that someone can post the results of this test using another browsers like Internet Explorer 7, Safari or Opera, because i don't use any of them. Best regards,
  2. Sorry docduke but i'm not the one who supplied that link, the correct user who did it was ardent11. Best regards,
  3. I remember that some time ago i check that website and found some good tutorials, it's a shame but right now it doesn't work because the domain name expired last july and the owner doesn't renew it yet. Best regards,
  4. For me your problem is related with the margins and/or paddings of your divs, try to reset every one to zero and then start adding them as needed. To reset them simply add this to your css rules, for example for the body: body { background-color: #316b16; font: normal 12px arial; margin:0; padding:0;}Best regards,
  5. I agree with jovita, The Gimp is your best choice, now, there are some others programs if you don't need all the advanced features of this program. Best regards,
  6. That is a common mistake we made -including myself- when we start using DOM, to retrieve the values from your input boxes you must use the getAttribute method, so replace your code with this: var farm = document.getElementById('farm').getAttribute("value");var lumbermill = document.getElementById('lumbermill').getAttribute("value");var ironmine = document.getElementById('ironmine').getAttribute("value");var stonemine = document.getElementById('stonemine').getAttribute("value");var monument = document.getElementById('monument').getAttribute("value");var queryString = "?farm=" + farm + "&lumbermill=" + lumbermill + "&ironmine=" + ironmine + "&stonemine=" + stonemine + "&monument=" + monument;// alert("queryString = " + queryString); I suppose that after declaring the queryString variable you are calling the ajax request right??? Best regards,
  7. The following are some simple tips you can follow to add more visibility and boost your trafic and SE rankings to your site: Make sure that your site is complete and with unique and rich content, after that submit it to Google, Yahoo, MSN and ASK.com. Additionaly consider to submit it to high PR web and open directories, and to some social bookmarking site like del.icio.us. Create two sitemaps for your site, one in HTML format to show to your visitors and another one to submit to Google, Yahoo, MSN and ASK.com prefered in XML format or in sitemap format. Avoid duplicate content and don't create multiple pages, sub-domains, domains or sites with different domain names but the same content. Make your TITLE (60-80 characters) and ALT tags descriptive, simple and keyword rich. Your Meta tag description should be 160-180 characters, and your Keywords meta tag must be 15-20 words maximum, also make sure that they are relevant and contained in your content. Optimize pages with Headings (H1, H2, H3..) containing your primary keywords, use text instead of images in your content, links and important subjects. Optimize your link text and make sure it is descriptive and keyword rich, when possible try to make it match the header text on the linked page. Also never use hidden text and links. Validate your CSS and HTML and check for errors and broken links. Make sure you use SEO friendly URLs if your site contains dynamic pages because spiders have difficulty indexing dynamic pages. Use a Robots.txt file to manage and control search engine spiders that index your site. You can allow and disallow spiders and choose directories you want to be crawled and indexed. Avoid links to bad sites like phishing, hacker, crack, gambling, porn or scam sites and don't attempt to join in link schemes, excessive reciprocal or exchanging links. Do not buy or sell links. All of these will greatly affect your rankings. Best regards,
  8. Ok vujsa, next time this issue happens i will do it. Best regards,
  9. I just try the View New Posts and the My Last 10 posts options to verify if these problems are fixed and right now both of them are working fine. Best regards,
  10. TavoxPeru

    3d And Php

    I recently found a Javascript library called JavaScript VectorGraphics that may be can help you. This library provides graphics capabilities for JavaScript which you can use to draw circles, ellipses, lines, triangles, rectangles, etc. dynamically into a webpage. Usage of this Javascript library should be easy even if you don't have JavaScript experience. This library is available for download here and you can view a nice animation example here. Best regards,
  11. While searching my pc for some code that i need i found this two php functions that you can use, the first one for generating your activation code and the second for validate email addresses. generatePassword(): With this function you can set the length and strength of the generated password. <?phpfunction generatePassword($length=9, $strength=0) { $vowels = 'aeuy'; $consonants = 'bdghjmnpqrstvz'; if ($strength & 1) { $consonants .= 'BDGHJLMNPQRSTVWXZ'; } if ($strength & 2) { $vowels .= "AEUY"; } if ($strength & 4) { $consonants .= '23456789'; } if ($strength & 8) { $consonants .= '@#$%'; } $password = ''; $alt = time() % 2; for ($i = 0; $i < $length; $i++) { if ($alt == 1) { $password .= $consonants[(rand() % strlen($consonants))]; $alt = 0; } else { $password .= $vowels[(rand() % strlen($vowels))]; $alt = 1; } } return $password;}?> isValidEmail(): Simple case-insensitive regular expression for email validation that returns TRUE if valid and FALSE if not. <?phpfunction isValidEmail($email){ return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email);}?>Best regards,
  12. Well, only to say that after following the suggestions given by levimage the result is that ccleaner fix some other problems i have but don't fix this issue. Some other strange thing is that if i use View->Personalize this folder option with any folder it works fine. Best regards,
  13. Yeap, the problem is back and the only way is by using the My Assistant option as i said before in Post 3. I just discover that the My last 10 posts option located under the My Assistant does not work too. Best regards,
  14. TavoxPeru

    3d And Php

    I'm not sure about this but i guess that if those programas supports that functionality, Yes you can be able to save your files as VRML directly from them. Do you use 3ds max or director??? if yes, i suggest to check the export capabilities and save as option of each software. What is Maya???? The VRML scenes can be added to your PHP pages in the same way you include Html or Javascript code, for example you can do the following: <?php/*php codephp codephp code*/?><html><head><script type="text/javascript">function vrmlScene() {vrml= open("", "displayWindow","width=500,height=400,status=yes,toolbar=yes,menubar=yes");// open document for further outputvrml.document.open("x-world/x-vrml");vr= vrml.document;// create VRML-scenevr.writeln("#VRML V1.0 ascii");// start vrml code /*vrml code vrml code vrml code */// end vrml code // close the document - (not the window!)vrml.document.close();}</script></head><body><h1>VRML on the fly Example</h1><form><input type="button" value="VRML on-the-fly" onclick="vrmlScene()"></form></body></html>Also, instead of create the scene on the fly like in the example above, you can be able to open any VRML file directly as you open any other kind of file, but, as i said in my previous post, to be viewable this content in your browser you will need a plug-in. Visit the VRML Plugin and Browser Detector to verify if your browser has installed a VRML plug-in, if you don't have any VRML plug-in installed this page contains some links from where you can download it. Feelay, as you i'm also a newbie in this area. I just create a VRML Examples page, especially check the last option. Best regards,
  15. TavoxPeru

    3d And Php

    You are welcome Feelay, thanks.Now, one thing i forgot to mention in my previous post is that the only way a browser can be able to show your 3D content is by using a plug-in, which will handle that function. This happens with both, VRML and 3DMLW.BTW, glad to hear that i'm helpful.Best regards,
  16. My Results:Your Service provider : Telefonica del PeruLocation : Lima, PeruPlan Details : Not remember right nowUp speed : 192.52 kbpsDown speed :851. kbpsPromised : 1MbReceived :851. kbpsSatisfied : Not at all, it would be fastBest regards,
  17. TavoxPeru

    3d And Php

    As far as i know my answer is yes, you can mix 3D and PHP. So, i think that for your mix you can use a combination of PHP, HTML, Javascript and for your 3D scenes you can use a language called VRML (Vitual Reality Modelling Language) or 3DMLW (3D Markup Language for Web). VRML is a language that you can use for creating 3D scenes. In this scenes or worlds you can define shapes like spheres or polygons with colors for it's surface, apply some transparency, etc. This worlds are able to interact with the user or may response to events, also, you can add Java or Javascript code with the use of a special script node that VRML files have. VRML files are standard text files that are saved with the .wrl or .vrml extensions and as .wrz files when you compress it with gzip. 3DMLW is another language for creating 3D or 2D interactive content, it is similar to XHTML, supports style sheets and as VRML has scripting capabilities. 3DMLW files are also standard text files that are saved with .3dmlw extension, and one difference with VRML is that is based on the XML standard 1.0. More information: VRML (Vitual Reality Modelling Language) Website VRML - Wikipedia 3DMLW (3D Markup Language for Web) Website 3DMLW - Wikipedia Best regards,
  18. You have a lot of choices for the first one, the following code is a very simple function that i use: <?php /*** Generate an activation code* @param int $length is the length of the activation code to generate* @return string*/function generateCode($length = 10){ $password=""; $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890"; srand((double)microtime()*1000000); for ($i=0; $i<$length; $i++) { $password .= substr ($chars, rand() % strlen($chars), 1); } return $password; } ?> For the second one, you can use the is_valid_email() function to verify the format of any email, also, i strongly recommend you to review the following topic Preventing Spam When Using Php's Mail Function because there you can find a complete review of this and the original article where i got the code. <?php function is_valid_email($email) { return preg_match('#^[a-z0-9.!\#$%&\'*+-/=?^_`{|}~]+@([0-9.]+|([^\s]+\.+[a-z]{2,6}))$#si', $email);}?>Other topics that i think can be helpul: Safety Need Help With A PHP - MySQL Registration Script PHP Tutorial: Form Verification And Simple Validation Best regards,
  19. Of them i think that the second one is the best choice and may be in a near future i will register to its free hosting plan, but comparing them with Xisto i still consider that Xisto is the best choice ever. Best regards,
  20. Thanks Darasen for the links, there are very useful, the first one is a must because it covers all the fundamental database theory in a very simple way that everybody would undestand and follow, also, this site under it's sql links section contains a lot of other useful links. Another good one is The Library of Free Data Models, it helps me some time ago to develop a database for one of my clients. sparkx at the MySql.com website you can find all information needed to correctly install it, but honestly, if you will install it on a windows machine you even don't need to visit the site, because the installation procedure of it is extremely easy. Best regards,
  21. Two good hosts i know are: db4free project: This host offers MySql 5.1 and MySql 6.0 databases, all users are allowed to create only two databases per email address. FreeSQL.org: This host offers MySql and PostgreSql databases, users are allowed to create one database only. For more information related please check this topic Free Mysql Server Sites, Give me some links but take in consideration that both of them are recommended for development purposes not for production. Finally, I agree with yordan and sincerely i recommend you to try Xisto, it rocks. EDIT: Search for free database hosting on Google if you need more features.
  22. WeaponX: Please forgive me, I absolutely forgot your reply i will try it later. magiccode9: I try the Office 2003 auto repair feature and also the repair option from the help menu of all office's applications and in all cases them don't work. Best regards,
  23. You can do that with a crontab job, view the following topics for some information: Want To Update Every Hour How To Use Cron Jobs To Save Two Images? Yes, you can. You can do that with PHP and plain Javascript, aditionally you can also use Ajax. View the following topic How To Create An Online Timed Test With PHP? for some ideas about it, and if you decide to use it please let me know if you want the code. Best regards,
  24. The CSS filters (CSS hacks) is a page where you can find a lot of useful information in case you need to verify if a browser will apply some CSS rule(s) or hacks. In the CSS filters (CSS hacks) page you can find individual test pages for the following OS and browsers: Windows (IE, Mz, Op, NS). Mac OS X (iC IE Mz Ns Om Op Sf). Macintosh (IE Mz Ns Op) Other (Ko). Best regards,
  25. I completely agree with mastercomputers and what he said is correct, that is what happens when you view the source code of the page. If you use Firefox you can view all the source code including the loaded code with Ajax if you use Firebug for example. Best regards,
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.