Posts

javascript - change the css of file_field? -

I want to change css for file_field. Instead of showing the original browse button I want to use the Simple Upload button to upload the file. How can I change the file_field's CSS and set the second image on it? So this file will look like a button instead of upload control. View & Lt; Div class = "fileinputs" & gt; & Lt; Input type = "file" name = "upload" id = "upload" class = "file" onchange = "this.form.submit ();" / & Gt; & Lt; Div class = "fakefile" & gt; & Lt; Input class = "upload_btn" /> & Lt; / Div & gt; & Lt; / Div & gt; & Lt;% end% & gt; CSS div.fileinputs {status: relative; } Div.fakefile {Position: Absolute; Top: 0 pixels; Left: 0 pixels; Z-index: 1; } Input.file {status: relative; Text align: right; -Moofness: 0; Filter: Alpha (Opacity: 0); Opacity: 0; Z-index: 2; } Input.upload_btn {Background: Transparent UR...

How to extract one or several characters from a Chinese font? -

I want to use @ font-face to import Chinese fonts on my site. But as we all know, Chinese fonts are always big. Since I will not use more than ten Chinese characters once, I wonder how can I remove many letters from Chinese fonts? Tks ~ Expert Setting: Custom allocation li> Single characters

browser - is the autocomplete property, a standard html property? -

I understand that "autocomplete" is a standard asset or not ?! By the way: And can I use it in FF, IE, Opera ....? If so, which browsers and versions of those support? Is this browser a cross property? Regards. Sam It was part of webform 2 (html 4.01). I'm pretty sure everyone supports it Also listed in html 5 spec

html - Do divs expand vertically to fit their children divs? -

I have trouble developing my division vertically with my children My There is something like: & lt; Div class = 'headerwrapper' & gt; & Lt; Div class = 'header' & gt; & Lt; Img ..... height = 100 & gt; & Lt; / Div & gt; & Lt; / Div & gt; In the firebug, there is a height of 100 in the header divisor, the height of 0 in the header divider divisor. The image is visible in the diu below .. .. There is no definite height on the drawer's diwi. is confused thanks- jonathan See if you have a header divi set float. When a child element floats and its parents do not, then it gives the reason for falling to the root element of the "0". This is a very good description problem about halfway down the page.

php - Ajax form validation refuses to work -

I am attempting to validate a form using Ajax and it will not work for me, so before That I mess up completely from top to bottom I thought I would ask for some help before continuing, anyone who can help in advance :) & lt; - access.php & lt; --logIn.php I am sorry that I can not expand this problem much because I do not really know where I went wrong because I am relatively new to the concept of AJX, but I think that problem is $ .post function in access.php I think you are missing $ query = mysql_query () such as 20 in login.php Between 21 and and you can not use the header ("location: clientsTable.php"); After sending data P> Does this help?

c++ - Outer class containing inner class - instantiate the inner class as a member of the outer class -

Currently I am trying to compile the following code: terminallog.hh #ifndef TERMINALLOG_HH # defined TERMINALLOG_HH #include & lt; String & gt; # Include & lt; Sstream & gt; # Include & lt; Iostream & gt; Class terminology {public: terminology (); Virtual ~ terminology (); Class warning {public: warning (); Private: Child lines; }; Friend class terminology :: warning; Protected: Private: Warning Warning; }; terminallog.cc // stripped code Terminallog :: Terminallog () (this warning-> warning;} Terminology :: Warning :: Warning () {This-> lineended = true;} // hidden code OK, as you're probably estimating ARDA, its failure ;-) My compiler is saying: G ++ src / terminallog.cc inc / terminallog.hh -o test -Wall -Werror file contains src / terminallog.cc: 8: src / ../ Inc / terminallog.hh: 56: Error: Terminallog: Warning Terminology :: Warning Src /../ inc / terminallog.hh: 24: Error: Conflict with Previous Declaration Zero Terminal ::...

ruby on rails - Rails3 help with joins scope -

There is a simple order - item app no ​​carriage need help with scoops connected to my report. Item polymorphic ( related_to: item qualified,: polynomial => true ) with products, services and policies. The policy is related to the seller. The goal is how much the seller was selling, but still be able to use the scope for the commands given below. Scope in my order model scope: closed_tode, lambda {where ("closed date and stop_data> gt; and close_data gt; and closed_data Something like this - Guess in the order model? Radius: with_policies, joins (: items). And the last result is by the seller being able to group and get the amount sold. & lt;% V in the @ order.closed_today.php_policies Group ("itemable.endor_id")%> & Lt;% = v.somehow_get_to.vendor.name% & gt; Sales: & lt;% = v.somehow_get_to.collect.sum (and: value)%> The price is the item field that assumes how much it has been sold for that item. I would l...