Hi. I want to be able to register scripts and stylesheets. These items would then be added to the head section of the current page. For example, I have a partial view called ImageViewer that renders a few images and relies on a script. Instead of adding this script in the view using the ImageViewer, I'd like to be able to register this s...
Hello,
I have an HTML table with three columns. In the right most column, I want to right-align the content. In an attempt to do this, I have the following:
<table border='0' cellpadding='0' cellspacing='0' style='width:100%;'>
<tr>
<td>Content 1</td>
<td>Content 2</td>
<td style='text-align-right'>Content 3</td>
</tr>
...
Hello.
I want to be able to have a javascript function that hides divs for me. For example, I have something like
<div id='container'>
<div class='item'></div>
<div class='item'></div>
<div class='item'></div>
<div class='item'></div>
<div class='item'></div>
</div>
And i would like the function to hide every 'i...
I'd like to handle HTML 404 errors in my web app.
I can write this:
<error-page>
<error-code>404</error-code>
<location>/view/error404.jsp</location>
</error-page>
This works perfectly, but I want to log each of the invalid urls that the users type.
When I use a scriptlet in the error404.jsp like this:
<%
System.out...
Here's the idea: I have a div element, #content_wrapper, which encompasses three floated divs, #left_column, #nav, and #content. Here's the styles on the #content_wrapper:
#content_wrapper {
float:left;
background: url("images/bg-tan.jpg") repeat-y left center;
position:relative;
}
However, in Internet Explorer 7 the #con...
I have an HTML form that uses a PHP file in the form tag action="" for sending the content of the form as an email.
I have a simple JavaScript for required fields that is called for in the form tag onsubmit="".
My PHP file returns a summary of the form after it is submitted.
All I need to add is a simple confirmation dialog box. But I...
I'm stuck with this problem I made an HTML Array, but I can't read it out with Python. Is it even possible to do it in App Engine? I read it was possible in PHP.
This is the html code:
<label for="hashtags">Hashtags: </label><br/>
{% for hashtag in stream.hashtags %}
<input type="text" value="{{hashtag}}" name="hashtags[]" id="hash...
Hello all,
I am new to this and would like to create a few simple hyperlinks that change the session language parameter.
Then I will test against this parameter to show dynamically different page elements.
I have not been able to find any sort of tutorial discussing a simple solution for this, only full blown tutorials that are in dept...
I have a UL where the LIs are boxes. I want the boxes to all be the same size, but sometimes the boxes are one line, and other times they're two. how do i add an extra empty line in the LI if the content is only one line? I'm assuming this will be some sort of javascript?
...
I need to give the user a snippet of js code that will insert some HTML code into the page.
I'm wondering what the best method to do so is. Should I use document.write, should I just create all the HTML elements via DOM programmatically?
Is it possible to use a js library? I can see conflicts occurring if the webpage the code is embed...
Hey all,
I have a link and when i click on that, it should take me to an other page. Mozilla and Chrome takes me there. But Not IE. May i know why does it happen and please help me find a solution. Thanks so much!!
Update :
Code:
<a onclick="UpdateDealStatistics('724', 'coupon', 'townpage', '', '', '856227', 'North Carolina', 'Charlo...
This is a weird error. I have a few pages of inputs, these inputs have been heavily tested in Firefox and IE. In FF everything works as expected, but in IE randomly it wont let me insert text into input fields. This goes for every input field on that page. This requires me to refresh the entire application page in order to get it to work...
Let's say I have a group of two radio buttons:
<input type="radio" name="radioButtonGroup" value="button1" checked="true"/>
<input type="radio" name="radioButtonGroup" value="button2"/>
It seems that clicking the second button triggers an event handler on that button only. However, the first button does become deselected, and visually...
I have the following:
<td>
some text
<div>a div</div>
</td>
I'd like to make the entire td a hyperlink. I'd prefer without javascript. Is this possible?
...
I'd like to display a text with a linebreak in an Alert Message:
private void showAbout() {
AlertDialog.Builder builder = new AlertDialog.Builder(context);
String message = "<b>Rechtlicher Hinweis:</b>\nLorem ipsum dolor sit amet, consectetur adipiscing elit. Sed a dolor sapien. Etiam arcu erat, lobortis sed vestibulum ...
I'm trying to append VLC player in an html page via jquery. I can do this with $("body").append(html), but not $("#VideoPlayer").append(html)...Is this html too complex?
jQuery:
$("body").append("<object classid=\"clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921\" codebase=\"http://downloads.videolan.org/pub/videolan/vlc/latest/win32/axv...
When I am trying to set opacity in css, mouse over event is not getting fired. my css code is-
.dropmenudiv_a{
position:absolute;
top: 0;
border: 1px solid white; /*THEME CHANGE HERE*/
border-top-width: 8px; /*Top border width. Should match height of .ddcolortabsline above*/
border-bottom-width: 0;
border-le...
I have a Wufoo form that I wanted to populate one of the fields with a value directly from the query string
the normal jQuery call for this does not get anything back
jQuery("#Field13")
so, all set using this, is just not accomplish
jQuery("#Field13").val( my_qs_value );
I'm using the Embed Javascript code from Wufoo (not the ...
I have a table cell with a text box in it, and I'm trying to take the value of the text box and put it back into the table cell while removing the text box. I'm doing this for a while row. So I have this:
tds.each(function(i) {
var val = $(this).children('input').eq(0).val();
document.getElementById($(thi...
Given this markup:
<h1>Lorem ipsum!</h1>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </p>
<p>Aliquam erat volutpat.</p>
How can I surround the two existing paragraphs with a new div using JavaScript?
Desired outcome:
<h1>Lorem ipsum!</h1>
<div>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </p>
<p>A...