Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Nati323

  1. hey, i have some problems, 1) i have a BootStrap navbar collapse, the code is: <nav class="navbar navbar-inverse"> <div class="container-fluid"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse" id="myNavbar"> <ul class="nav navbar-nav"> <li style="display: {DISCONNECT};"><a href="#"><span class="glyphicon glyphicon-log-in"></span> {REGISTER} </a></li> <li style="display: {DISCONNECT};"><a href="#"><span class="glyphicon glyphicon-user"></span> {LOGIN} </a></li> <li style="display: {CONNECT};"><a href="#"><span class="glyphicon glyphicon-log-out"></span> {LOG_OUT} </a></li> <li style="display: {CONNECT};"><a href="#"><span class="glyphicon glyphicon-shopping-cart"></span> {MY_CART} </a></li> <li style="display: {CONNECT};"><a href="#"><span class="glyphicon glyphicon-envelope"></span> {MY_INVITES} </a></li> <li style="display: {ADMIN};"><a href="admin/"><span class="glyphicon glyphicon-cog"></span> {CONTROL_PANEL} </a></li> </ul> <ul class="nav navbar-nav navbar-right"> <li id="search" style="display: none;"><form class="form-inline" action="search.php" method="POST" style="padding-top: 3%;"> <input class="form-control" type="text" name="search" placeholder="{SEARCH_HOLDER}" size="15" /> <button type="submit" class="btn btn-warning">{SEARCH_BUTTON} <span class="glyphicon glyphicon-search"></span></button></form></li> <li><a href="#" onclick="$('#search').fadeToggle('slow');"><span class="glyphicon glyphicon-search"></span> {SEARCH} </a></li> <li><a href="#"><span class="glyphicon glyphicon-info-sign"></span> {ABOUT} </a></li> <li><a href="#"><span class="glyphicon glyphicon-phone-alt"></span> {CONNECT_US} </a></li> <li class="active"><a href="index.php"><span class="glyphicon glyphicon-home"></span> {HOME} </a></li> </ul> </div> </div></nav> now i try to see how its look like in mobile, so i enter via Chrome Mobile Mode, and the result is: the navbar break into two lines, how can i fix that? 2) problem two, i did in the navbar search button when you press on it its open a search input, picture: as you can see, here its also breaking into two lines, Although that there is Enough space in the first line for the search input and button. 3) prob 3, i have a tab div, the code: <div class="container" style="width: 45%;float: right;"><ul class="nav nav-tabs navbar-right"><li><a data-toggle="tab" href="#sub_cats_{CID}">{SUB_CATEGORIES}</a></li><li class="active"><a data-toggle="tab" href="#category_{CID}">{CATEGORY}</a></li></ul><div class="clearfix"></div><div class="tab-content" style="height: 100%;"><div id="category_{CID}" class="tab-pane fade in active category" style="background-image: url('{CATEGORY_IMAGE}');"> <h1> {CATEGORY_NAME} </h1></div> <div id="sub_cats_{CID}" class="tab-pane fade"> <ul class="sub_categories"> {SUB_CATEGORY_LIST} </ul> </div> </div></div> as you can see in this picture: where the arrows point, there is some space, the tab dosent start at the right corner, how can i fix it? and there is also some underline that continue behind the content div... , what to do? 4) i have a list in the the tab above, Code: <ul class="sub_categories"> <li><a href="products.php?act=scat&id=7">ONE</a></li><li><a href="products.php?act=scat&id=8">TWO</a></li><li><a href="products.php?act=scat&id=12">THREE</a></li><li><a href="products.php?act=scat&id=13">FOUR</a></li> </ul> and its dosent have a marker, although that i define to her list-style-type: disc, in the class sub_categories, i think that the bootstrap remove her, what to do? 5) que, when i set in css to image wiidth and height in % , the meaning of that is (for example) 25% from the image size? or the parent element size?
  2. thats want i want to do, and as you can see here: http://vidspot.net/0hig1wqyahp6 when you press on the "Continue to Video" button, its what happen, how they do that?
  3. and why is that? more, if for example i want to open a new tab, but stay on the first tab? how can i do this?
  4. yes, but as you can see they wrote in the ref that it support in all broswers, so its wird :| anyway, can you answer mi first que? i want to open popup, but that he will be in the background, i mean that the window will open, but you dont see him because he will be behind the opener (main) window, i see it in some site but i dont know how to do this...
  5. hey, thanks you very much, your solution works
  6. hey all, i have a problem with the remove() method, i will explain the all thing that i want to do... i have the next HTML code: Choose Category: <select class="form-control" name="cid" id="cid" onchange="showSubCat(this.options[this.selectedIndex].value);"> <option value="4">Category one</option> <option value="8">Category two</option></select>Sub Category: <select class="form-control" name="sid" id="sid"></select> now, i want when user select Category (First Select Element) I will update the second select (Sub Category) by an array, i have this array: var scats = [];scats[4] = [];scats[4][0] = ['one', 7];scats[4][1] = ['two', 8];scats[4][2] = ['three', 12];scats[4][3] = ['four 2', 13];scats[8] = [];scats[8][0] = ['one', 11]; and when user select Main Category, the next function run: function showSubCat (cId) { var option, sCatSelect = document.getElementById('sid'); var i, len = sCatSelect.options.length; for (i = 0; i < len; i++) { sCatSelect.options.remove(i); } len = scats[cId].length; for (i = 0; i < len; i++) { option = document.createElement("option"); option.text = scats[cId][i][0]; option.value = scats[cId][i][1]; sCatSelect.add(option , i); }} so, the data is update good, but when i choose first time the first option (in the first select element), and after that the second option, its not remove the all options, always stay 2 from the first choose, what is my problem?
  7. the example that i gave before ( http://www.w3schools.com/jsref/event_onunload.asp ) dosent work, its not show me the alert msg...
  8. also, the event onunload ( http://www.w3schools.com/jsref/event_onunload.asp ) dosent work for me when i close the window, why is that, in the ref they wrote that this event support in all brow's, i'm use chrome by the way...?
  9. no, i dont mean close, i want that the window steel be open, but will be behind the main window. i try focus on the first window but its dosent work
  10. ok, so how can i get the result that the new window will disappear, and the first window will be shown again? in disappear i dont mean minimize
  11. ohh, hhh, so why the blur() method not working in the first code? from what i understand the methos suppose to disapear the new window, but its dosent work...?
  12. hey, i read the ref about blur() method, but its not work for me, you can see in the example here: http://www.w3schools.com/jsref/tryit.asp?filename=tryjsref_win_blur the code that given there need to blur the new window, but the blur() methos dosent work, but if i do something like that: <button onclick="myFunction()">Try it</button><button onclick="a()">Try it</button><script>var myWindow;function myFunction() { myWindow = window.open("", "", "width=200, height=100");}function a () { myWindow.blur();}</script> this work, when i press the second button (after i open the window) the new window desappear, what is the problem?
  13. hey, i hope i'm in the right forum, my que is how can i change the default colors of bootstrap classes, you say in the tutorial that we learn this in later chapter, but i can't find this :|
  14. hey, i have this query : INSERT INTO recepts (for_who, dat, items, checks, cash, mam, sum_before, sum_after, recept_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?,(recepts.recept_id + 1)) and i execute her, but the column recept_id dosent updated to +1, its always have value 1. i have an update query with the same idea (column +1) and its work fine, i dont know why this query dosent work.. help please the recept_id is not the id column EDIT: I fix it with "INSET INTO SELECT", I think its not possible to do what i want in the first query , because the db dosent know which column to select from the all records...
  15. amm, about 2 queris , this not what i want, i dont want list of distinct years alone and list of distinct months alone, i want a combination like you say in the start of your msg, how can i do that? because from what i saw its not possible to distinct two columns in one query...
  16. ok i try it its now its not affected the second column, what about my other question? and how can i DISTINCT two columns?
  17. hey, i hope i'm in the right place , i dont know where to put this topic. so my que is, I want to create web page for print, i search in google for this, and i found some tutorials that explain about css print file, that make your site shown (?) for print, i read about , this is not my que, i want to create a new page, my que is how much width the page should be for print on A4 pages? i search in google for A4 pages width and i found, but my que is because in any computer the resultion is diffrent , so if set the web page width to 800px for example , and in computer with small resultion its look more width that one with high resultion, the print page will still be the same? EDIT: i found now this http://davidwalsh.name/optimizing-structure-print-css on google, he says that the page width need to be 600px, i think its to small? am i right?
  18. ok a few que's, when i use DISTINCT, like this for example: SELECT DISTINCT COL1, COL2 the COL2 will be DISTINCT to? next que i wondering how i do the next one, i have a table with YEAR col and MONTH col look like this: YEAR - MONTH------------ 2015 | 3 2014 | 3 now, if i do DISTINC to the MONTH column i get only one year, but i want both and if i do DISTINC to the YEAR col so i get only one month from every year how can i do that i get from every year distincs months? i never understand GROUP BY :|
  19. sorry on the topic, i dont know how to explain my self . lets assume that i have table like this: ID MONTH------------------------------- 1 | 1 2 | 1 3 | 2 now , i want to select the all rows BUT only one from every MONTH, i mean the result should be: ID MONTH------------------------------- 1 | 1 3 | 2 the row with id 2 , dosent get in the result because the MONTH column of ID 2 equal to MONTH in ID 1. how can i do this? if you dont understand me please say and i will try to explain my self better.
  20. sorry i dont understand, first why you use AS? second, for example i want to insert to my table to column 'a' the value 3, and to column 'b' the value of TABLE_2.SOME_COL , so i do like this ? : INSERT INTO tbname_1 b, aSELECT SOME_COL, 3 FROM TB_2 if you understand what i mean, i want to insert some values that they are not from the selected table...
  21. yes, i read this , i know how to do a normal insert into select statement, what i dont know is how i combine this with other values that i want to insert, what i mean that only one column need to inserted from the other table, the rest column get values from the php script. there is no example for this in the tutorial...
  22. please delete. i fix the problem.
  • Create New...