html

How to disable google translate original text tooltips

I have used google translate as a language converter in my site but it displays annoying tool tips called 'Original text'. How do I disable this and any other better ideas/tools/apis to do this? Thanks. The code used is... <div id="google_translate_element"></div><script> function googleTranslateElementInit() { new google.translate.T...

Using jQuery how to get click coordinates on the target element

I have the following event handler for my html element jQuery("#seek-bar").click(function(e){ var x = e.pageX - e.target.offsetLeft; alert(x); }); I need to find the position of the mouse on the #seek-bar at the time of clicking. I would have thought the above code should work, but it gives incorrect result ...

Table border affecting cell size

Can anyone tell me why when I place border=1 on a table is fixes its layout? This is the problem: I wrote some JavaScript that makes me an org chart. If I place a border around the tables that make the chart, everything lines up perfectly. If I remove the borders, some of the lines vary wildly (and seemingly randomly) in width. You will...

displaying specific records of a user without using WHERE

i have a problem with my coding. when i put 'where' in my query, it does not show anything. but when i do not put 'where' it display all the records. all i want is that, it will display the records of the current user that logged in.. please help me with this. what will be the code for these? anyone? :( it will be a big help. thanks....

How to absolutely position dynamic .js script in container and deallocate its space for use by next div

for example lets say i have the html <div id="container"> <div id="js-widget"> <script src"xxxyyyzzz" type="text/javascript"></script> </div> <div id=something-else1"></div> <div id=something-else2"></div> </div> what i need is js-widget to float right and something-else1 and something-else2 to start at js-widget's original posit...

Set TextView text from html-formatted string resource in XML

I have some fixed strings inside my strings.xml, something like: <resources> <string name="somestring"> <B>Title</B><BR/> Content </string> </resources> and in my layout I've got a TextView which I'd like to fill with the html-formatted string. <TextView android:id="@+id/formattedtext" android:layout_width="fi...

Adding an HTML block of code to a string (concat) in Lua

I know that I can concatenate strings in Lua like so String = String .. 'more' But what if I want to add HTML and want to keep (obviously) the way it looks? For example, how do I overcome the luac: Perl to Lua:226: unfinished string near ''' error I get when I do this Html_string = Html_string .. " <tr> ...

displaying specific records of a uses

guys please check my codes in displaying record.. <?php include("db.php"); $username=$_POST['username']; $email=$_POST['email']; $query="SELECT * FROM members where username = '$username'"; $result=mysql_query($query); $num=mysql_numrows($result); mysql_close(); ?> <br /> <p></p> Welcome back! Your details below: <br /><br /> ...

Website landing page. Simplicity vs Comprehensive?

I was wondering, should a website landing page be simple or comprehensive? I'm sure there are benefits for both, I personally like comprehensive... But i noticed my page now resembles Google reader, in that the frame of the site loads and then starts loading all the pictures etc.... My question is, is it appropriate to have a landing p...

getElementsByTagName gives us the same result for IE and Firefox

We are using the getElementsByTagName function to find out domnodes present in the article. We found that IE and Firefox give different result for broken tag as below. e.g. <a href="http://www.yahoo.com"&gt;Bypass HTML tags</ a> &nbsp; Complte 2 Fails In IE : for above example we will get two nodes 'A' and '/'. In firefox for above...

Using font in Web ...

Can anyone tell me how to unify the font I use in all browsers in different operating systems ?? ...

Arrange in list ?

hi i have code function mywidgets(){ alert(id1); alert("ABC"+" "+url1); var ni = document.getElementById('Listsample'); var numi = document.getElementById('cr'); var newdiv = document.createElement('li'); newdiv.innerHTML = "<a href='#' onclick='add("+url1+");' id='cricket' name='cricket'>"+id1+"</a>"; ni.appendChild(...

html codes from external html-file in to textarea (any professional in active-x or javascript help me)

In the below code how can i make it load the file into a textarea where textarea path is parent.a.frame_name1.document.form_name1.textarea_name1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv=...

How to silently hide "Image not found" icon when src source image is not found

Do you know how to hide the classic “Image not found” icon from a rendered HTML page when an image file is not found? Is it feasible with JavaScript\jQuery\CSS? ...

Pass html variables to PHP using "ID" not "Name"

I have HTML code like below <input type = "textarea" id="sentence1"> Here is my sentence </textarea> <input type="hidden" name="sentence2" value="This is another sentence"> PHP: $_POST['sentence1'] //shows nothing $_POST['sentence2'] // works fine I want to get the value of sentence1 also But i have such a scattered code that for ...

List of relationship. HTML

I know nofollow tells search engines not to give credits to the link. And me means the link is a profile belonging to a user. What are other relationship (rel tag) that are used by search engines? Where can i get a list of rel and their meaning? ...

color IE fallback for rgba() does not work

Why the following fallback for IE color: red; does not work ? In IE7, the color is black rather than red. Live demo here HTML: <div> <span>Hello</span> </div> CSS: div { width: 200px; height: 100px; background-color: blue; text-align: center; } span { font-size: 2em; color: red; color: rgba(250, 250, ...

A canvas object in jQuery, is it possible?

I intend to make a browser game with jQuery, I would need a canvas object in which I can place many visual elements and animate them to some extend. Is this entirely possible with just jQuery? Some may point to HTML5 canvas but it's specification isn't complete so I'm not too fond of it. ...

how to put my webpage so that i can find my page in google search ?

How to upload my webpage so that i can find my page in Google search? ...

jQuery open link in new window with small dimensions (NOT TAB)

I need to open certain links in a new window (NOT TAB) with certain dimensions. This will open a link in new tab: $(document).ready(function() { $('a[rel|=external]').click(function(){ window.open(this.href); return false; }); }); What to change in order to get links opening in new windows.? EDIT: This is my ...