I have a jQuery autocomplete entry that I want to make look more like a "combobox". I set it up so that when the user clicks into the entry it will blank out and do a blank query to show all possible matches.
I want to add a special "down arrow image" inside of the autocomplete entry so that the user knows to click on that arrow like i...
How do I get the collection of errors in a view?
I don't want to use the Html Helper Validation Summary or Validation Message. Instead I want to check for errors and if any display them in specific format. Also on the input controls I want to check for a specific property error and add a class to the input.
P.S. I'm using the Spark Vi...
In my web application I am developing a comment functionality, where user's can comment. But I am facing a problem which is I want to allow simple HTML tags in the comment box. HTML tags like <b>, <strong>, <i>, <em>, <u>, etc., that are normally allowed to enter in a commenting box. But then I also want when user presses enter then it w...
I've run into a weird quirk. The website I'm building for Escondido Arts Gallery has all of it's text in each element left-aligned in firefox and IE, but for some reason everything is center aligned in Safari. Is there one simple css or html fix I can do to fix this, or am I going to have to 'text-align: left' every element?
...
I'm working on an app that's sort of a bastardization of old and new tech (ASP/ASP.NET). It's all running in IE7. I'd like to be able to right click, View Source and actually see all the html that I'm seeing with my eyes. For example, I have a bit of text in the middle of the page that's in a table. I right click directly on that bit of ...
hi
Is there a way to extract HTML page title using Perl? I know it can be passed as a hidden variable during form submit and then retrieved in Perl that way but I was wondering if there is a way to do this without the submit?
Like, lets say i have an HTML page like this:
<html><head><title>TEST</title></head></html>
and then in Per...
I am using jQuery and jQuery UI.
Using the getJSON function, we are creating list elements and appending them to an OL element. Here's the code:
$.getJSON("http://localhost/b/t.php", function(data){
$.each(data, function(i, thet){
//alert(thet.fname)
var t = '<li class="name" id="p' + thet.pid + '">' + ...
Given a string like this:
<a href="http://blah.com/foo/blah">This is the foo link</a>
... and a search string like "foo", I would like to highlight all occurrences of "foo" in the text of the HTML -- but not inside a tag. In other words, I want to get this:
<a href="http://blah.com/foo/blah">This is the <b>foo</b> link</a>
Ho...
There are a couple of web sites I maintain that use HTML audio/mp3 objects within a page. They use to work but then something broke. The pages rely on Windows Media Player if the client browser is IE.
A month or so ago, the object would appear as a WMP control. It should look like this
But now what appears resembles a mail slot a ti...
i wrote some html code and want to edit its view using the css
<div id="contact_4" name="contact" >
<input type="checkbox" id="chk_4" class="contactChk"/>
<img height="25" width="25" alt="" src="Images/Contacts/1.jpg" style="width: 30px; height: 35px;"/>
<span class="contactItem" id...
Duplicate
Why don’t self-closing script tags work?
I'm writing an ASP.net page, which have some Javascript code in JS file for client-side authentication.
While using this code prevented from my server-side code from working:
<script src="../../JavaScript/BaseJS.js" type="text/javascript" defer="defer" />
This code somehow ...
I have the below html code, also i will have a textbox for entering the keyword,
What i want is while the user writing in this textbox the javascript search in this html code using the FirstName and LastName , and while comparing items, if an item didn't match i want to display:none its container div.
How can i do that using JS and work ...
I've a question about its usage: i need to send an html formatted mail. I prepare my message with
ga = libgmail.GmailAccount(USERNAME,PASSWORD)
msg = MIMEMultipart('alternative')
msg.attach(part1)
msg.attach(part2)
...
ga.sendMessage(msg.as_string())
This way doesn't works, it seems can't send msg with sendMessage method.
What is th...
How do I get the next element in html using javascript?
Suppose I have three divs and I get a reference to one in js code, I want to get which is the next div and which is the previous.
...
In my experience, input type="text" onchange event usually occurs only after you leave (blur) the control.
Is there a way to force browser to trigger onchange every time textfield content changes? If not, what is the most elegant way to track this “manually”?
Using onkey* events is not reliable, since you can right-click the field and ...
I'm talking about the Ibox sort. I.e, user clicks a link and a small javascript based div hovers up containing a small form or such.
I will want to give users a <script> tag which they would place in their website. Then, they would put the required javascript function in their <a href> tag which they want to use for displaying the form....
Is it possible to import css stylesheets into a html page using Javascript? If so, how can it be done?
P.S the javascript will be hosted on my site, but I want users to be able to put in the <head> tag of their website, and it should be able to import a css file hosted on my server into the current web page. (both the css file and the j...
I want to load an url as a string, and then use regex to write out matches in c#.
...
Here's a quick Perl question:
How can I convert HTML special characters like ü or ' to normal ASCII text?
I started with something like this:
s/\&#(\d+);/chr($1)/eg;
and could write it for all HTML characters, but some function like this probably already exists?
Note that I don't need a full HTML->Text converter. I alrea...
I've got a web page that automatically reloads every few seconds and displays a different random image. When it reloads, however, there is a blank page for a second, then the image slowly loads. I'd like to continue to show the original page until the next page is loaded into the browser's memory and then display it all at once so that i...