Nati323
-
Posts
93 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Nati323
-
-
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?
-
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?
-
yes, i understand
-
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...
-
hey, thanks you very much, your solution works
-
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?
-
the example that i gave before ( http://www.w3schools.com/jsref/event_onunload.asp ) dosent work, its not show me the alert msg...
-
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...?
-
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
-
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
-
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...?
-
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?
-
10x
-
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 :|
-
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...
-
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...
-
ok i try it its now its not affected the second column, what about my other question? and how can i DISTINCT two columns?
-
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?
-
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 :|
-
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.
-
ok, i test it, its works. thanks
-
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...
-
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...
-
please delete. i fix the problem.
some problems with Bootstrap and div...
in HTML/XHTML
Posted
hey, i have some problems,
1) i have a BootStrap navbar collapse, the code is:
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:
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:
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?