html

Setting input control focus without javascript

Is there a way to set the focus in a specific HTML input (a textarea control, actually), without using Javascript? ...

jquery, ajax and getting a complete html structure back.

I'm new to jquery and to some extent javascript programming. I've successfully started to use jquery for my ajax calls however I'm stumped and I'm sure this is a newbie question but here goes. I'm trying to return in an ajax call a complete html structure, to the point a table structure. However what keeps happening is that jquery eit...

Word wrap and carriage returns not working inside textarea

I have a Pictures section on my website and allow users to enter comments on the pictures. Each Picture page has a form with a textarea for entering their comment. Strangely, word-wrap doesn't work in the text area and hitting Enter results in the form being posted rather than a carriage return. Additionally, there's no scroll bar whe...

How can I use a multiline value for an HTML tag attribute? (i.e. how do I escape newline?)

How do I include a newline in an HTML tag attribute? For example: <a href="somepage.html" onclick="javascript: foo('This is a multiline string. This is the part after the newline.')">some link</a> Edit: Sorry, bad example, what if the tag happened to not be in javascript, say: <sometag someattr="This is a multiline string. This is...

Forms and CSS Questions

1) Is there a way to completely hide the IE scrollbar on textareas? (I'm primarily concerned with IE8) overflow: hidden or auto don't seem to work. 2) Is there a way to stop safari and chrome from "highlighting" focused form elements? 3) Is there a way to disable resizing of textareas? ...

WM5 HTML control problem with edit field navigation

My Windows Mobile app uses an HTML control in one of its views, and whenever that view displays a page with an edit field in it, once the keyboard focus reaches that control, it gets stuck. If there are links above or below the control, the up and down navigational buttons don't take you to them. Instead, they act like the left and right...

Getting content of a script file using Javascript

Hi guys I have the following script element in my web page: <script src="default.js" type="text/javascript"></script> Using JavaScript, I want to be able to retrieve the content of the script file. I know I could use a ajax request to get the data but then I am getting something from the server that I already have locally. So what ...

Absolute positioning elements within scrollable div

I'm trying to position divs within a parent div of fixed width and height with overflow: auto so that it'll scroll when the divs within go outside of the div. I.e. I have a div that is 400px wide and if I set a child div's position to left: 500px i'd like it to be off screen with a horizontal scrollbar on the div. I've created two exam...

dynamic building of a list

Hi, I was wonder how I could get input from a user, then display that input underneath on a new line along with any previous input. I was wondering if this could be done in either HTML or Javascript ...

Div type="hidden" + Not hided

Hi, In my code. I m having Div tag with the type = "hidden". I just dont want to show the div. Only if needed i will make it to show By JQuery Show() . But still my div is not hidden from the view. Please suggest me. Edit Now i make the DIv as hidden by using <div style="visibility:hidden" >XYZ</div> If i need to s...

How can I stop an onclick event from firing for parent element when child is clicked?

Hi, I'm having two issues with onclick events, they are somewhat similar so I'll ask them both here. First: I have a checkbox in a div. The input has an onchange function and the div has an onclick function. <div onclick="doSomething()"> <input type="checkbox" onchange="doSomethingElse()" /> </div> The problem is when I check/...

Max parallel http connections in a browser?

Hi, I am creating some suspended connections to an http server (comet, reverse ajax, etc). It works ok, but I see the browser only allows two suspended connections to a given domain simultaneously. So if a user is looking at my web app in Tab1 of their browser, then also tries loading it in Tab2, they've used up the two allowed connecti...

How to create a DIV style switcher in JavaScript?

I want to make a CSS style switcher in JavaScript, same as digg.com does here: http://digg.com/add-digg I am having a div, in which I want to change the style of the div box on the basis of theme selection. Please give me any link or code, how I can do this. I don't want to use Jquery, I want to develop this cod ein pure javascript. T...

Problem with HTML DIV style-padding

<asp:UpdatePanel runat="server"> <ContentTemplate> <div style="padding: 0px 45px 0px 45px"> <asp:FormView ID="fvAccounts" runat="server" DataKeyNames="AccountId" DataSourceID="edsAccounts" EnableModelValidation="True" Width="100%"> <EditItemTemplate> <%-- continuing --%> I want the FormView to be 45px (hippos :P) away from th...

<mx:HTML/> link trouble

I create a AD area as a in my Fx app. http://www.triafx.com/ReklamKampanyasi/reklam.html But link not work when it was clicked. What is my wrong? ...

How to get select radiobutton value using its name in jQuery?

I am having 4 radiobuttons in my web page like below: <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="grey" />Grey</label> <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="pink" />Pink</label> <label for="theme-grey"><input type="radio" id="theme-grey" name="theme" value="gr...

embedded flash working in Chrome not in FireFox

I am setting up a music blog that uses a embedded flash player on Blogger. The flash player works fine in Chrome but not in Firefox any suggestions? Am I formatting my embed and object tags improperly? http://mostlydirtyalwaysfresh.blogspot.com/ ...

mailto special characters

Is there a way to make the email client ( Outlook ) accept special characters coming from the mailto link in html? I'm trying to have a mailto link with german characters in the body, but in Outlook I get only strange characters. Thanks ...

Using search from other site on yours

I want to put a search form on my site, but when you hit search, it will search another site. For example, I have a form on mydomain.com/search that will search domain.com/search?term="keyword" Once I hit the search button, I want it to open a new window appending the keyword to the URL. Can this done via jQuery/PHP? ...

How to get rid of an unwanted space in a tab menu?

I am using asp.net mvc and I am working on a tab menu which is displaying an unwanted space between each tab. This only happens when I have each image tag on its own line as opposed to having it all in one. The top images are on their own line which is what is causing the unwanted space: <img src="/Content/Images/Reports_whit...