Jump to content

rain13

Members
  • Posts

    346
  • Joined

  • Last visited

Everything posted by rain13

  1. Could you point out what exactly causes this centre part of m.facebook to fill whole mobile?I tried:@media handheld { body { font-family: Helvetica; font-size: 20px; background: #E0E0E0; padding: 5px; }} but it turned out that smartphones dont listen to handheld.
  2. HiIf you go to https://m.facebook.com/?_rdr with you phone (tell the phone to get desktop version of it but still go to m.facebook.com) then phone nicely zooms it in to fit it in screen. How do they do it? I tried "max-width: 600px;" for my body but thenI ended up having just about half screen on phone occupied and the other half was still just un occupied. How can I do like facebook did that if I set max-width: 600px; for body then my phone would zoom in and not show other half of screen empty?
  3. I got it solved by changing the font to Helvetica.
  4. I tried that normalize.css but the problem remained.
  5. IE 9. Does it depend on version?
  6. Hi How can I specify font attribte for body element with out causing it's font to be bold in IE? <!DOCTYPE html><html> <head> <style> body{ font: 13px Arial; } </style> </head> <body> <div>sdfsd</div> </body></html>As soon as I removefont: 13px Arial;text will be normal again in both browsers. Does anyoen know what to do?Here's also picture of my problem.
  7. Could you specify what needs to be done please? Since different people see things differently your opinion is important in order to get it look and work nice. The content is currently just test data.
  8. Hello.I am looking forward to hear your suggestins that I may improve my site. Please note that reply such as "it looks unfinished" is not going to help me as it doesnt tell what should be done.I have been working on site that I can use to share:1) articles about programming/administrating2) my own code3) my own photos.This site should also be secure enough to keep there information that shall not leak into internet URL: http://autoit.net.ee/demo/?f=4I would like to get reviewed:Security - there is category with id 7 that has topic with id 44 and it's first post has id is 103 - can you see what's written in this post?Basically here you can practise all kinds of attacks to do what you shouldn't be able to do and let me know the results. SQL injection hint: UserPassword = md5(password + Salt)Functionality - see what you can do and let me know if there's something that must be done before I link that site to friends Design - I know this isn't my strongest side - what should be changed in order to make it look professional? what must be changed in order to make it pleasing for users and to make them want to come back next time? Any other thoughts/ideas/suggestions?My own personal goals for future: (Just thought I would list these that you may adjust your feedback accordingly)1) Be able to post articles/code 2) Make it secure enough to keep there private content that I dont want to leak to public in ctegories that are only visible to admin/mod. (Content that I would like to keep on internet so that I could access it from evwey where isth everything that can browse web but that I dont want others to read.) 3) Be able post my photos (will probably have to make new html template for this section) 4) Guests/registred users will only be able to read the posts, only place I give them write access is comments section. This will be so until I've fixed all the problems with posting in topics that You've listed here-5) When site looks good enough and all major bugs are fixed and I've added gallery and full version of forums (i mean sub forums, group colors, post meta info, etc ...) I will create intaller to allow people to download itI have done everything (with help of people from this site, who have posted useful replies to my questions): DB design, php coding/logic, template engine, html/js/css. I've not used any php frameworks or code from other software written in php.
  9. Hello.I am developing my site in development environment and then when I reach to some good point I'll update live. I was wondering if there's any easy tool to patch live datapases? On live server I can only run PHP scripts but I can allow SQL connections from my development machine if needed. I am looking for something that would add missing columns with defaut values or optionally values from dev database dump, that would rename columns if needed and that would create new tables if neede, but not touch the existing data. The reason why I am asing this is that if I just export and then import dump then my articles on live also get overwritten with test data, but if I exclude articles from SQL dump then I would have to update this table manyally from phpmyadmin. Is there any quick and easy tool for that?
  10. Hellosuppose I have following table 'forums'forumId, parentId, Name1, 0, chat2, 1, pets3, 1, biking4, 2, catsMeaning that pets is subforum of chat and cats is sub forum of pets.To get In PHP I would call GetParent() until parentId gets 0. which would run mysql_query() 3 times to get path for cats.The path would be chat => pets => catsI was wondering if it is possible to write single SQL query to get such path?
  11. Thank you. Wasn't aware of defaultChecked
  12. I have radios because I ha yes/no options but I was wondering if there is any other way than yourrstI was curious if there is something that automatically would call change() with out requiring rst()? In my case some may be checked by default and some may be unchecked therefore it wouldn't be as simple as list.checked==true and it would require some playing with arrays so I was wondering if there is any easier, built in/native way to do that.
  13. I mean if I have something like this: <!DOCTYPE html><html lang="en"><head><meta charset="utf-8"/><title>title</title><style></style><script>window.onerror = function(m, u, l){alert('Javascript Error: '+m+'nURL: '+u+'nLine Number: '+l);return true;}</script><script>function change(el) {alert('changed: '+ el);}</script></head><body><form><label>R1<input type="radio" onchange="change(this)" name="rad1"/></label><label>R2<input type="radio" onchange="change(this)" name="rad1"/></label><label>R3<input type="radio" onchange="change(this)" name="rad2"/></label><label>R4<input type="radio" onchange="change(this)" name="rad2"/></label><input type="reset" id="rstbtn" value="Reset"/></form></body> </html> And now I want that to call change() for every radio that were altered by reset button. I mean if you select one radio then it should call it for this radio, if you've selected one radio from rad1 and other from rad2 then change should be called 2 times as reset button is clearing 2 radios.
  14. HelloI have form with radio buttons that that all have onChange event which gets called when I click on these radios. My problem is that when I use reset button onChange event does not get called. Is there way to make such reset button that also fires onChange event for all the radio buttons?
  15. Edit: found fix for that: $('#myIframe').get(0).contentWindow.location.replace('http://...');Source:http://stackoverflow.com/questions/786348/iframe-back-button-problem-dont-want-back-button-to-affect-iframe
  16. Because this replaces current url so that user can copy it. Removing itdidn't change anything.Googling shows that it's well known problem - navigating inside iframe causes back button to navigate in iframe, not in page that contains ifram. Any fix?
  17. Hi.I am trying to load preview of link on iframe, but it breaks back and forward buttons. function preview(elem){ alert( elem.href); $('#float').attr('src', elem.href.replace("view","view2")); $( "#float" ).show(); window.history.replaceState({}, "", elem.href);} this function is called when user mouse hovers link. elem is the link obj. and elem.href is url that link user hovered points to. So basically I am making preview that should show url that link points to in iframe. Problem is it breaks back buttons - instead of going back it shows previous content in ifreame (it shows last preview that iframe showed, not loading previous page outside iframe). How to fix that?
  18. What can I do about it? what http header do I have to change and to what?
  19. I also tried jquery that I got from stackoverflow but still not working. <!DOCTYPE html><html><head><script type='text/javascript' src='jquery.js'></script></head><body><script>var response = $.ajax({ type: "GET", url: "http://w3schools.invisionzone.com/index.php?showtopic=49551", async: false }).responseText;alert(response);</script> </body></html>
  20. HelloCould anyone tell me what's wrong with my code? Why does it say: "Error during AJAX call. Please try again"? <!DOCTYPE html><html><body><script>function getXMLObject() //XML OBJECT{ var xmlHttp = false; try { xmlHttp = new ActiveXObject("Msxml2.XMLHTTP") // For Old Microsoft Browsers } catch (e) { try { xmlHttp = new ActiveXObject("Microsoft.XMLHTTP") // For Microsoft IE 6.0+ } catch (e2) { xmlHttp = false // No Browser accepts the XMLHTTP Object then false } } if (!xmlHttp && typeof XMLHttpRequest != 'undefined') { xmlHttp = new XMLHttpRequest(); //For Mozilla, Opera Browsers } return xmlHttp; // Mandatory Statement returning the ajax object created}var xmlhttp = new getXMLObject(); //xmlhttp holds the ajax objectfunction ajaxFunction() { var getdate = new Date(); //Used to prevent caching during ajax call if(xmlhttp) { xmlhttp.open("GET","https://www.google.ee",true); //calling testing.php using POST method xmlhttp.onreadystatechange = handleServerResponse; xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xmlhttp.send(); }}function handleServerResponse() { if (xmlhttp.readyState == 4) { if(xmlhttp.status == 200) { document.getElementById("content").innerHTML=xmlhttp.responseText; //Update the HTML Form element } else { alert("Error during AJAX call. Please try again"); } }}ajaxFunction();</script> </body></html>
  21. For now I have fixed range, but it would be also useful to know how to use select there. For now I just generated insert statements within for loop, but still would like to know for future reference.
  22. Hello How can I insert for all users whose ID is in range from a to b? I do this?I want to do something like:INSERT INTO usergroups VALUES( 2 to 50,6,1);
×
×
  • Create New...